[vlan] Allow external code to identify VLAN priority as well as tag

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2022-12-09 14:40:54 +00:00
parent b0ded89e91
commit 5e62b4bc6c
3 changed files with 19 additions and 7 deletions

View File

@@ -1171,12 +1171,12 @@ static void net_step ( struct process *process __unused ) {
}
/**
* Get the VLAN tag (when VLAN support is not present)
* Get the VLAN tag control information (when VLAN support is not present)
*
* @v netdev Network device
* @ret tag 0, indicating that device is not a VLAN device
*/
__weak unsigned int vlan_tag ( struct net_device *netdev __unused ) {
__weak unsigned int vlan_tci ( struct net_device *netdev __unused ) {
return 0;
}