]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll
authorPeng Li <lipeng321@huawei.com>
Thu, 15 Nov 2018 09:29:22 +0000 (09:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2018 17:44:46 +0000 (09:44 -0800)
commitba732f9f3eb2dab083ba125c8461e0d1586463ff
treecb48a1a6dd9ddcda93096a7e725e47fa6d32ee33
parent8576453d96d933cd82a7624d40fe85de43525297
net: hns3: Add handling of GRO Pkts not fully RX'ed in NAPI poll

The "FE bit" in the description means the last description for
a packets. When HW GRO enable, HW write data to ring every
packet/buffer, there is greater probability that driver handle
with the describtion but HW still not set the "FE bit".

When drier handle the packet and HW still not set "FE bit",
driver stores skb and bd_num in rx ring, and continue to use the
skb and bd_num in next napi.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h