|
@@ -37,6 +37,7 @@ FILE_LICENCE ( BSD2 );
|
37
|
37
|
#include <ipxe/in.h>
|
38
|
38
|
#include <ipxe/netdevice.h>
|
39
|
39
|
#include <ipxe/ethernet.h>
|
|
40
|
+#include <ipxe/vlan.h>
|
40
|
41
|
#include <ipxe/dhcp.h>
|
41
|
42
|
#include <ipxe/iscsi.h>
|
42
|
43
|
#include <ipxe/ibft.h>
|
|
@@ -264,6 +265,8 @@ static int ibft_fill_nic ( struct ibft_nic *nic,
|
264
|
265
|
DBG ( "iBFT NIC subnet = /%d\n", nic->subnet_mask_prefix );
|
265
|
266
|
|
266
|
267
|
/* Extract values from net-device configuration */
|
|
268
|
+ nic->vlan = cpu_to_le16 ( vlan_tag ( netdev ) );
|
|
269
|
+ DBG ( "iBFT NIC VLAN = %02x\n", le16_to_cpu ( nic->vlan ) );
|
267
|
270
|
if ( ( rc = ll_protocol->eth_addr ( netdev->ll_addr,
|
268
|
271
|
nic->mac_address ) ) != 0 ) {
|
269
|
272
|
DBG ( "Could not determine iBFT MAC: %s\n", strerror ( rc ) );
|