Browse Source

[efi] Exclude link-layer header length from MaxPacketSize

Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Rob Taglang 6 years ago
parent
commit
88ac1d3fe4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/interface/efi/efi_snp.c

+ 1
- 1
src/interface/efi/efi_snp.c View File

123
 
123
 
124
 	mode->HwAddressSize = ll_addr_len;
124
 	mode->HwAddressSize = ll_addr_len;
125
 	mode->MediaHeaderSize = ll_protocol->ll_header_len;
125
 	mode->MediaHeaderSize = ll_protocol->ll_header_len;
126
-	mode->MaxPacketSize = netdev->max_pkt_len;
126
+	mode->MaxPacketSize = netdev->mtu;
127
 	mode->ReceiveFilterMask = ( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
127
 	mode->ReceiveFilterMask = ( EFI_SIMPLE_NETWORK_RECEIVE_UNICAST |
128
 				    EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST |
128
 				    EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST |
129
 				    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST );
129
 				    EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST );

Loading…
Cancel
Save