Lines Matching full:ds

68 static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds)  in dsa_switch_supports_uc_filtering()  argument
70 return ds->ops->port_fdb_add && ds->ops->port_fdb_del && in dsa_switch_supports_uc_filtering()
71 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_uc_filtering()
72 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_uc_filtering()
75 static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds) in dsa_switch_supports_mc_filtering() argument
77 return ds->ops->port_mdb_add && ds->ops->port_mdb_del && in dsa_switch_supports_mc_filtering()
78 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_mc_filtering()
79 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_mc_filtering()
90 struct dsa_switch *ds = dp->ds; in dsa_user_standalone_event_work() local
98 dev_err(ds->dev, in dsa_user_standalone_event_work()
108 dev_err(ds->dev, in dsa_user_standalone_event_work()
120 dev_err(ds->dev, in dsa_user_standalone_event_work()
132 dev_err(ds->dev, in dsa_user_standalone_event_work()
209 if (!dsa_switch_supports_uc_filtering(dp->ds)) in dsa_user_sync_uc()
229 if (!dsa_switch_supports_uc_filtering(dp->ds)) in dsa_user_unsync_uc()
249 if (!dsa_switch_supports_mc_filtering(dp->ds)) in dsa_user_sync_mc()
269 if (!dsa_switch_supports_mc_filtering(dp->ds)) in dsa_user_unsync_mc()
279 struct dsa_switch *ds = dp->ds; in dsa_user_sync_ha() local
292 if (dsa_switch_supports_uc_filtering(ds) || in dsa_user_sync_ha()
293 dsa_switch_supports_mc_filtering(ds)) in dsa_user_sync_ha()
300 struct dsa_switch *ds = dp->ds; in dsa_user_unsync_ha() local
313 if (dsa_switch_supports_uc_filtering(ds) || in dsa_user_unsync_ha()
314 dsa_switch_supports_mc_filtering(ds)) in dsa_user_unsync_ha()
321 struct dsa_switch *ds = bus->priv; in dsa_user_phy_read() local
323 if (ds->phys_mii_mask & (1 << addr)) in dsa_user_phy_read()
324 return ds->ops->phy_read(ds, addr, reg); in dsa_user_phy_read()
331 struct dsa_switch *ds = bus->priv; in dsa_user_phy_write() local
333 if (ds->phys_mii_mask & (1 << addr)) in dsa_user_phy_write()
334 return ds->ops->phy_write(ds, addr, reg, val); in dsa_user_phy_write()
339 void dsa_user_mii_bus_init(struct dsa_switch *ds) in dsa_user_mii_bus_init() argument
341 ds->user_mii_bus->priv = (void *)ds; in dsa_user_mii_bus_init()
342 ds->user_mii_bus->name = "dsa user smi"; in dsa_user_mii_bus_init()
343 ds->user_mii_bus->read = dsa_user_phy_read; in dsa_user_mii_bus_init()
344 ds->user_mii_bus->write = dsa_user_phy_write; in dsa_user_mii_bus_init()
345 snprintf(ds->user_mii_bus->id, MII_BUS_ID_SIZE, "dsa-%d.%d", in dsa_user_mii_bus_init()
346 ds->dst->index, ds->index); in dsa_user_mii_bus_init()
347 ds->user_mii_bus->parent = ds->dev; in dsa_user_mii_bus_init()
348 ds->user_mii_bus->phy_mask = ~ds->phys_mii_mask; in dsa_user_mii_bus_init()
362 struct dsa_switch *ds = dp->ds; in dsa_user_host_uc_install() local
365 if (dsa_switch_supports_uc_filtering(ds)) { in dsa_user_host_uc_install()
380 if (dsa_switch_supports_uc_filtering(ds)) in dsa_user_host_uc_install()
390 struct dsa_switch *ds = dp->ds; in dsa_user_host_uc_uninstall() local
395 if (dsa_switch_supports_uc_filtering(ds)) in dsa_user_host_uc_uninstall()
451 struct dsa_switch *ds = dp->ds; in dsa_user_change_rx_flags() local
460 if (dsa_switch_supports_uc_filtering(ds) && in dsa_user_change_rx_flags()
461 dsa_switch_supports_mc_filtering(ds)) in dsa_user_change_rx_flags()
474 struct dsa_switch *ds = dp->ds; in dsa_user_set_mac_address() local
481 if (ds->ops->port_set_mac_address) { in dsa_user_set_mac_address()
482 err = ds->ops->port_set_mac_address(ds, dp->index, in dsa_user_set_mac_address()
581 struct dsa_switch *ds = p->dp->ds; in dsa_user_ioctl() local
587 if (ds->ops->port_hwtstamp_get) in dsa_user_ioctl()
588 return ds->ops->port_hwtstamp_get(ds, port, ifr); in dsa_user_ioctl()
591 if (ds->ops->port_hwtstamp_set) in dsa_user_ioctl()
592 return ds->ops->port_hwtstamp_set(ds, port, ifr); in dsa_user_ioctl()
898 struct dsa_switch *ds = p->dp->ds; in dsa_skb_tx_timestamp() local
903 if (!ds->ops->port_txtstamp) in dsa_skb_tx_timestamp()
906 ds->ops->port_txtstamp(ds, p->dp->index, skb); in dsa_skb_tx_timestamp()
976 struct dsa_switch *ds = dp->ds; in dsa_user_get_regs_len() local
978 if (ds->ops->get_regs_len) in dsa_user_get_regs_len()
979 return ds->ops->get_regs_len(ds, dp->index); in dsa_user_get_regs_len()
988 struct dsa_switch *ds = dp->ds; in dsa_user_get_regs() local
990 if (ds->ops->get_regs) in dsa_user_get_regs()
991 ds->ops->get_regs(ds, dp->index, regs, _p); in dsa_user_get_regs()
1004 struct dsa_switch *ds = dp->ds; in dsa_user_get_eeprom_len() local
1006 if (ds->cd && ds->cd->eeprom_len) in dsa_user_get_eeprom_len()
1007 return ds->cd->eeprom_len; in dsa_user_get_eeprom_len()
1009 if (ds->ops->get_eeprom_len) in dsa_user_get_eeprom_len()
1010 return ds->ops->get_eeprom_len(ds); in dsa_user_get_eeprom_len()
1019 struct dsa_switch *ds = dp->ds; in dsa_user_get_eeprom() local
1021 if (ds->ops->get_eeprom) in dsa_user_get_eeprom()
1022 return ds->ops->get_eeprom(ds, eeprom, data); in dsa_user_get_eeprom()
1031 struct dsa_switch *ds = dp->ds; in dsa_user_set_eeprom() local
1033 if (ds->ops->set_eeprom) in dsa_user_set_eeprom()
1034 return ds->ops->set_eeprom(ds, eeprom, data); in dsa_user_set_eeprom()
1043 struct dsa_switch *ds = dp->ds; in dsa_user_get_strings() local
1050 if (ds->ops->get_strings) in dsa_user_get_strings()
1051 ds->ops->get_strings(ds, dp->index, stringset, data); in dsa_user_get_strings()
1063 struct dsa_switch *ds = dp->ds; in dsa_user_get_ethtool_stats() local
1084 if (ds->ops->get_ethtool_stats) in dsa_user_get_ethtool_stats()
1085 ds->ops->get_ethtool_stats(ds, dp->index, data + 4); in dsa_user_get_ethtool_stats()
1091 struct dsa_switch *ds = dp->ds; in dsa_user_get_sset_count() local
1096 if (ds->ops->get_sset_count) { in dsa_user_get_sset_count()
1097 count = ds->ops->get_sset_count(ds, dp->index, sset); in dsa_user_get_sset_count()
1114 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_phy_stats() local
1116 if (ds->ops->get_eth_phy_stats) in dsa_user_get_eth_phy_stats()
1117 ds->ops->get_eth_phy_stats(ds, dp->index, phy_stats); in dsa_user_get_eth_phy_stats()
1124 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_mac_stats() local
1126 if (ds->ops->get_eth_mac_stats) in dsa_user_get_eth_mac_stats()
1127 ds->ops->get_eth_mac_stats(ds, dp->index, mac_stats); in dsa_user_get_eth_mac_stats()
1135 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_ctrl_stats() local
1137 if (ds->ops->get_eth_ctrl_stats) in dsa_user_get_eth_ctrl_stats()
1138 ds->ops->get_eth_ctrl_stats(ds, dp->index, ctrl_stats); in dsa_user_get_eth_ctrl_stats()
1147 struct dsa_switch *ds = dp->ds; in dsa_user_get_rmon_stats() local
1149 if (ds->ops->get_rmon_stats) in dsa_user_get_rmon_stats()
1150 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_user_get_rmon_stats()
1157 struct dsa_switch *ds = dp->ds; in dsa_user_get_ts_stats() local
1159 if (ds->ops->get_ts_stats) in dsa_user_get_ts_stats()
1160 ds->ops->get_ts_stats(ds, dp->index, ts_stats); in dsa_user_get_ts_stats()
1167 struct dsa_switch *ds = dp->ds; in dsa_user_net_selftest() local
1169 if (ds->ops->self_test) { in dsa_user_net_selftest()
1170 ds->ops->self_test(ds, dp->index, etest, buf); in dsa_user_net_selftest()
1181 struct dsa_switch *ds = dp->ds; in dsa_user_get_mm() local
1183 if (!ds->ops->get_mm) in dsa_user_get_mm()
1186 return ds->ops->get_mm(ds, dp->index, state); in dsa_user_get_mm()
1193 struct dsa_switch *ds = dp->ds; in dsa_user_set_mm() local
1195 if (!ds->ops->set_mm) in dsa_user_set_mm()
1198 return ds->ops->set_mm(ds, dp->index, cfg, extack); in dsa_user_set_mm()
1205 struct dsa_switch *ds = dp->ds; in dsa_user_get_mm_stats() local
1207 if (ds->ops->get_mm_stats) in dsa_user_get_mm_stats()
1208 ds->ops->get_mm_stats(ds, dp->index, stats); in dsa_user_get_mm_stats()
1214 struct dsa_switch *ds = dp->ds; in dsa_user_get_wol() local
1218 if (ds->ops->get_wol) in dsa_user_get_wol()
1219 ds->ops->get_wol(ds, dp->index, w); in dsa_user_get_wol()
1225 struct dsa_switch *ds = dp->ds; in dsa_user_set_wol() local
1230 if (ds->ops->set_wol) in dsa_user_set_wol()
1231 ret = ds->ops->set_wol(ds, dp->index, w); in dsa_user_set_wol()
1239 struct dsa_switch *ds = dp->ds; in dsa_user_set_eee() local
1243 if (!ds->ops->support_eee || !ds->ops->support_eee(ds, dp->index)) in dsa_user_set_eee()
1250 if (!ds->ops->set_mac_eee) in dsa_user_set_eee()
1253 ret = ds->ops->set_mac_eee(ds, dp->index, e); in dsa_user_set_eee()
1263 struct dsa_switch *ds = dp->ds; in dsa_user_get_eee() local
1266 if (!ds->ops->support_eee || !ds->ops->support_eee(ds, dp->index)) in dsa_user_get_eee()
1296 struct dsa_switch *ds = dp->ds; in dsa_user_get_pause_stats() local
1298 if (ds->ops->get_pause_stats) in dsa_user_get_pause_stats()
1299 ds->ops->get_pause_stats(ds, dp->index, pause_stats); in dsa_user_get_pause_stats()
1382 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_matchall_mirred() local
1393 if (!ds->ops->port_mirror_add) { in dsa_user_add_cls_matchall_mirred()
1432 if (dp->ds != to_dp->ds) { in dsa_user_add_cls_matchall_mirred()
1448 err = ds->ops->port_mirror_add(ds, dp->index, mirror, ingress, extack); in dsa_user_add_cls_matchall_mirred()
1469 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_matchall_police() local
1473 if (!ds->ops->port_policer_add) { in dsa_user_add_cls_matchall_police()
1508 err = ds->ops->port_policer_add(ds, dp->index, policer); in dsa_user_add_cls_matchall_police()
1554 struct dsa_switch *ds = dp->ds; in dsa_user_del_cls_matchall() local
1564 if (ds->ops->port_mirror_del) in dsa_user_del_cls_matchall()
1565 ds->ops->port_mirror_del(ds, dp->index, in dsa_user_del_cls_matchall()
1569 if (ds->ops->port_policer_del) in dsa_user_del_cls_matchall()
1570 ds->ops->port_policer_del(ds, dp->index); in dsa_user_del_cls_matchall()
1602 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_flower() local
1605 if (!ds->ops->cls_flower_add) in dsa_user_add_cls_flower()
1608 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_user_add_cls_flower()
1616 struct dsa_switch *ds = dp->ds; in dsa_user_del_cls_flower() local
1619 if (!ds->ops->cls_flower_del) in dsa_user_del_cls_flower()
1622 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_user_del_cls_flower()
1630 struct dsa_switch *ds = dp->ds; in dsa_user_stats_cls_flower() local
1633 if (!ds->ops->cls_flower_stats) in dsa_user_stats_cls_flower()
1636 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_user_stats_cls_flower()
1727 static int dsa_user_setup_ft_block(struct dsa_switch *ds, int port, in dsa_user_setup_ft_block() argument
1730 struct net_device *conduit = dsa_port_to_conduit(dsa_to_port(ds, port)); in dsa_user_setup_ft_block()
1742 struct dsa_switch *ds = dp->ds; in dsa_user_setup_tc() local
1748 return dsa_user_setup_ft_block(ds, dp->index, type_data); in dsa_user_setup_tc()
1753 if (!ds->ops->port_setup_tc) in dsa_user_setup_tc()
1756 return ds->ops->port_setup_tc(ds, dp->index, type, type_data); in dsa_user_setup_tc()
1763 struct dsa_switch *ds = dp->ds; in dsa_user_get_rxnfc() local
1765 if (!ds->ops->get_rxnfc) in dsa_user_get_rxnfc()
1768 return ds->ops->get_rxnfc(ds, dp->index, nfc, rule_locs); in dsa_user_get_rxnfc()
1775 struct dsa_switch *ds = dp->ds; in dsa_user_set_rxnfc() local
1777 if (!ds->ops->set_rxnfc) in dsa_user_set_rxnfc()
1780 return ds->ops->set_rxnfc(ds, dp->index, nfc); in dsa_user_set_rxnfc()
1787 struct dsa_switch *ds = p->dp->ds; in dsa_user_get_ts_info() local
1789 if (!ds->ops->get_ts_info) in dsa_user_get_ts_info()
1792 return ds->ops->get_ts_info(ds, p->dp->index, ts); in dsa_user_get_ts_info()
1806 struct dsa_switch *ds = dp->ds; in dsa_user_vlan_rx_add_vid() local
1828 if (!dsa_switch_supports_uc_filtering(ds) && in dsa_user_vlan_rx_add_vid()
1829 !dsa_switch_supports_mc_filtering(ds)) in dsa_user_vlan_rx_add_vid()
1843 if (dsa_switch_supports_mc_filtering(ds)) { in dsa_user_vlan_rx_add_vid()
1850 if (dsa_switch_supports_uc_filtering(ds)) { in dsa_user_vlan_rx_add_vid()
1879 struct dsa_switch *ds = dp->ds; in dsa_user_vlan_rx_kill_vid() local
1892 if (!dsa_switch_supports_uc_filtering(ds) && in dsa_user_vlan_rx_kill_vid()
1893 !dsa_switch_supports_mc_filtering(ds)) in dsa_user_vlan_rx_kill_vid()
1907 if (dsa_switch_supports_mc_filtering(ds)) { in dsa_user_vlan_rx_kill_vid()
1914 if (dsa_switch_supports_uc_filtering(ds)) { in dsa_user_vlan_rx_kill_vid()
1947 * If ds->vlan_filtering_is_global = true, then standalone ports which share
1954 * - if ds->needs_standalone_vlan_filtering = true, OR if
1955 * (ds->vlan_filtering_is_global = true AND there are bridges spanning
1963 * - if ds->configure_vlan_while_not_filtering = true (default):
2049 if (!dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization()
2071 if (!other_dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization()
2113 struct dsa_switch *ds = dp->ds; in dsa_user_change_mtu() local
2123 if (!ds->ops->port_change_mtu) in dsa_user_change_mtu()
2126 dsa_tree_for_each_user_port(other_dp, ds->dst) { in dsa_user_change_mtu()
2174 err = ds->ops->port_change_mtu(ds, dp->index, new_mtu); in dsa_user_change_mtu()
2198 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_set_apptrust() local
2201 if (!ds->ops->port_set_apptrust) in dsa_user_dcbnl_set_apptrust()
2204 return ds->ops->port_set_apptrust(ds, port, sel, nsel); in dsa_user_dcbnl_set_apptrust()
2211 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_get_apptrust() local
2214 if (!ds->ops->port_get_apptrust) in dsa_user_dcbnl_get_apptrust()
2217 return ds->ops->port_get_apptrust(ds, port, sel, nsel); in dsa_user_dcbnl_get_apptrust()
2224 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_set_default_prio() local
2228 if (!ds->ops->port_set_default_prio) in dsa_user_dcbnl_set_default_prio()
2238 err = ds->ops->port_set_default_prio(ds, port, new_prio); in dsa_user_dcbnl_set_default_prio()
2255 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_ieee_global_dscp_setdel() local
2264 dsa_switch_for_each_user_port(other_dp, ds) { in dsa_user_dcbnl_ieee_global_dscp_setdel()
2285 dsa_switch_for_each_user_port_continue_reverse(other_dp, ds) { in dsa_user_dcbnl_ieee_global_dscp_setdel()
2303 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_add_dscp_prio() local
2308 if (!ds->ops->port_add_dscp_prio) in dsa_user_dcbnl_add_dscp_prio()
2324 err = ds->ops->port_add_dscp_prio(ds, port, dscp, new_prio); in dsa_user_dcbnl_add_dscp_prio()
2330 if (!ds->dscp_prio_mapping_is_global) in dsa_user_dcbnl_add_dscp_prio()
2335 if (ds->ops->port_del_dscp_prio) in dsa_user_dcbnl_add_dscp_prio()
2336 ds->ops->port_del_dscp_prio(ds, port, dscp, new_prio); in dsa_user_dcbnl_add_dscp_prio()
2367 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_del_default_prio() local
2371 if (!ds->ops->port_set_default_prio) in dsa_user_dcbnl_del_default_prio()
2381 err = ds->ops->port_set_default_prio(ds, port, new_prio); in dsa_user_dcbnl_del_default_prio()
2394 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_del_dscp_prio() local
2398 if (!ds->ops->port_del_dscp_prio) in dsa_user_dcbnl_del_dscp_prio()
2405 err = ds->ops->port_del_dscp_prio(ds, port, dscp, app->priority); in dsa_user_dcbnl_del_dscp_prio()
2411 if (!ds->dscp_prio_mapping_is_global) in dsa_user_dcbnl_del_dscp_prio()
2416 if (ds->ops->port_add_dscp_prio) in dsa_user_dcbnl_del_dscp_prio()
2417 ds->ops->port_add_dscp_prio(ds, port, dscp, in dsa_user_dcbnl_del_dscp_prio()
2451 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_init() local
2455 if (ds->ops->port_get_default_prio) { in dsa_user_dcbnl_init()
2456 int prio = ds->ops->port_get_default_prio(ds, port); in dsa_user_dcbnl_init()
2471 if (ds->ops->port_get_dscp_prio) { in dsa_user_dcbnl_init()
2481 prio = ds->ops->port_get_dscp_prio(ds, port, protocol); in dsa_user_dcbnl_init()
2544 struct dsa_switch *ds = dp->ds; in dsa_user_get_stats64() local
2546 if (ds->ops->get_stats64) in dsa_user_get_stats64()
2547 ds->ops->get_stats64(ds, dp->index, s); in dsa_user_get_stats64()
2595 void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) in dsa_port_phylink_mac_change() argument
2597 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
2608 struct dsa_switch *ds = dp->ds; in dsa_user_phylink_fixed_state() local
2613 ds->ops->phylink_fixed_state(ds, dp->index, state); in dsa_user_phylink_fixed_state()
2621 struct dsa_switch *ds = dp->ds; in dsa_user_phy_connect() local
2623 user_dev->phydev = mdiobus_get_phy(ds->user_mii_bus, addr); in dsa_user_phy_connect()
2638 struct dsa_switch *ds = dp->ds; in dsa_user_phy_setup() local
2649 if (ds->ops->phylink_fixed_state) { in dsa_user_phy_setup()
2658 if (ds->ops->get_phy_flags) in dsa_user_phy_setup()
2659 phy_flags = ds->ops->get_phy_flags(ds, dp->index); in dsa_user_phy_setup()
2662 if (ret == -ENODEV && ds->user_mii_bus) { in dsa_user_phy_setup()
2683 const struct dsa_switch *ds = dp->ds; in dsa_user_setup_tagger() local
2700 if (ds->needs_standalone_vlan_filtering) in dsa_user_setup_tagger()
2741 struct dsa_switch *ds = port->ds; in dsa_user_create() local
2748 if (!ds->num_tx_queues) in dsa_user_create()
2749 ds->num_tx_queues = 1; in dsa_user_create()
2761 ds->num_tx_queues, 1); in dsa_user_create()
2775 if (dsa_switch_supports_uc_filtering(ds)) in dsa_user_create()
2778 if (ds->ops->port_max_mtu) in dsa_user_create()
2779 user_dev->max_mtu = ds->ops->port_max_mtu(ds, port->index); in dsa_user_create()
2782 SET_NETDEV_DEV(user_dev, port->ds->dev); in dsa_user_create()
2805 ret, ds->dst->index, ds->index, port->index); in dsa_user_create()
2813 dev_warn(ds->dev, "nonfatal error %d setting MTU to %d on port %d\n", in dsa_user_create()
2882 struct dsa_switch *ds = dp->ds; in dsa_user_change_conduit() local
2890 if (!ds->ops->port_change_conduit) { in dsa_user_change_conduit()
3164 struct dsa_switch *ds; in dsa_user_prechangeupper_sanity_check() local
3172 ds = dp->ds; in dsa_user_prechangeupper_sanity_check()
3174 if (ds->ops->port_prechangeupper) { in dsa_user_prechangeupper_sanity_check()
3175 err = ds->ops->port_prechangeupper(ds, dp->index, info); in dsa_user_prechangeupper_sanity_check()
3540 struct dsa_switch_tree *dst = cpu_dp->ds->dst; in dsa_user_netdevice_event()
3571 dst = cpu_dp->ds->dst; in dsa_user_netdevice_event()
3615 struct dsa_switch *ds; in dsa_user_switchdev_event_work() local
3620 ds = dp->ds; in dsa_user_switchdev_event_work()
3631 dev_err(ds->dev, in dsa_user_switchdev_event_work()
3647 dev_err(ds->dev, in dsa_user_switchdev_event_work()
3662 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_foreign_dev_check()
3682 struct dsa_switch *ds = dp->ds; in dsa_user_fdb_event() local
3698 if (!ds->assisted_learning_on_cpu_port) in dsa_user_fdb_event()
3713 if (!ds->ops->lag_fdb_add || !ds->ops->lag_fdb_del) in dsa_user_fdb_event()
3716 if (!ds->ops->port_fdb_add || !ds->ops->port_fdb_del) in dsa_user_fdb_event()