* [PATCH][ATM]: get atm_guess_pdu2truesize() right
@ 2004-04-07 12:05 chas williams (contractor)
2004-04-09 23:36 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: chas williams (contractor) @ 2004-04-07 12:05 UTC (permalink / raw)
To: davem; +Cc: netdev
please apply to 2.6 and 2.4 kernels.
thanks!
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1331.3.3 -> 1.1331.3.4
# include/linux/atmdev.h 1.13 -> 1.14
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 04/04/07 chas@relax.cmf.nrl.navy.mil 1.1331.3.4
# [ATM]: get atm_guess_pdu2truesize() right
# --------------------------------------------
#
diff -Nru a/include/linux/atmdev.h b/include/linux/atmdev.h
--- a/include/linux/atmdev.h Wed Apr 7 08:01:57 2004
+++ b/include/linux/atmdev.h Wed Apr 7 08:01:57 2004
@@ -411,9 +411,9 @@
*
*/
-static inline int atm_guess_pdu2truesize(int pdu_size)
+static inline int atm_guess_pdu2truesize(int size)
{
- return ((pdu_size+15) & ~15) + sizeof(struct sk_buff);
+ return (SKB_DATA_ALIGN(size) + sizeof(struct skb_shared_info));
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH][ATM]: get atm_guess_pdu2truesize() right
2004-04-07 12:05 [PATCH][ATM]: get atm_guess_pdu2truesize() right chas williams (contractor)
@ 2004-04-09 23:36 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-04-09 23:36 UTC (permalink / raw)
To: chas3; +Cc: chas, netdev
On Wed, 07 Apr 2004 08:05:09 -0400
"chas williams (contractor)" <chas@cmf.nrl.navy.mil> wrote:
> please apply to 2.6 and 2.4 kernels.
...
> # [ATM]: get atm_guess_pdu2truesize() right
Applied, thanks Chas.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-09 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07 12:05 [PATCH][ATM]: get atm_guess_pdu2truesize() right chas williams (contractor)
2004-04-09 23:36 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).