Skip to contentSkip to conversation

macvlan: don't broadcast PAUSE frames to macvlan devices

PATCH Applied Patrick McHardy 2 participants 2 messages Nov 26, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

commit 19e521e49972878b133cb1449a5ac38052d36f3d

Author: Patrick McHardy <[email protected]>
Date:   Wed Nov 26 11:48:09 2008 +0100

macvlan: don't broadcast PAUSE frames to macvlan devices

PAUSE frames are only relevant for the real device, broadcasting them to all macvlan devices can cause a significant load increase.

drivers/net/macvlan.c +3 -0
index e887921..7e24b50 100644
@@ -70,6 +70,9 @@ static void macvlan_broadcast(struct sk_buff *skb,
 	struct sk_buff *nskb;
 	unsigned int i;
 
+	if (skb->protocol == htons(ETH_P_PAUSE))
+		return;
+
 	for (i = 0; i < MACVLAN_HASH_SIZE; i++) {
 		hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) {
 			dev = vlan->dev;
maintainer Applied
#1 lore raw

From: Patrick McHardy <[email protected]>
Date: Wed, 26 Nov 2008 16:53:06 +0100

Quoted 8 lines

macvlan: don't broadcast PAUSE frames to macvlan devices

PAUSE frames are only relevant for the real device, broadcasting them to all macvlan devices can cause a significant load increase.

Applied, thanks Patrick.