net: ethernet: mediatek: enhance RX path by aggregating more SKBs into NAPI
authorSean Wang <sean.wang@mediatek.com>
Sat, 3 Sep 2016 09:59:27 +0000 (17:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2016 20:33:19 +0000 (13:33 -0700)
commit41156cea94618d7b5dbb3d2d4e42f9214581c737
tree54178c043919cc4d67fc46cab2534d2644722043
parent635372ada412967b359421e88c2c0acd35d4e3b5
net: ethernet: mediatek: enhance RX path by aggregating more SKBs into NAPI

The patch adds support for aggregating more SKBs feed into NAPI in
order to get more benefits from generic receive offload (GRO) by
peeking at the RX ring status and moving more packets right before
returning from NAPI RX polling handler if NAPI budgets are still
available and some packets already present in hardware.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c