slave.c (c87350ced118ef898ffcb7badacf0939010f2549) slave.c (d0004a020bb50263de0e3e775c7b7c7a003e0e0c)
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>

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

2363
2364 if (!netdev_uses_dsa(dev))
2365 return NOTIFY_DONE;
2366
2367 cpu_dp = dev->dsa_ptr;
2368 dst = cpu_dp->ds->dst;
2369
2370 list_for_each_entry(dp, &dst->ports, list) {
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>

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

2363
2364 if (!netdev_uses_dsa(dev))
2365 return NOTIFY_DONE;
2366
2367 cpu_dp = dev->dsa_ptr;
2368 dst = cpu_dp->ds->dst;
2369
2370 list_for_each_entry(dp, &dst->ports, list) {
2371 if (!dsa_is_user_port(dp->ds, dp->index))
2371 if (!dsa_port_is_user(dp))
2372 continue;
2373
2374 list_add(&dp->slave->close_list, &close_list);
2375 }
2376
2377 dev_close_many(&close_list, true);
2378
2379 return NOTIFY_OK;

--- 289 unchanged lines hidden ---
2372 continue;
2373
2374 list_add(&dp->slave->close_list, &close_list);
2375 }
2376
2377 dev_close_many(&close_list, true);
2378
2379 return NOTIFY_OK;

--- 289 unchanged lines hidden ---