Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933482AbbFJJK1 (ORCPT ); Wed, 10 Jun 2015 05:10:27 -0400 Received: from mail-by2on0115.outbound.protection.outlook.com ([207.46.100.115]:43374 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754001AbbFJJKT (ORCPT ); Wed, 10 Jun 2015 05:10:19 -0400 X-Greylist: delayed 3593 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Jun 2015 05:10:19 EDT From: Madalin-Cristian Bucur To: Eric Dumazet CC: "linux-kernel@vger.kernel.org" , Jianhua Xie , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.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: AQHQgoy67USkhZ9S4U2K7B2IZnjQHp2lgFmAgAAZ6PA= Date: Wed, 10 Jun 2015 07:38:06 +0000 Message-ID: References: <1430319405-31280-1-git-send-email-madalin.bucur@freescale.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none; x-originating-ip: [192.88.166.1] x-microsoft-exchange-diagnostics: 1;DM2PR0301MB0861;3:/z9Jgc2UlMi2IL4XozY2QxSGflBYvM06fNN+IKD+YGOUrgZwrIo3GkNWHn35SYZr2yVBAGOh7nzZmbLfVAl6V2IXzNBxu4XJH9TdqdPOC55kMmA7d74DLWmUkFTiRSqDudx2jlFjEOZW4BZX/P/uWA==;10:QieEQvv1P3q1qtRUyEsoNfdzr3/1iQ3udXnbc/SVlmR2vuHgDrwFiDzyqA3o1E4LzvVNrZKUd3dHzuZnQjSk3ENv2HNklsDX1Nr3U/yK6oc=;6:TOFDD4zuat3BJpMov65ERDMAQKGo5zwpU5S2w4ULnSloqnKhKhiy0dbqezQSLfcO x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0861; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(520003)(3002001);SRVR:DM2PR0301MB0861;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0861; x-forefront-prvs: 06036BD506 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(51704005)(74316001)(33656002)(77156002)(62966003)(86362001)(87936001)(122556002)(76176999)(50986999)(106116001)(2656002)(99286002)(40100003)(19580395003)(5002640100001)(19580405001)(54356999)(189998001)(5001960100002)(110136002)(46102003)(15975445007)(102836002)(2950100001)(2900100001)(77096005)(5001920100001)(92566002)(5003600100001)(76576001)(66066001)(142933001)(19627235001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM2PR0301MB0861;H:BL2PR03MB545.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 07:38:06.9479 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0301MB0861 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 t5A9AWUB001908 Content-Length: 2337 Lines: 71 Hi Eric, Can you please tell us if this change would be for the better? I was about to say yes to this request but checked and no other Ethernet driver seems to use the queue trans_start. I was able to find your patch "net: tx scalability works : trans_start" [ http://patchwork.ozlabs.org/patch/27104/ ] but did not find more about this topic. Thank you, Madalin > -----Original Message----- > From: Xie Jianhua-B29408 > Sent: Wednesday, June 10, 2015 9:00 AM > To: Bucur Madalin-Cristian-B32716; 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 > > > > > -----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?