slave.c (936db8a2dba26c7f1c90a71be65c126cf1c9f52a) slave.c (d3eed0e57d5d1bcbf1bd60f83a4adfe7d7b8dd9c)
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>

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

1559 struct dsa_switch_tree *dst;
1560 int min_mtu = ETH_MAX_MTU;
1561 struct dsa_port *other_dp;
1562 int err;
1563
1564 if (!dp->ds->mtu_enforcement_ingress)
1565 return;
1566
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>

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

1559 struct dsa_switch_tree *dst;
1560 int min_mtu = ETH_MAX_MTU;
1561 struct dsa_port *other_dp;
1562 int err;
1563
1564 if (!dp->ds->mtu_enforcement_ingress)
1565 return;
1566
1567 if (!dp->bridge_dev)
1567 if (!dp->bridge)
1568 return;
1569
1570 INIT_LIST_HEAD(&hw_port_list);
1571
1572 /* Populate the list of ports that are part of the same bridge
1573 * as the newly added/modified port
1574 */
1575 list_for_each_entry(dst, &dsa_tree_list, list) {

--- 1055 unchanged lines hidden ---
1568 return;
1569
1570 INIT_LIST_HEAD(&hw_port_list);
1571
1572 /* Populate the list of ports that are part of the same bridge
1573 * as the newly added/modified port
1574 */
1575 list_for_each_entry(dst, &dsa_tree_list, list) {

--- 1055 unchanged lines hidden ---