Actually, it's probably a good idea to have packet buffers avoid 4kB

crossings.
This commit is contained in:
Michael Brown
2006-04-25 12:11:36 +00:00
parent 00a1de964d
commit cf3783b4ca
2 changed files with 30 additions and 7 deletions

View File

@@ -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.