iPXE
|
I/O buffer padding. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
void | iob_pad (struct io_buffer *iobuf, size_t min_len) |
Pad I/O buffer. More... | |
I/O buffer padding.
Definition in file iobpad.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Pad I/O buffer.
iobuf | I/O buffer |
min_len | Minimum length |
This function pads and aligns I/O buffers, for devices that aren't capable of padding in hardware, or that require specific alignment in TX buffers. The packet data will end up aligned to a multiple of IOB_ALIGN
.
min_len
must not exceed
IOB_ZLEN. |
Definition at line 49 of file iobpad.c.
References assert(), data, io_buffer::data, iob_headroom(), iob_len(), iob_push, iob_put, iob_unput, IOB_ZLEN, len, memmove(), memset(), and pad_len.
Referenced by bnxt_tx_adjust_pkt(), eoib_transmit(), forcedeth_transmit(), legacy_transmit(), myri10ge_net_transmit(), nii_transmit(), pnic_transmit(), rdc_transmit(), realtek_transmit(), rhine_transmit(), sis190_transmit(), snpnet_transmit(), tg3_transmit(), and velocity_transmit().