macvlan/macvtap: Fix unicast between macvtap interfaces in bridge mode
authorDavid Ward <david.ward@ll.mit.edu>
Sun, 18 Sep 2011 12:53:20 +0000 (12:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2011 03:31:23 +0000 (23:31 -0400)
Packets should always be forwarded to the lowerdev using dev_forward_skb.
vlan->forward is for packets being forwarded directly to another macvlan/
macvtap device (used for multicast in bridge mode).

Reported-and-tested-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c

index 05172c39a0ceaab229c4c89411c7fabc7201ce0c..376e3e94bae075814c90082e692290c9c301ce58 100644 (file)
@@ -239,7 +239,7 @@ 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) {
                        /* send to lowerdev first for its network taps */
-                       vlan->forward(vlan->lowerdev, skb);
+                       dev_forward_skb(vlan->lowerdev, skb);
 
                        return NET_XMIT_SUCCESS;
                }