net: hns3: fix rx path skb->truesize reporting bug
authorPeng Li <lipeng321@huawei.com>
Sat, 10 Mar 2018 03:29:26 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 02:53:31 +0000 (22:53 -0400)
commitf8d291f00bb33c97b8c9dd643277d6300d05559d
tree846bdfaf8f397f1011275071de154ccb27dfa338
parente98d7183f609ba48cfe5c5132b99f4c6ccab31c6
net: hns3: fix rx path skb->truesize reporting bug

Original skb->truesize reports the received packet size,
not the actual buffer size NIC driver allocated(1 Page).
The linux net protocol will misjudge the true size of rx queue.

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