https://github.com/torvalds/linux
Revision f2d9da1a8375cbe53df5b415d059429013a3a79f authored by Eric Dumazet on 17 October 2014, 19:45:55 UTC, committed by David S. Miller on 18 October 2014, 03:56:33 UTC
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>
1 parent a282054
History
Tip revision: f2d9da1a8375cbe53df5b415d059429013a3a79f authored by Eric Dumazet on 17 October 2014, 19:45:55 UTC
bna: fix skb->truesize underestimation
Tip revision: f2d9da1
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.8 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 281.7 KB
Makefile -rw-r--r-- 53.4 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top