diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-07 10:43:04 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-07 10:43:04 -0400 |
commit | a56e74f546b64be93731e42d83baf5b538cc1b11 (patch) | |
tree | 18f6dee45d801e57ac9db2a31664b0d5c0762c50 /net/batman-adv/soft-interface.c | |
parent | d08e2e09042bd3f7ef66a35cb4bb92794ab26bb2 (diff) | |
parent | e4e7f10bfc4069925e99cc4b428c3434e30b6c3f (diff) |
Merge branch 'arm-aesbs' of git://git.linaro.org/people/ardbiesheuvel/linux-arm into devel-stable
Diffstat (limited to 'net/batman-adv/soft-interface.c')
-rw-r--r-- | net/batman-adv/soft-interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c index 4493913f0d5c..813db4e64602 100644 --- a/net/batman-adv/soft-interface.c +++ b/net/batman-adv/soft-interface.c | |||
@@ -168,6 +168,7 @@ static int batadv_interface_tx(struct sk_buff *skb, | |||
168 | case ETH_P_8021Q: | 168 | case ETH_P_8021Q: |
169 | vhdr = (struct vlan_ethhdr *)skb->data; | 169 | vhdr = (struct vlan_ethhdr *)skb->data; |
170 | vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; | 170 | vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; |
171 | vid |= BATADV_VLAN_HAS_TAG; | ||
171 | 172 | ||
172 | if (vhdr->h_vlan_encapsulated_proto != ethertype) | 173 | if (vhdr->h_vlan_encapsulated_proto != ethertype) |
173 | break; | 174 | break; |
@@ -331,6 +332,7 @@ void batadv_interface_rx(struct net_device *soft_iface, | |||
331 | case ETH_P_8021Q: | 332 | case ETH_P_8021Q: |
332 | vhdr = (struct vlan_ethhdr *)skb->data; | 333 | vhdr = (struct vlan_ethhdr *)skb->data; |
333 | vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; | 334 | vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; |
335 | vid |= BATADV_VLAN_HAS_TAG; | ||
334 | 336 | ||
335 | if (vhdr->h_vlan_encapsulated_proto != ethertype) | 337 | if (vhdr->h_vlan_encapsulated_proto != ethertype) |
336 | break; | 338 | break; |