]> git.baikalelectronics.ru Git - kernel.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)
commitf03e5ebc06051581c1673569c854f6a41f304fc9
treefd420782d9fb56203ec7292b973c1ce7e9b19e65
parentc95085e7aa49410addb3efdb30c3cc7dc9e94593
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