Skip to content

Commit a37dd33

Browse files
dpwarddavem330
authored andcommitted
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>
1 parent 67f11f4 commit a37dd33

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎drivers/net/macvlan.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,8 @@ static int macvlan_queue_xmit(struct sk_buff *skb, struct net_device *dev)
238238

239239
dest = macvlan_hash_lookup(port, eth->h_dest);
240240
if (dest && dest->mode == MACVLAN_MODE_BRIDGE) {
241-
unsigned int length = skb->len + ETH_HLEN;
242-
int ret = dest->forward(dest->dev, skb);
243-
macvlan_count_rx(dest, length,
244-
ret == NET_RX_SUCCESS, 0);
241+
/* send to lowerdev first for its network taps */
242+
vlan->forward(vlan->lowerdev, skb);
245243

246244
return NET_XMIT_SUCCESS;
247245
}

0 commit comments

Comments
 (0)