]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[snp] Allocate additional padding for receive buffers
authorMichael Brown <mcb30@ipxe.org>
Sat, 16 Mar 2024 23:25:07 +0000 (23:25 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 16 Mar 2024 23:28:34 +0000 (23:28 +0000)
commitbac967d51a8851ef274da6aa7a3a9711de0bb056
treea245646f5ced5b1f1ca00efdc186c257ad17059a
parent17882e76afc0e69a0d4ed142aa33b94017ae4e58
[snp] Allocate additional padding for receive buffers

Some SNP implementations (observed with a wifi adapter in a Dell
Latitude 3440 laptop) seem to require additional space in the
allocated receive buffers, otherwise full-length packets will be
silently dropped.

The EDK2 MnpDxe driver happens to allocate an additional 8 bytes of
padding (4 for a VLAN tag, 4 for the Ethernet frame checksum).  Match
this behaviour since drivers are very likely to have been tested
against MnpDxe.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/efi/snpnet.c