Lines Matching refs:slave
327 dsa_slave_vlan_check_for_8021q_uppers(struct net_device *slave, in dsa_slave_vlan_check_for_8021q_uppers() argument
333 netdev_for_each_upper_dev_rcu(slave, upper_dev, iter) { in dsa_slave_vlan_check_for_8021q_uppers()
1457 int dsa_slave_manage_vlan_filtering(struct net_device *slave, in dsa_slave_manage_vlan_filtering() argument
1463 slave->features |= NETIF_F_HW_VLAN_CTAG_FILTER; in dsa_slave_manage_vlan_filtering()
1465 err = vlan_for_each(slave, dsa_slave_restore_vlan, slave); in dsa_slave_manage_vlan_filtering()
1467 vlan_for_each(slave, dsa_slave_clear_vlan, slave); in dsa_slave_manage_vlan_filtering()
1468 slave->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in dsa_slave_manage_vlan_filtering()
1472 err = vlan_for_each(slave, dsa_slave_clear_vlan, slave); in dsa_slave_manage_vlan_filtering()
1476 slave->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; in dsa_slave_manage_vlan_filtering()
1547 struct net_device *slave; in dsa_bridge_mtu_normalization() local
1558 slave = other_dp->slave; in dsa_bridge_mtu_normalization()
1560 if (min_mtu > slave->mtu) in dsa_bridge_mtu_normalization()
1561 min_mtu = slave->mtu; in dsa_bridge_mtu_normalization()
1567 hw_port->dev = slave; in dsa_bridge_mtu_normalization()
1568 hw_port->old_mtu = slave->mtu; in dsa_bridge_mtu_normalization()
1578 err = dsa_hw_port_list_set_mtu(&hw_port_list, dp->slave->mtu); in dsa_bridge_mtu_normalization()
1621 if (!dp_iter->slave) in dsa_slave_change_mtu()
1630 slave_mtu = dp_iter->slave->mtu; in dsa_slave_change_mtu()
1867 void dsa_slave_setup_tagger(struct net_device *slave) in dsa_slave_setup_tagger() argument
1869 struct dsa_port *dp = dsa_slave_to_port(slave); in dsa_slave_setup_tagger()
1870 struct dsa_slave_priv *p = netdev_priv(slave); in dsa_slave_setup_tagger()
1875 slave->needed_headroom = cpu_dp->tag_ops->needed_headroom; in dsa_slave_setup_tagger()
1876 slave->needed_tailroom = cpu_dp->tag_ops->needed_tailroom; in dsa_slave_setup_tagger()
1881 slave->needed_headroom += master->needed_headroom; in dsa_slave_setup_tagger()
1882 slave->needed_tailroom += master->needed_tailroom; in dsa_slave_setup_tagger()
1886 slave->features = master->vlan_features | NETIF_F_HW_TC; in dsa_slave_setup_tagger()
1887 slave->hw_features |= NETIF_F_HW_TC; in dsa_slave_setup_tagger()
1888 slave->features |= NETIF_F_LLTX; in dsa_slave_setup_tagger()
1889 if (slave->needed_tailroom) in dsa_slave_setup_tagger()
1890 slave->features &= ~(NETIF_F_SG | NETIF_F_FRAGLIST); in dsa_slave_setup_tagger()
1892 slave->features |= NETIF_F_HW_VLAN_CTAG_FILTER; in dsa_slave_setup_tagger()
1986 port->slave = slave_dev; in dsa_slave_create()
2037 port->slave = NULL; in dsa_slave_create()
2198 struct net_device *slave; in dsa_prevent_bridging_8021q_upper() local
2206 slave = vlan_dev_real_dev(dev); in dsa_prevent_bridging_8021q_upper()
2207 if (!dsa_slave_dev_check(slave)) in dsa_prevent_bridging_8021q_upper()
2210 dp = dsa_slave_to_port(slave); in dsa_prevent_bridging_8021q_upper()
2340 list_add(&dp->slave->close_list, &close_list); in dsa_slave_netdevice_event()
2369 dp->slave, &info.info, NULL); in dsa_fdb_offload_notify()