mirror of
https://github.com/ipxe/ipxe
synced 2026-01-01 17:34:42 +03:00
[intelxl] Use VLAN tag in receive descriptor if present
The physical function driver does not allow the virtual function to request that VLAN tags are left unstripped. Extract and use the VLAN tag from the receive descriptor if present. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -582,7 +582,11 @@ struct intelxl_rx_data_descriptor {
|
||||
/** Receive writeback descriptor */
|
||||
struct intelxl_rx_writeback_descriptor {
|
||||
/** Reserved */
|
||||
uint8_t reserved[8];
|
||||
uint8_t reserved_a[2];
|
||||
/** VLAN tag */
|
||||
uint16_t vlan;
|
||||
/** Reserved */
|
||||
uint8_t reserved_b[4];
|
||||
/** Flags */
|
||||
uint32_t flags;
|
||||
/** Length */
|
||||
@@ -592,6 +596,9 @@ struct intelxl_rx_writeback_descriptor {
|
||||
/** Receive writeback descriptor complete */
|
||||
#define INTELXL_RX_WB_FL_DD 0x00000001UL
|
||||
|
||||
/** Receive writeback descriptor VLAN tag present */
|
||||
#define INTELXL_RX_WB_FL_VLAN 0x00000004UL
|
||||
|
||||
/** Receive writeback descriptor error */
|
||||
#define INTELXL_RX_WB_FL_RXE 0x00080000UL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user