patch-2.4.27 linux-2.4.27/include/linux/atmdev.h
Next file: linux-2.4.27/include/linux/atmlec.h
Previous file: linux-2.4.27/include/linux/ata.h
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
2004-08-07 16:26:06.242412029 -0700
- Orig file:
linux-2.4.26/include/linux/atmdev.h
- Orig date:
2004-02-18 05:36:32.000000000 -0800
diff -urN linux-2.4.26/include/linux/atmdev.h linux-2.4.27/include/linux/atmdev.h
@@ -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));
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)