]> git.baikalelectronics.ru Git - kernel.git/commit
vlan: make a new function vlan_dev_vlan_proto() and export
authordingtianhong <dingtianhong@huawei.com>
Tue, 25 Mar 2014 09:44:42 +0000 (17:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2014 20:41:28 +0000 (16:41 -0400)
commit620e774b7657688181eb9ac6a1b33bf84ad76916
treea6ee4a671c70992ed02c1183fec49997ca65c99f
parent50cf15ec3fab7c58171464550ce6d15e7c7c0cdd
vlan: make a new function vlan_dev_vlan_proto() and export

The vlan support 2 proto: 802.1q and 802.1ad, so make a new function
called vlan_dev_vlan_proto() which could return the vlan proto for
input dev.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_vlan.h
net/8021q/vlan_core.c