From: David Ward Date: Sun, 18 Sep 2011 12:53:20 +0000 (+0000) Subject: macvlan/macvtap: Fix unicast between macvtap interfaces in bridge mode X-Git-Tag: v3.0.9~123 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=89c32c14c190c6113187c7c57784695701e314e4;p=karo-tx-linux.git macvlan/macvtap: Fix unicast between macvtap interfaces in bridge mode [ Upstream commit cb2d0f3e968bff7c6d262aca3e3ab8d4184e69b2 ] 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 Signed-off-by: David Ward Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 2f3c48da5865..ab4723d92a64 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -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; }