]> git.baikalelectronics.ru Git - kernel.git/commit
team: set slave to promisc if team is already in promisc mode
authorHangbin Liu <liuhangbin@gmail.com>
Mon, 8 Apr 2019 08:45:17 +0000 (16:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2019 02:17:59 +0000 (19:17 -0700)
commit2bd6c19bab91ac2237de014a004bcc08ab5b379a
tree596c23b8c596c5a485c3359826bb023db83c9ee1
parenta6b33b6cf7c73fc93a8b3459978b47663facd8d2
team: set slave to promisc if team is already in promisc mode

After adding a team interface to bridge, the team interface will enter
promisc mode. Then if we add a new slave to team0, the slave will keep
promisc off. Fix it by setting slave to promisc on if team master is
already in promisc mode, also do the same for allmulti.

v2: add promisc and allmulti checking when delete ports

Fixes: c4c5d58badd6 ("net: introduce ethernet teaming device")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c