From: Al Viro Date: Tue, 18 Mar 2008 05:49:48 +0000 (-0700) Subject: [8021Q]: vlan_dev misannotations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9534f035ee67630688447e8aac91b1d365a51913;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [8021Q]: vlan_dev misannotations Signed-off-by: Al Viro Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 77f04e49a1a0..8fbcefe10c9f 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c @@ -382,7 +382,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) vlan_dev_info(dev)->cnt_encap_on_xmit++; pr_debug("%s: proto to encap: 0x%hx\n", - __FUNCTION__, htons(veth->h_vlan_proto)); + __FUNCTION__, ntohs(veth->h_vlan_proto)); /* Construct the second two bytes. This field looks something * like: * usr_priority: 3 bits (high bits)