• Nimrod Andy's avatar
    net: fec: Add Scatter/gather support · 6e909283
    Nimrod Andy authored
    Add Scatter/gather support for FEC.
    This feature allows to improve outbound throughput performance.
    
    Tested on imx6dl sabresd board:
    Running iperf tests shows a 55.4% improvement.
    
    $ ethtool -K eth0 sg off
    $ iperf -c 10.192.242.167 -t 3 &
    [  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
    
    $ ethtool -K eth0 sg on
    $ iperf -c 10.192.242.167 -t 3 &
    [  3] local 10.192.242.108 port 52617 connected with 10.192.242.167 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0- 3.0 sec   154 MBytes   432 Mbits/sec
    
    CC: Li Frank <B20596@freescale.com>
    Signed-off-by: default avatarFugang Duan <B38611@freescale.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6e909283
fec_main.c 63.9 KB