diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index adde8fc45588..401e1d1ce1ec 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -514,7 +514,6 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev) | |||
514 | const struct macvlan_dev *vlan = netdev_priv(dev); | 514 | const struct macvlan_dev *vlan = netdev_priv(dev); |
515 | const struct macvlan_port *port = vlan->port; | 515 | const struct macvlan_port *port = vlan->port; |
516 | const struct macvlan_dev *dest; | 516 | const struct macvlan_dev *dest; |
517 | void *accel_priv = NULL; | ||
518 | 517 | ||
519 | if (vlan->mode == MACVLAN_MODE_BRIDGE) { | 518 | if (vlan->mode == MACVLAN_MODE_BRIDGE) { |
520 | const struct ethhdr *eth = (void *)skb->data; | 519 | const struct ethhdr *eth = (void *)skb->data; |
@@ -533,15 +532,10 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev) | |||
533 | return NET_XMIT_SUCCESS; | 532 | return NET_XMIT_SUCCESS; |
534 | } | 533 | } |
535 | } | 534 | } |
536 | |||
537 | /* For packets that are non-multicast and not bridged we will pass | ||
538 | * the necessary information so that the lowerdev can distinguish | ||
539 | * the source of the packets via the accel_priv value. | ||
540 | */ | ||
541 | accel_priv = vlan->accel_priv; | ||
542 | xmit_world: | 535 | xmit_world: |
543 | skb->dev = vlan->lowerdev; | 536 | skb->dev = vlan->lowerdev; |
544 | return dev_queue_xmit_accel(skb, accel_priv); | 537 | return dev_queue_xmit_accel(skb, |
538 | netdev_get_sb_channel(dev) ? dev : NULL); | ||
545 | } | 539 | } |
546 | 540 | ||
547 | static inline netdev_tx_t macvlan_netpoll_send_skb(struct macvlan_dev *vlan, struct sk_buff *skb) | 541 | static inline netdev_tx_t macvlan_netpoll_send_skb(struct macvlan_dev *vlan, struct sk_buff *skb) |