kernel-fxtec-pro1x/net/dsa
Rundong Ge 8104a5e73f net: dsa: slave: Don't propagate flag changes on down slave interfaces
[ Upstream commit 17ab4f61b8cd6f9c38e9d0b935d86d73b5d0d2b5 ]

The unbalance of master's promiscuity or allmulti will happen after ifdown
and ifup a slave interface which is in a bridge.

When we ifdown a slave interface , both the 'dsa_slave_close' and
'dsa_slave_change_rx_flags' will clear the master's flags. The flags
of master will be decrease twice.
In the other hand, if we ifup the slave interface again, since the
slave's flags were cleared the 'dsa_slave_open' won't set the master's
flag, only 'dsa_slave_change_rx_flags' that triggered by 'br_add_if'
will set the master's flags. The flags of master is increase once.

Only propagating flag changes when a slave interface is up makes
sure this does not happen. The 'vlan_dev_change_rx_flags' had the
same problem and was fixed, and changes here follows that fix.

Fixes: 91da11f870 ("net: Distributed Switch Architecture protocol support")
Signed-off-by: Rundong Ge <rdong.ge@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-12 19:47:22 +01:00
..
dsa.c net: dsa: Drop GPIO includes 2018-08-27 15:24:33 -07:00
dsa2.c net: dsa: Remove VLA usage 2018-07-18 15:08:31 -07:00
dsa_priv.h net: dsa: Plug in PHYLINK support 2018-05-11 12:03:06 -04:00
Kconfig net: dsa: Add PHYLINK switch operations 2018-05-11 12:03:05 -04:00
legacy.c
Makefile
master.c net: dsa: Fix lockdep false positive splat 2019-02-12 19:47:21 +01:00
port.c dsa: port: Ignore bridge VLAN events 2018-05-31 14:13:43 -04:00
slave.c net: dsa: slave: Don't propagate flag changes on down slave interfaces 2019-02-12 19:47:22 +01:00
switch.c net: dsa: Remove VLA usage 2018-07-18 15:08:31 -07:00
tag_brcm.c
tag_dsa.c
tag_edsa.c
tag_ksz.c
tag_lan9303.c
tag_mtk.c
tag_qca.c
tag_trailer.c net: dsa: add error handling for pskb_trim_rcsum 2018-06-11 14:19:38 -07:00