[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1401415552-2263-1-git-send-email-b38611@freescale.com>
Date: Fri, 30 May 2014 10:05:46 +0800
From: Fugang Duan <b38611@...escale.com>
To: <b20596@...escale.com>, <davem@...emloft.net>
CC: <ezequiel.garcia@...e-electrons.com>, <netdev@...r.kernel.org>,
<shawn.guo@...aro.org>, <bhutchings@...arflare.com>,
<b38611@...escale.com>, <stephen@...workplumber.org>
Subject: [PATCH v1 0/6] *** net: fec: Enable Software TSO to improve the tx performance ***
Add SG and software TSO support for FEC.
This feature allows to improve outbound throughput performance.
Tested on imx6dl sabresd board, running iperf tcp tests shows:
* 82% improvement comparing with NO SG & TSO patch
$ ethtool -K eth0 sg on
$ ethtool -K eth0 tso on
[ 3] local 10.192.242.108 port 35388 connected with 10.192.242.167 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 3.0 sec 181 MBytes 506 Mbits/sec
$ ethtool -K eth0 sg off
$ ethtool -K eth0 tso off
[ 3] local 10.192.242.108 port 52618 connected with 10.192.242.167 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 3.0 sec 99.5 MBytes 278 Mbits/sec
FEC HW support IP header and TCP/UDP hw checksum, support multi buffer descriptor transfer
one frame, but don't support HW TSO, so FEC bandwidth is limited to this.
The patch set just enable TSO feature. Test on imx6dl sabresd board, there have 82% improvement.
The software TSO also tested on imx6sx platform, the cpu loading reduce from 100% to 52% with the
same Bandwidth, later, i will send some patch let FEC support imx6sx platform.
Fugang Duan (6):
net: fec: Factorize the .xmit transmit function
net: fec: Enable IP header hardware checksum
net: fec: Factorize feature setting
net: fec: Increase buffer descriptor entry number
net: fec: Add Scatter/gather support
net: fec: Add software TSO support
drivers/net/ethernet/freescale/fec.h | 12 +-
drivers/net/ethernet/freescale/fec_main.c | 510 +++++++++++++++++++++++-----
2 files changed, 427 insertions(+), 95 deletions(-)
--
1.7.8
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists