提交 116cb428 编写于 作者: B Ben Greear 提交者: David S. Miller

vlan: Export symbols as non GPL symbols.

In previous kernels, any kernel module could get access to the
'real-device' and the VLAN-ID for a particular VLAN.  In more recent
kernels, the code was restructured such that this is hard to do
without accessing private .h files for any module that cannot use
GPL-only symbols.

Attached is a patch to once again allow non-GPL modules the ability to
access the real-device and VLAN id for VLANs.
Signed-off-by: NBen Greear <greearb@candelatech.com>
Acked-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e8b5fc51
...@@ -62,13 +62,13 @@ struct net_device *vlan_dev_real_dev(const struct net_device *dev) ...@@ -62,13 +62,13 @@ struct net_device *vlan_dev_real_dev(const struct net_device *dev)
{ {
return vlan_dev_info(dev)->real_dev; return vlan_dev_info(dev)->real_dev;
} }
EXPORT_SYMBOL_GPL(vlan_dev_real_dev); EXPORT_SYMBOL(vlan_dev_real_dev);
u16 vlan_dev_vlan_id(const struct net_device *dev) u16 vlan_dev_vlan_id(const struct net_device *dev)
{ {
return vlan_dev_info(dev)->vlan_id; return vlan_dev_info(dev)->vlan_id;
} }
EXPORT_SYMBOL_GPL(vlan_dev_vlan_id); EXPORT_SYMBOL(vlan_dev_vlan_id);
static int vlan_gro_common(struct napi_struct *napi, struct vlan_group *grp, static int vlan_gro_common(struct napi_struct *napi, struct vlan_group *grp,
unsigned int vlan_tci, struct sk_buff *skb) unsigned int vlan_tci, struct sk_buff *skb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册