]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[iobuf] Relax alignment requirement for small I/O buffers
authorMichael Brown <mcb30@ipxe.org>
Fri, 29 Jun 2012 15:07:12 +0000 (16:07 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 29 Jun 2012 15:07:12 +0000 (16:07 +0100)
commita5c016d93ee24e851cd8752b014170a308f231da
tree5dc41c4838463a891de906ac91c25917d32c5a73
parent9a8c6b00d4433eb5c24f50c0c4a93c127d77def0
[iobuf] Relax alignment requirement for small I/O buffers

iPXE currently aligns all I/O buffers on a 2kB boundary.  This is
overkill for transmitted packets, which are typically much smaller
than 2kB.

Align I/O buffers on their own size.  This reduces the alignment
requirement for small buffers, while preserving the guarantee that I/O
buffers will never cross boundaries that might cause problems for some
DMA engines.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/iobuf.c
src/include/ipxe/iobuf.h