]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: only bring down user ports assigned to a given DSA master
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 19 Aug 2022 17:48:16 +0000 (20:48 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 23 Aug 2022 09:39:22 +0000 (11:39 +0200)
commitc02e2ebe12b0e29194cf00a59f1609115ad85033
tree76a4a56f57b8def967bfc1217ee94eaede915fae
parent78851416400245106eeb1530f90d1debefcc820b
net: dsa: only bring down user ports assigned to a given DSA master

This is an adaptation of commit 86b972c9ee61 ("net: dsa: automatically
bring user ports down when master goes down") for multiple DSA masters.
When a DSA master goes down, only the user ports under its control
should go down too, the others can still send/receive traffic.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/dsa/slave.c