atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 21 Nov 2011 19:51:34 +0000 (19:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2011 20:15:57 +0000 (15:15 -0500)
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>
include/linux/atmdev.h

index 49a83ca900ba7209926b89e8c98789703ee23c00..43ea1b2de3ee52a7d9527dc8afe193ff7fe2e2fb 100644 (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);
 }