]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: add HW LRO functions of PDMA RX rings
authorNelson Chang <nelson.chang@mediatek.com>
Sat, 17 Sep 2016 15:50:55 +0000 (23:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 05:40:47 +0000 (01:40 -0400)
commitdba97f04895be225f91ed3a2c04b32c294bb7f20
treeea30a4b88ef5eab046e468524a90287ea027e07e
parent6c61b35eb05337f3ec71573bf25a8c1515e4672b
net: ethernet: mediatek: add HW LRO functions of PDMA RX rings

The codes add the large receive offload (LRO) functions by hardware as below:
1) PDMA has total four RX rings that one is the normal ring, and others can
   be configured as LRO rings.
2) Only TCP/IP RX flows can be offloaded. The hardware can set four IP
   addresses at most, if the destination IP of the RX flow matches one of
   them, it has the chance to be offloaded.
3) There three RX flows can be offloaded at most, and one flow is mapped to
   one RX ring.
4) If there are more than three candidate RX flows, the hardware can
   choose three of them by throughput comparison results.

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
drivers/net/ethernet/mediatek/mtk_eth_soc.h