]> git.karo-electronics.de Git - linux-beck.git/commit
net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO
authorNelson Chang <nelson.chang@mediatek.com>
Sat, 17 Sep 2016 15:50:56 +0000 (23:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 05:40:47 +0000 (01:40 -0400)
commit7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd
treefd420782d9fb56203ec7292b973c1ce7e9b19e65
parentee40681037c0e5fa0058447d7603a4fb77308bce
net: ethernet: mediatek: add ethtool functions to configure RX flows of HW LRO

The codes add ethtool functions to set RX flows for HW LRO. Because the
HW LRO hardware can only recognize the destination IP of TCP/IP RX flows,
the ethtool command to add HW LRO flow is as below:
ethtool -N [devname] flow-type tcp4 dst-ip [ip_addr] loc [0~1]

Otherwise, cause the hardware can set total four destination IPs, each
GMAC (GMAC1/GMAC2) can set two IPs separately at most.

Signed-off-by: Nelson Chang <nelson.chang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c