summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/pkbuff.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gpxe/pkbuff.h b/src/include/gpxe/pkbuff.h
index 895367ae5..646b540dc 100644
--- a/src/include/gpxe/pkbuff.h
+++ b/src/include/gpxe/pkbuff.h
@@ -17,6 +17,17 @@
struct net_protocol;
struct ll_protocol;
+/**
+ * Packet buffer alignment
+ *
+ * Packet buffers allocated via alloc_pkb() are guaranteed to be
+ * physically aligned to this boundary. Some cards cannot DMA across
+ * a 4kB boundary. With a standard Ethernet MTU, aligning to a 2kB
+ * boundary is sufficient to guarantee no 4kB boundary crossings. For
+ * a jumbo Ethernet MTU, a packet may be larger than 4kB anyway.
+ */
+#define PKBUFF_ALIGN 2048
+
/** A packet buffer
*
* This structure is used to represent a network packet within gPXE.