patch-2.4.14 linux/include/linux/skbuff.h
Next file: linux/include/linux/sockios.h
Previous file: linux/include/linux/sched.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Mon Nov 5 12:42:20 2001
- Orig file:
v2.4.13/linux/include/linux/skbuff.h
- Orig date:
Thu Oct 18 13:47:57 2001
diff -u --recursive --new-file v2.4.13/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -35,7 +35,9 @@
#define CHECKSUM_UNNECESSARY 2
#define SKB_DATA_ALIGN(X) (((X) + (SMP_CACHE_BYTES-1)) & ~(SMP_CACHE_BYTES-1))
-#define SKB_MAX_HEAD(X) ((PAGE_SIZE - (X) - sizeof(struct skb_shared_info))&~(SMP_CACHE_BYTES-1))
+#define SKB_MAX_ORDER(X,ORDER) (((PAGE_SIZE<<(ORDER)) - (X) - sizeof(struct skb_shared_info))&~(SMP_CACHE_BYTES-1))
+#define SKB_MAX_HEAD(X) (SKB_MAX_ORDER((X),0))
+#define SKB_MAX_ALLOC (SKB_MAX_ORDER(0,2))
/* A. Checksumming of received packets by device.
*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)