summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Taglang2018-04-27 20:19:07 +0200
committerMichael Brown2018-07-07 21:12:10 +0200
commit88ac1d3fe4ad8e905f679355efac236d1e55ba82 (patch)
treeb0fbf68d6a3bfa3c007df28dce244c6bd8d84541
parent[intelx] Add support for Intel X552 NIC (diff)
downloadipxe-88ac1d3fe4ad8e905f679355efac236d1e55ba82.tar.gz
ipxe-88ac1d3fe4ad8e905f679355efac236d1e55ba82.tar.xz
ipxe-88ac1d3fe4ad8e905f679355efac236d1e55ba82.zip
[efi] Exclude link-layer header length from MaxPacketSize
Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--src/interface/efi/efi_snp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/efi/efi_snp.c b/src/interface/efi/efi_snp.c
index 3f95a896..9c1b14d8 100644
--- a/src/interface/efi/efi_snp.c
+++ b/src/interface/efi/efi_snp.c
@@ -123,7 +123,7 @@ static void efi_snp_set_mode ( struct efi_snp_device *snpdev ) {
mode->HwAddressSize = ll_addr_len;
mode->MediaHeaderSize = ll_protocol->ll_header_len;
- mode->MaxPacketSize = netdev->max_pkt_len;
+ mode->MaxPacketSize = netdev->mtu;
mode->ReceiveFilterMask = ( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST |
EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST );