diff options
author | Eric Dumazet <edumazet@google.com> | 2014-10-17 19:45:55 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-18 03:56:33 (GMT) |
commit | f2d9da1a8375cbe53df5b415d059429013a3a79f (patch) | |
tree | 078d45aba9c17fabe189b155397b0d0158ac1328 /net/dsa/slave.c | |
parent | a28205437b41a2c1333c1599ce1e8f09af7b00d6 (diff) | |
download | linux-f2d9da1a8375cbe53df5b415d059429013a3a79f.tar.xz |
bna: fix skb->truesize underestimation
skb->truesize is not meant to be tracking amount of used bytes
in an 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.
skb->truesize can be very different from skb->len, that has
a very specific safety purpose.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Rasesh Mody <rasesh.mody@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
0 files changed, 0 insertions, 0 deletions