diff options
| author | Michael Brown | 2006-05-27 15:39:45 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-05-27 15:39:45 +0200 |
| commit | 6c50564724bcce292fbe76010d637390c17d407a (patch) | |
| tree | 39e874e0e1fd4eac5a9dbc05330092322f1c2a67 /src/include | |
| parent | Tidied up debugging messages (diff) | |
| download | ipxe-6c50564724bcce292fbe76010d637390c17d407a.tar.gz ipxe-6c50564724bcce292fbe76010d637390c17d407a.tar.xz ipxe-6c50564724bcce292fbe76010d637390c17d407a.zip | |
Make PKB_ZLEN the minimum possible size of packet buffer (to allow for
hardware that can't autopad).
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/pkbuff.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/gpxe/pkbuff.h b/src/include/gpxe/pkbuff.h index 92244fd59..6c504029f 100644 --- a/src/include/gpxe/pkbuff.h +++ b/src/include/gpxe/pkbuff.h @@ -28,6 +28,15 @@ struct ll_protocol; */ #define PKBUFF_ALIGN 2048 +/** + * Minimum packet buffer length + * + * alloc_pkb() will round up the allocated length to this size if + * necessary. This is used on behalf of hardware that is not capable + * of auto-padding. + */ +#define PKB_ZLEN 64 + /** A packet buffer * * This structure is used to represent a network packet within gPXE. |
