dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Eric Dumazet 2011-11-21 19:51:34 +00:00 committed by David S. Miller
parent a2d7ec58ac
commit 570e57bcbc
1 changed files with 1 additions and 1 deletions

View File

@ -452,7 +452,7 @@ void atm_dev_release_vccs(struct atm_dev *dev);
static inline int atm_guess_pdu2truesize(int size)
{
return SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info);
return SKB_TRUESIZE(size);
}