summaryrefslogtreecommitdiffstats
path: root/src/net/netdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/netdevice.c')
-rw-r--r--src/net/netdevice.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index ec3456a93..a71666304 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/init.h>
#include <ipxe/device.h>
#include <ipxe/errortab.h>
+#include <ipxe/vlan.h>
#include <ipxe/netdevice.h>
/** @file
@@ -783,5 +784,15 @@ static void net_step ( struct process *process __unused ) {
net_poll();
}
+/**
+ * Get the VLAN tag (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 ) {
+ return 0;
+}
+
/** Networking stack process */
PERMANENT_PROCESS ( net_process, net_step );