diff options
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan_dev.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c index 51ce4217c039..50d8edcbb897 100644 --- a/net/8021q/vlan_dev.c +++ b/net/8021q/vlan_dev.c | |||
@@ -181,24 +181,6 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, | |||
181 | /* Take off the VLAN header (4 bytes currently) */ | 181 | /* Take off the VLAN header (4 bytes currently) */ |
182 | skb_pull_rcsum(skb, VLAN_HLEN); | 182 | skb_pull_rcsum(skb, VLAN_HLEN); |
183 | 183 | ||
184 | /* Ok, lets check to make sure the device (dev) we | ||
185 | * came in on is what this VLAN is attached to. | ||
186 | */ | ||
187 | |||
188 | if (dev != VLAN_DEV_INFO(skb->dev)->real_dev) { | ||
189 | rcu_read_unlock(); | ||
190 | |||
191 | #ifdef VLAN_DEBUG | ||
192 | printk(VLAN_DBG "%s: dropping skb: %p because came in on wrong device, dev: %s real_dev: %s, skb_dev: %s\n", | ||
193 | __FUNCTION__, skb, dev->name, | ||
194 | VLAN_DEV_INFO(skb->dev)->real_dev->name, | ||
195 | skb->dev->name); | ||
196 | #endif | ||
197 | kfree_skb(skb); | ||
198 | stats->rx_errors++; | ||
199 | return -1; | ||
200 | } | ||
201 | |||
202 | /* | 184 | /* |
203 | * Deal with ingress priority mapping. | 185 | * Deal with ingress priority mapping. |
204 | */ | 186 | */ |