summaryrefslogtreecommitdiff
path: root/net/bridge
diff options
context:
space:
mode:
authorHans Schultz <schultz.hans@gmail.com>2022-02-23 13:16:47 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-23 15:52:34 +0300
commitfa1c83342987d8b2fd246894295393e09b0af18f (patch)
treed1d0d96672d3e1c2c6c8c87c56ec2b46715faeee /net/bridge
parenta21d9a670d81103db7f788de1a4a4a6e4b891a0b (diff)
downloadlinux-fa1c83342987d8b2fd246894295393e09b0af18f.tar.xz
net: bridge: Add support for offloading of locked port flag
Various switchcores support setting ports in locked mode, so that clients behind locked ports cannot send traffic through the port unless a fdb entry is added with the clients MAC address. Signed-off-by: Hans Schultz <schultz.hans+netdev@gmail.com> Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com> Reviewed-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_switchdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_switchdev.c b/net/bridge/br_switchdev.c
index 59fcabd08ef1..6f6a70121a5e 100644
--- a/net/bridge/br_switchdev.c
+++ b/net/bridge/br_switchdev.c
@@ -72,7 +72,7 @@ bool nbp_switchdev_allowed_egress(const struct net_bridge_port *p,
/* Flags that can be offloaded to hardware */
#define BR_PORT_FLAGS_HW_OFFLOAD (BR_LEARNING | BR_FLOOD | \
- BR_MCAST_FLOOD | BR_BCAST_FLOOD)
+ BR_MCAST_FLOOD | BR_BCAST_FLOOD | BR_PORT_LOCKED)
int br_switchdev_set_port_flag(struct net_bridge_port *p,
unsigned long flags,