From: Eric Dumazet Date: Mon, 21 Nov 2011 19:51:34 +0000 (+0000) Subject: atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3;p=openwrt%2Fstaging%2Fblogic.git atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize() SKB_TRUESIZE() provides a better approximation of expected skb truesize. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h index 49a83ca900ba..43ea1b2de3ee 100644 --- a/include/linux/atmdev.h +++ b/include/linux/atmdev.h @@ -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); }