Searched hist:b1ccd4c0ab6ef499f47dd84ed4920502a7147bba (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_enet.c | diff b1ccd4c0ab6ef499f47dd84ed4920502a7147bba Wed Aug 22 22:10:12 CDT 2018 Huazhong Tan <tanhuazhong@huawei.com> net: hns: fix skb->truesize underestimation
skb->truesize is not meant to be tracking amount of used bytes in a skb, but amount of reserved/consumed bytes in memory.
For instance, if we use a single byte in last page fragment, we have to account the full size of the fragment.
So skb_add_rx_frag needs to calculate the length of the entire buffer into turesize.
Fixes: 9cbe9fd5214e ("net: hns: optimize XGE capability by reducing cpu usage") Signed-off-by: Huazhong tan <tanhuazhong@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|