29 #define VLAN_TAG( tci ) ( (tci) & 0x0fff ) 37 #define VLAN_PRIORITY( tci ) ( (tci) >> 13 ) 46 #define VLAN_TCI( tag, priority ) ( ( (priority) << 13 ) | (tag) ) 54 #define VLAN_TAG_IS_VALID( tag ) ( (tag) < 0xfff ) 62 #define VLAN_PRIORITY_IS_VALID( priority ) ( (priority) <= 7 ) FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define VLAN_TAG(tci)
Extract VLAN tag from tag control information.
struct arbelprm_rc_send_wqe rc
void vlan_netdev_rx(struct net_device *netdev, unsigned int tag, struct io_buffer *iobuf)
Add VLAN tag-stripped packet to queue (when VLAN support is not present)
unsigned int vlan_tci(struct net_device *netdev)
Get the VLAN tag control information.
void vlan_auto(const void *ll_addr, unsigned int tag)
Configure automatic VLAN device.
struct net_device * vlan_find(struct net_device *trunk, unsigned int tag)
Identify VLAN device.
int vlan_create(struct net_device *trunk, unsigned int tag, unsigned int priority)
Create VLAN device.
static struct net_device * netdev
int vlan_can_be_trunk(struct net_device *trunk)
Check if network device can be used as a VLAN trunk device.
void vlan_netdev_rx_err(struct net_device *netdev, unsigned int tag, struct io_buffer *iobuf, int rc)
Discard received VLAN tag-stripped packet (when VLAN support is not present)
Network device management.
uint16_t priority
Priotity.
int vlan_destroy(struct net_device *netdev)
Destroy VLAN device.
uint8_t ll_addr[MAX_LL_ADDR_LEN]
Link-layer address.
static unsigned int vlan_tag(struct net_device *netdev)
Get the VLAN tag.
uint64_t tag
Identity tag.