[PATCH AUTOSEL 4.14 10/25] net: hns: fix skb->truesize underestimation

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b1ccd4c0ab6ef499f47dd84ed4920502a7147bba ] 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

[PATCH AUTOSEL 4.14 10/25] net: hns: fix skb->truesize underestimation

2018-09-19 Thread Sasha Levin
From: Huazhong Tan [ Upstream commit b1ccd4c0ab6ef499f47dd84ed4920502a7147bba ] 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