diff options
author | David Ward <david.ward@ll.mit.edu> | 2011-05-19 04:53:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-23 03:01:18 +0200 |
commit | a37dd3332319260cce81ac91ce25fcc3a31de997 (patch) | |
tree | 719091eb50b56bb19115383c1bc295133068caa2 /drivers/net/macvlan.c | |
parent | net: Remove linux/prefetch.h include from linux/skbuff.h (diff) | |
download | linux-a37dd3332319260cce81ac91ce25fcc3a31de997.tar.xz linux-a37dd3332319260cce81ac91ce25fcc3a31de997.zip |
macvlan: Forward unicast frames in bridge mode to lowerdev
Unicast frames between macvlan interfaces in bridge mode are not otherwise
sent to network taps on the lowerdev (as all other macvlan frames are), so
forward the frames to the receive queue of the lowerdev first.
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index d72a70615c0f..d6aeaa5f25ea 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -238,10 +238,8 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev) dest = macvlan_hash_lookup(port, eth->h_dest); if (dest && dest->mode == MACVLAN_MODE_BRIDGE) { - unsigned int length = skb->len + ETH_HLEN; - int ret = dest->forward(dest->dev, skb); - macvlan_count_rx(dest, length, - ret == NET_RX_SUCCESS, 0); + /* send to lowerdev first for its network taps */ + vlan->forward(vlan->lowerdev, skb); return NET_XMIT_SUCCESS; } |