mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
net: dsa: only bring down user ports assigned to a given DSA master
This is an adaptation of commit c0a8a9c274
("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>
This commit is contained in:
parent
4f03dcc6b9
commit
7136097e11
@ -2873,6 +2873,9 @@ static int dsa_slave_netdevice_event(struct notifier_block *nb,
|
||||
if (!dsa_port_is_user(dp))
|
||||
continue;
|
||||
|
||||
if (dp->cpu_dp != cpu_dp)
|
||||
continue;
|
||||
|
||||
list_add(&dp->slave->close_list, &close_list);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user