Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <greearb@candelatech.com>
Tested-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Patrick McHardy and committed by
David S. Miller
efbbced3 7e5ab542

+3
+3
drivers/net/macvlan.c
··· 70 70 struct sk_buff *nskb; 71 71 unsigned int i; 72 72 73 + if (skb->protocol == htons(ETH_P_PAUSE)) 74 + return; 75 + 73 76 for (i = 0; i < MACVLAN_HASH_SIZE; i++) { 74 77 hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) { 75 78 dev = vlan->dev;