mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[netdevice] Add vlan_tag() to get the VLAN tag of a network device
The iBFT has a VLAN field that should be filled in. Add the vlan_tag() function to extract the VLAN tag of a network device. Since VLAN support is optional, define a weak function that returns 0 when iPXE is built without VLAN support. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
committed by
Michael Brown
parent
09c5109b85
commit
7426177d63
@@ -61,6 +61,7 @@ struct vlan_header {
|
||||
|
||||
extern struct net_device * vlan_find ( struct net_device *trunk,
|
||||
unsigned int tag );
|
||||
extern unsigned int vlan_tag ( struct net_device *netdev );
|
||||
extern int vlan_can_be_trunk ( struct net_device *trunk );
|
||||
extern int vlan_create ( struct net_device *trunk, unsigned int tag,
|
||||
unsigned int priority );
|
||||
|
||||
Reference in New Issue
Block a user