From: Hans Schultz Date: Wed, 23 Feb 2022 10:16:48 +0000 (+0100) Subject: net: dsa: Include BR_PORT_LOCKED in the list of synced brport flags X-Git-Tag: v6.6.17~7931^2~267^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9e8b58fd2cb30cb6e01d72c7d32286810a9bca9;p=platform%2Fkernel%2Flinux-rpi.git net: dsa: Include BR_PORT_LOCKED in the list of synced brport flags Ensures that the DSA switch driver gets notified of changes to the BR_PORT_LOCKED flag as well, for the case when a DSA port joins or leaves a LAG that is a bridge port. Signed-off-by: Hans Schultz Reviewed-by: Vladimir Oltean Signed-off-by: David S. Miller --- diff --git a/net/dsa/port.c b/net/dsa/port.c index 367d141..66dd262 100644 --- a/net/dsa/port.c +++ b/net/dsa/port.c @@ -176,7 +176,7 @@ static int dsa_port_inherit_brport_flags(struct dsa_port *dp, struct netlink_ext_ack *extack) { const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | - BR_BCAST_FLOOD; + BR_BCAST_FLOOD | BR_PORT_LOCKED; struct net_device *brport_dev = dsa_port_to_bridge_port(dp); int flag, err; @@ -200,7 +200,7 @@ static void dsa_port_clear_brport_flags(struct dsa_port *dp) { const unsigned long val = BR_FLOOD | BR_MCAST_FLOOD | BR_BCAST_FLOOD; const unsigned long mask = BR_LEARNING | BR_FLOOD | BR_MCAST_FLOOD | - BR_BCAST_FLOOD; + BR_BCAST_FLOOD | BR_PORT_LOCKED; int flag, err; for_each_set_bit(flag, &mask, 32) {