]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: free the pending skb when clean RX ring
authorPeng Li <lipeng321@huawei.com>
Sun, 14 Apr 2019 01:47:45 +0000 (09:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Apr 2019 20:47:35 +0000 (13:47 -0700)
commitdd8fe4fefd71eac9427f17e198f53e2079c6c10b
tree36aebb88e5958e4b88ef00a6dad84be23f3cad50
parenta5c58f880dc5e7494531279af82166cd2c78a1af
net: hns3: free the pending skb when clean RX ring

If there is pending skb in RX flow when close the port, and the
pending buffer is not cleaned, the new packet will be added to
the pending skb when the port opens again, and the first new
packet has error data.

This patch cleans the pending skb when clean RX ring.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c