summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/netdevice.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/netdevice.c b/src/net/netdevice.c
index a71666304..e9cbb9e96 100644
--- a/src/net/netdevice.c
+++ b/src/net/netdevice.c
@@ -794,5 +794,17 @@ __weak unsigned int vlan_tag ( struct net_device *netdev __unused ) {
return 0;
}
+/**
+ * Identify VLAN device (when VLAN support is not present)
+ *
+ * @v trunk Trunk network device
+ * @v tag VLAN tag
+ * @ret netdev VLAN device, if any
+ */
+__weak struct net_device * vlan_find ( struct net_device *trunk __unused,
+ unsigned int tag __unused ) {
+ return NULL;
+}
+
/** Networking stack process */
PERMANENT_PROCESS ( net_process, net_step );