]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite5597095055622c248c2f5135a5328f86ac6bb14
treecb48a1a6dd9ddcda93096a7e725e47fa6d32ee33
parentb26a6fea229885e98e9383c53b5c5dcfc45f76d8
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