|
@@ -120,6 +120,8 @@ static inline int is_vlan_dev(struct net_device *dev)
|
|
|
|
|
|
#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
|
|
#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
|
|
|
|
|
|
|
|
+extern struct net_device *__vlan_find_dev_deep(struct net_device *real_dev,
|
|
|
|
+ u16 vlan_id);
|
|
extern struct net_device *vlan_dev_real_dev(const struct net_device *dev);
|
|
extern struct net_device *vlan_dev_real_dev(const struct net_device *dev);
|
|
extern u16 vlan_dev_vlan_id(const struct net_device *dev);
|
|
extern u16 vlan_dev_vlan_id(const struct net_device *dev);
|
|
|
|
|
|
@@ -135,6 +137,12 @@ vlan_gro_frags(struct napi_struct *napi, struct vlan_group *grp,
|
|
unsigned int vlan_tci);
|
|
unsigned int vlan_tci);
|
|
|
|
|
|
#else
|
|
#else
|
|
|
|
+static inline struct net_device *
|
|
|
|
+__vlan_find_dev_deep(struct net_device *real_dev, u16 vlan_id)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev)
|
|
static inline struct net_device *vlan_dev_real_dev(const struct net_device *dev)
|
|
{
|
|
{
|
|
BUG();
|
|
BUG();
|