diff options
author | Jesse Gross <jesse@nicira.com> | 2010-10-21 07:30:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 22:59:31 -0400 |
commit | 0988c4c7fb5881377ec20a6452f739a722e97c6b (patch) | |
tree | da72b7404960d912b7646a7749ac5829e30d96cd /include | |
parent | 2198a10b501fd4443430cb17e065a9e859cc58c9 (diff) |
vlan: Calling vlan_hwaccel_do_receive() is always valid.
It is now acceptable to receive vlan tagged packets at any time,
even if CONFIG_VLAN_8021Q is not set. This means that calling
vlan_hwaccel_do_receive() should not result in BUG() but rather just
behave as if there were no vlan devices configured.
Reported-by: Vladislav Zolotarov <vladz@broadcom.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/if_vlan.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index a0d9786c202d..c2f3a72712ce 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -168,7 +168,8 @@ static inline int __vlan_hwaccel_rx(struct sk_buff *skb, struct vlan_group *grp, | |||
168 | 168 | ||
169 | static inline bool vlan_hwaccel_do_receive(struct sk_buff **skb) | 169 | static inline bool vlan_hwaccel_do_receive(struct sk_buff **skb) |
170 | { | 170 | { |
171 | BUG(); | 171 | if ((*skb)->vlan_tci & VLAN_VID_MASK) |
172 | (*skb)->pkt_type = PACKET_OTHERHOST; | ||
172 | return false; | 173 | return false; |
173 | } | 174 | } |
174 | 175 | ||