slave.c (4f03dcc6b9a0734d755601002e33adbd42469b47) slave.c (7136097e11996417da59c67682694d8a5a7f3f4b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * net/dsa/slave.c - Slave device handling
4 * Copyright (c) 2008-2009 Marvell Semiconductor
5 */
6
7#include <linux/list.h>
8#include <linux/etherdevice.h>

--- 2859 unchanged lines hidden (view full) ---

2868 dst = cpu_dp->ds->dst;
2869
2870 dsa_tree_master_admin_state_change(dst, dev, false);
2871
2872 list_for_each_entry(dp, &dst->ports, list) {
2873 if (!dsa_port_is_user(dp))
2874 continue;
2875
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * net/dsa/slave.c - Slave device handling
4 * Copyright (c) 2008-2009 Marvell Semiconductor
5 */
6
7#include <linux/list.h>
8#include <linux/etherdevice.h>

--- 2859 unchanged lines hidden (view full) ---

2868 dst = cpu_dp->ds->dst;
2869
2870 dsa_tree_master_admin_state_change(dst, dev, false);
2871
2872 list_for_each_entry(dp, &dst->ports, list) {
2873 if (!dsa_port_is_user(dp))
2874 continue;
2875
2876 if (dp->cpu_dp != cpu_dp)
2877 continue;
2878
2876 list_add(&dp->slave->close_list, &close_list);
2877 }
2878
2879 dev_close_many(&close_list, true);
2880
2881 return NOTIFY_OK;
2882 }
2883 default:

--- 266 unchanged lines hidden ---
2879 list_add(&dp->slave->close_list, &close_list);
2880 }
2881
2882 dev_close_many(&close_list, true);
2883
2884 return NOTIFY_OK;
2885 }
2886 default:

--- 266 unchanged lines hidden ---