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

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)