switch.c (db6da59cf27b5661ced03754ae0550f8914eda9e) | switch.c (d06f925f13976ab82167c93467c70a337a0a3cda) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Handling of a single switch chip, part of a switch fabric 4 * 5 * Copyright (c) 2017 Savoir-faire Linux Inc. 6 * Vivien Didelot <vivien.didelot@savoirfairelinux.com> 7 */ 8 --- 659 unchanged lines hidden (view full) --- 668 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; 669 670 if (dsa_switch_is_upstream_of(dp->ds, targeted_dp->ds)) 671 return dsa_port_is_dsa(dp) || dp == cpu_dp; 672 673 return false; 674} 675 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Handling of a single switch chip, part of a switch fabric 4 * 5 * Copyright (c) 2017 Savoir-faire Linux Inc. 6 * Vivien Didelot <vivien.didelot@savoirfairelinux.com> 7 */ 8 --- 659 unchanged lines hidden (view full) --- 668 struct dsa_port *cpu_dp = targeted_dp->cpu_dp; 669 670 if (dsa_switch_is_upstream_of(dp->ds, targeted_dp->ds)) 671 return dsa_port_is_dsa(dp) || dp == cpu_dp; 672 673 return false; 674} 675 |
676static struct dsa_vlan *dsa_vlan_find(struct list_head *vlan_list, 677 const struct switchdev_obj_port_vlan *vlan) | 676struct dsa_vlan *dsa_vlan_find(struct list_head *vlan_list, 677 const struct switchdev_obj_port_vlan *vlan) |
678{ 679 struct dsa_vlan *v; 680 681 list_for_each_entry(v, vlan_list, list) 682 if (v->vid == vlan->vid) 683 return v; 684 685 return NULL; --- 449 unchanged lines hidden --- | 678{ 679 struct dsa_vlan *v; 680 681 list_for_each_entry(v, vlan_list, list) 682 if (v->vid == vlan->vid) 683 return v; 684 685 return NULL; --- 449 unchanged lines hidden --- |