Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()

SKB_TRUESIZE() provides a better approximation of expected skb truesize.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eric Dumazet and committed by
David S. Miller
570e57bc a2d7ec58

+1 -1
+1 -1
include/linux/atmdev.h
··· 452 452 453 453 static inline int atm_guess_pdu2truesize(int size) 454 454 { 455 - return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info); 455 + return SKB_TRUESIZE(size); 456 456 } 457 457 458 458