projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d7ec5
)
atm: use SKB_TRUESIZE() in atm_guess_pdu2truesize()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Mon, 21 Nov 2011 19:51:34 +0000
(19:51 +0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/linux/atmdev.h
b/include/linux/atmdev.h
index 49a83ca900ba7209926b89e8c98789703ee23c00..43ea1b2de3ee52a7d9527dc8afe193ff7fe2e2fb 100644
(file)
--- 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
);
}