aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/iobuf.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2017-03-23 18:15:24 +0200
committerMichael Brown <mcb30@ipxe.org>2017-03-23 18:29:46 +0200
commitb340971852912616de01b51848b224de23024177 (patch)
treec4a951e718dac9c6feac42c3da867a04af7655da /src/include/ipxe/iobuf.h
parenta317e9a310d6ea5288edd39d9933e6c2fb2358aa (diff)
downloadipxe-b340971852912616de01b51848b224de23024177.tar.gz
[iobuf] Increase minimum I/O buffer size to 128 bytes
The eIPoIB translation layer needs to translate outbound ARP packets from Ethernet to IPoIB. A 64-byte buffer (starting with the Ethernet header) does not provide enough tailroom to expand to hold the two 20-byte IPoIB MAC addresses. The result is that an UNDI API user will be unable to send ARP packets. We could potentially shuffle the packet contents to reuse the space occupied by the stripped Ethernet link-layer header, but this would add complexity. Instead, fix by increasing the minimum allocation size to 128 bytes. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/iobuf.h')
-rw-r--r--src/include/ipxe/iobuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/iobuf.h b/src/include/ipxe/iobuf.h
index 27d285d44..b40ade350 100644
--- a/src/include/ipxe/iobuf.h
+++ b/src/include/ipxe/iobuf.h
@@ -20,7 +20,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* necessary. This is used on behalf of hardware that is not capable
* of auto-padding.
*/
-#define IOB_ZLEN 64
+#define IOB_ZLEN 128
/**
* A persistent I/O buffer