Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933284AbbFJGA2 (ORCPT ); Wed, 10 Jun 2015 02:00:28 -0400 Received: from mail-bl2on0143.outbound.protection.outlook.com ([65.55.169.143]:25873 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753141AbbFJGAW (ORCPT ); Wed, 10 Jun 2015 02:00:22 -0400 From: Jianhua Xie To: Madalin-Cristian Bucur , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" CC: "linux-kernel@vger.kernel.org" Subject: RE: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet Thread-Topic: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet Thread-Index: AQHQgo1Z41gQqwed9EeFFkAzPBeHHZ2lfPXg Date: Wed, 10 Jun 2015 06:00:17 +0000 Message-ID: References: <1430319405-31280-1-git-send-email-madalin.bucur@freescale.com> In-Reply-To: <1430319405-31280-1-git-send-email-madalin.bucur@freescale.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freescale.com; dkim=none (message not signed) header.d=none; x-originating-ip: [199.59.226.141] x-microsoft-exchange-diagnostics: 1;BY2PR03MB553;3:742wI5szJgC4OBeNxQJWzb0QS5rYxe+dMUFh784rYHdEuBUfAk2R7lwe6HZ1eVwJyREgde0J6YKg0SOIkx2Z3wtceMOsWwa1prlHBhe5l29P6FJ/5tooMs4k0fqBwhjAQHKIR7SjcggTOy3TZ9Lu/Q==;10:dHDK7Hypw0u2a8+cAnutBCZ/SRePyvuHQ1JTQKvELTJ+itWW2pOuo8yBYTNIS9Yf3UIGKQ+P6cYShX43LkuWf/sQndtE3Fui+Now0H0xCp4=;6:9KtgLXOFc0SGlk7eRJ07ueQ5mCol/rB/1wwFkQXWLRyWqDbXSDRyLWwe1RKGcJ9M x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB553; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:BY2PR03MB553;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB553; x-forefront-prvs: 06036BD506 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(13464003)(377454003)(51704005)(2656002)(62966003)(77156002)(40100003)(86362001)(2201001)(76176999)(54356999)(122556002)(50986999)(19580405001)(19580395003)(87936001)(66066001)(74316001)(5001960100002)(2950100001)(189998001)(99286002)(76576001)(5002640100001)(46102003)(77096005)(92566002)(106116001)(2900100001)(15975445007)(102836002)(33656002)(5003600100001)(2501003)(5001770100001)(142933001)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB553;H:DM2PR0301MB0863.namprd03.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jun 2015 06:00:17.6366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB553 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t5A60Xn3000731 Content-Length: 1568 Lines: 51 > -----Original Message----- > From: Linuxppc-dev [mailto:linuxppc-dev- > bounces+jianhua.xie=freescale.com@lists.ozlabs.org] On Behalf Of Madalin > Bucur > Sent: Wednesday, April 29, 2015 10:57 PM > To: netdev@vger.kernel.org; linuxppc-dev@lists.ozlabs.org > Cc: linux-kernel@vger.kernel.org; Bucur Madalin-Cristian-B32716 > Subject: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet > > This introduces the Freescale Data Path Acceleration Architecture > (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, > BMan, PAMU and FMan drivers to deliver Ethernet connectivity on > the Freescale DPAA QorIQ platforms. > Snip...... > + > + if (unlikely(dpa_xmit(priv, percpu_stats, queue_mapping, &fd) < 0)) > + goto xmit_failed; > + > + net_dev->trans_start = jiffies; It is probably better to use netdev_queue->trans_start to instead of net_dev->trans_start on SMP. Best Regards, Jianhua > + return NETDEV_TX_OK; > + > +xmit_failed: > + if (fd.cmd & FM_FD_CMD_FCO) { > + (*countptr)--; > + dpa_fd_release(net_dev, &fd); > + percpu_stats->tx_errors++; > + return NETDEV_TX_OK; > + } > + _dpa_cleanup_tx_fd(priv, &fd); > + percpu_stats->tx_errors++; > + dev_kfree_skb(skb); > + return NETDEV_TX_OK; > +} > -- > 1.7.11.7 > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/linuxppc-dev ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?