diff options
Diffstat (limited to 'net/8021q/vlan_netlink.c')
-rw-r--r-- | net/8021q/vlan_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlan_netlink.c b/net/8021q/vlan_netlink.c index c7e634af8516..8ac8a5cc2143 100644 --- a/net/8021q/vlan_netlink.c +++ b/net/8021q/vlan_netlink.c | |||
@@ -56,8 +56,8 @@ static int vlan_validate(struct nlattr *tb[], struct nlattr *data[]) | |||
56 | 56 | ||
57 | if (data[IFLA_VLAN_PROTOCOL]) { | 57 | if (data[IFLA_VLAN_PROTOCOL]) { |
58 | switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { | 58 | switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { |
59 | case __constant_htons(ETH_P_8021Q): | 59 | case htons(ETH_P_8021Q): |
60 | case __constant_htons(ETH_P_8021AD): | 60 | case htons(ETH_P_8021AD): |
61 | break; | 61 | break; |
62 | default: | 62 | default: |
63 | return -EPROTONOSUPPORT; | 63 | return -EPROTONOSUPPORT; |