macvlan: don't broadcast PAUSE frames to macvlan devices
Subsystems (2)
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.
Reported-by Ben Greear <[email protected]>
Tested-by Ben Greear <[email protected]>
Signed-off-by Patrick McHardy <[email protected]>
drivers/net/macvlan.c +3 -0
@@ -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;
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.
Reported-by Ben Greear <[email protected]>Tested-by Ben Greear <[email protected]>Signed-off-by Patrick McHardy <[email protected]>
Applied, thanks Patrick.