summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Dumazet2011-11-21 20:51:34 +0100
committerDavid S. Miller2011-11-22 21:15:57 +0100
commit570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3 (patch)
treece1275a45614d7249b2fbf55f87f423a409e7b50
parentnetfilter: use jump_label for nf_hooks (diff)
downloadkernel-qcow2-linux-570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3.tar.gz
kernel-qcow2-linux-570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3.tar.xz
kernel-qcow2-linux-570e57bcbcc4df5581b1e9c806ab2b16e96ea7d3.zip
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>
-rw-r--r--include/linux/atmdev.h2
1 files changed, 1 insertions, 1 deletions
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);
}