projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1b7f85
)
vlan: don't call ndo_vlan_rx_register on hardware that doesn't have vlan support
author
Antoine Reversat
<a.reversat@gmail.com>
Thu, 16 Jun 2011 10:47:13 +0000
(10:47 +0000)
committer
David S. Miller
<davem@conan.davemloft.net>
Fri, 17 Jun 2011 04:12:51 +0000
(
00:12
-0400)
This patch removes the call to ndo_vlan_rx_register if the underlying
device doesn't have hardware support for VLAN.
Signed-off-by: Antoine Reversat <a.reversat@gmail.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
net/8021q/vlan.c
patch
|
blob
|
history
diff --git
a/net/8021q/vlan.c
b/net/8021q/vlan.c
index c7a581a96894c7193ff75c48573976aad6133255..917ecb93ea28d477d75c729accac39eacbdfa752 100644
(file)
--- a/
net/8021q/vlan.c
+++ b/
net/8021q/vlan.c
@@
-205,7
+205,7
@@
int register_vlan_dev(struct net_device *dev)
grp->nr_vlans++;
if (ngrp) {
- if (ops->ndo_vlan_rx_register)
+ if (ops->ndo_vlan_rx_register
&& (real_dev->features & NETIF_F_HW_VLAN_RX)
)
ops->ndo_vlan_rx_register(real_dev, ngrp);
rcu_assign_pointer(real_dev->vlgrp, ngrp);
}