summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_forward.c
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2023-04-19 18:34:53 +0300
committerDavid S. Miller <davem@davemloft.net>2023-04-21 08:25:49 +0100
commite408336a693e0fd74ba1b959627594b80f1761c3 (patch)
treef0a487c12e7383eaa3414ac34c85dd93e6d078db /net/bridge/br_forward.c
parent013a7ce81dd8a5bba31f802053829d91f9a43a8f (diff)
downloadlinux-stable-e408336a693e0fd74ba1b959627594b80f1761c3.tar.gz
linux-stable-e408336a693e0fd74ba1b959627594b80f1761c3.tar.bz2
linux-stable-e408336a693e0fd74ba1b959627594b80f1761c3.zip
bridge: Pass VLAN ID to br_flood()
Subsequent patches are going to add per-{Port, VLAN} neighbor suppression, which will require br_flood() to potentially suppress ARP / NS packets on a per-{Port, VLAN} basis. As a preparation, pass the VLAN ID of the packet as another argument to br_flood(). Signed-off-by: Ido Schimmel <idosch@nvidia.com> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_forward.c')
-rw-r--r--net/bridge/br_forward.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bridge/br_forward.c b/net/bridge/br_forward.c
index 0fe133fa214c..94a8d757ae4e 100644
--- a/net/bridge/br_forward.c
+++ b/net/bridge/br_forward.c
@@ -197,7 +197,8 @@ out:
/* called under rcu_read_lock */
void br_flood(struct net_bridge *br, struct sk_buff *skb,
- enum br_pkt_type pkt_type, bool local_rcv, bool local_orig)
+ enum br_pkt_type pkt_type, bool local_rcv, bool local_orig,
+ u16 vid)
{
struct net_bridge_port *prev = NULL;
struct net_bridge_port *p;