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()
580 struct dsa_switch *ds = p->dp->ds; in dsa_user_ioctl() local
586 if (ds->ops->port_hwtstamp_get) in dsa_user_ioctl()
587 return ds->ops->port_hwtstamp_get(ds, port, ifr); in dsa_user_ioctl()
590 if (ds->ops->port_hwtstamp_set) in dsa_user_ioctl()
591 return ds->ops->port_hwtstamp_set(ds, port, ifr); in dsa_user_ioctl()
897 struct dsa_switch *ds = p->dp->ds; in dsa_skb_tx_timestamp() local
902 if (!ds->ops->port_txtstamp) in dsa_skb_tx_timestamp()
905 ds->ops->port_txtstamp(ds, p->dp->index, skb); in dsa_skb_tx_timestamp()
975 struct dsa_switch *ds = dp->ds; in dsa_user_get_regs_len() local
977 if (ds->ops->get_regs_len) in dsa_user_get_regs_len()
978 return ds->ops->get_regs_len(ds, dp->index); in dsa_user_get_regs_len()
987 struct dsa_switch *ds = dp->ds; in dsa_user_get_regs() local
989 if (ds->ops->get_regs) in dsa_user_get_regs()
990 ds->ops->get_regs(ds, dp->index, regs, _p); in dsa_user_get_regs()
1003 struct dsa_switch *ds = dp->ds; in dsa_user_get_eeprom_len() local
1005 if (ds->cd && ds->cd->eeprom_len) in dsa_user_get_eeprom_len()
1006 return ds->cd->eeprom_len; in dsa_user_get_eeprom_len()
1008 if (ds->ops->get_eeprom_len) in dsa_user_get_eeprom_len()
1009 return ds->ops->get_eeprom_len(ds); in dsa_user_get_eeprom_len()
1018 struct dsa_switch *ds = dp->ds; in dsa_user_get_eeprom() local
1020 if (ds->ops->get_eeprom) in dsa_user_get_eeprom()
1021 return ds->ops->get_eeprom(ds, eeprom, data); in dsa_user_get_eeprom()
1030 struct dsa_switch *ds = dp->ds; in dsa_user_set_eeprom() local
1032 if (ds->ops->set_eeprom) in dsa_user_set_eeprom()
1033 return ds->ops->set_eeprom(ds, eeprom, data); in dsa_user_set_eeprom()
1042 struct dsa_switch *ds = dp->ds; in dsa_user_get_strings() local
1051 if (ds->ops->get_strings) in dsa_user_get_strings()
1052 ds->ops->get_strings(ds, dp->index, stringset, in dsa_user_get_strings()
1065 struct dsa_switch *ds = dp->ds; in dsa_user_get_ethtool_stats() local
1086 if (ds->ops->get_ethtool_stats) in dsa_user_get_ethtool_stats()
1087 ds->ops->get_ethtool_stats(ds, dp->index, data + 4); in dsa_user_get_ethtool_stats()
1093 struct dsa_switch *ds = dp->ds; in dsa_user_get_sset_count() local
1098 if (ds->ops->get_sset_count) { in dsa_user_get_sset_count()
1099 count = ds->ops->get_sset_count(ds, dp->index, sset); in dsa_user_get_sset_count()
1116 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_phy_stats() local
1118 if (ds->ops->get_eth_phy_stats) in dsa_user_get_eth_phy_stats()
1119 ds->ops->get_eth_phy_stats(ds, dp->index, phy_stats); in dsa_user_get_eth_phy_stats()
1126 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_mac_stats() local
1128 if (ds->ops->get_eth_mac_stats) in dsa_user_get_eth_mac_stats()
1129 ds->ops->get_eth_mac_stats(ds, dp->index, mac_stats); in dsa_user_get_eth_mac_stats()
1137 struct dsa_switch *ds = dp->ds; in dsa_user_get_eth_ctrl_stats() local
1139 if (ds->ops->get_eth_ctrl_stats) in dsa_user_get_eth_ctrl_stats()
1140 ds->ops->get_eth_ctrl_stats(ds, dp->index, ctrl_stats); in dsa_user_get_eth_ctrl_stats()
1149 struct dsa_switch *ds = dp->ds; in dsa_user_get_rmon_stats() local
1151 if (ds->ops->get_rmon_stats) in dsa_user_get_rmon_stats()
1152 ds->ops->get_rmon_stats(ds, dp->index, rmon_stats, ranges); in dsa_user_get_rmon_stats()
1159 struct dsa_switch *ds = dp->ds; in dsa_user_net_selftest() local
1161 if (ds->ops->self_test) { in dsa_user_net_selftest()
1162 ds->ops->self_test(ds, dp->index, etest, buf); in dsa_user_net_selftest()
1173 struct dsa_switch *ds = dp->ds; in dsa_user_get_mm() local
1175 if (!ds->ops->get_mm) in dsa_user_get_mm()
1178 return ds->ops->get_mm(ds, dp->index, state); in dsa_user_get_mm()
1185 struct dsa_switch *ds = dp->ds; in dsa_user_set_mm() local
1187 if (!ds->ops->set_mm) in dsa_user_set_mm()
1190 return ds->ops->set_mm(ds, dp->index, cfg, extack); in dsa_user_set_mm()
1197 struct dsa_switch *ds = dp->ds; in dsa_user_get_mm_stats() local
1199 if (ds->ops->get_mm_stats) in dsa_user_get_mm_stats()
1200 ds->ops->get_mm_stats(ds, dp->index, stats); in dsa_user_get_mm_stats()
1206 struct dsa_switch *ds = dp->ds; in dsa_user_get_wol() local
1210 if (ds->ops->get_wol) in dsa_user_get_wol()
1211 ds->ops->get_wol(ds, dp->index, w); in dsa_user_get_wol()
1217 struct dsa_switch *ds = dp->ds; in dsa_user_set_wol() local
1222 if (ds->ops->set_wol) in dsa_user_set_wol()
1223 ret = ds->ops->set_wol(ds, dp->index, w); in dsa_user_set_wol()
1231 struct dsa_switch *ds = dp->ds; in dsa_user_set_eee() local
1238 if (!ds->ops->set_mac_eee) in dsa_user_set_eee()
1241 ret = ds->ops->set_mac_eee(ds, dp->index, e); in dsa_user_set_eee()
1251 struct dsa_switch *ds = dp->ds; in dsa_user_get_eee() local
1258 if (!ds->ops->get_mac_eee) in dsa_user_get_eee()
1261 ret = ds->ops->get_mac_eee(ds, dp->index, e); in dsa_user_get_eee()
1288 struct dsa_switch *ds = dp->ds; in dsa_user_get_pause_stats() local
1290 if (ds->ops->get_pause_stats) in dsa_user_get_pause_stats()
1291 ds->ops->get_pause_stats(ds, dp->index, pause_stats); in dsa_user_get_pause_stats()
1375 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_matchall_mirred() local
1380 if (!ds->ops->port_mirror_add) in dsa_user_add_cls_matchall_mirred()
1397 if (dp->ds != to_dp->ds) { in dsa_user_add_cls_matchall_mirred()
1413 err = ds->ops->port_mirror_add(ds, dp->index, mirror, ingress, extack); in dsa_user_add_cls_matchall_mirred()
1434 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_matchall_police() local
1438 if (!ds->ops->port_policer_add) { in dsa_user_add_cls_matchall_police()
1474 err = ds->ops->port_policer_add(ds, dp->index, policer); in dsa_user_add_cls_matchall_police()
1507 struct dsa_switch *ds = dp->ds; in dsa_user_del_cls_matchall() local
1517 if (ds->ops->port_mirror_del) in dsa_user_del_cls_matchall()
1518 ds->ops->port_mirror_del(ds, dp->index, in dsa_user_del_cls_matchall()
1522 if (ds->ops->port_policer_del) in dsa_user_del_cls_matchall()
1523 ds->ops->port_policer_del(ds, dp->index); in dsa_user_del_cls_matchall()
1555 struct dsa_switch *ds = dp->ds; in dsa_user_add_cls_flower() local
1558 if (!ds->ops->cls_flower_add) in dsa_user_add_cls_flower()
1561 return ds->ops->cls_flower_add(ds, port, cls, ingress); in dsa_user_add_cls_flower()
1569 struct dsa_switch *ds = dp->ds; in dsa_user_del_cls_flower() local
1572 if (!ds->ops->cls_flower_del) in dsa_user_del_cls_flower()
1575 return ds->ops->cls_flower_del(ds, port, cls, ingress); in dsa_user_del_cls_flower()
1583 struct dsa_switch *ds = dp->ds; in dsa_user_stats_cls_flower() local
1586 if (!ds->ops->cls_flower_stats) in dsa_user_stats_cls_flower()
1589 return ds->ops->cls_flower_stats(ds, port, cls, ingress); in dsa_user_stats_cls_flower()
1680 static int dsa_user_setup_ft_block(struct dsa_switch *ds, int port, in dsa_user_setup_ft_block() argument
1683 struct net_device *conduit = dsa_port_to_conduit(dsa_to_port(ds, port)); in dsa_user_setup_ft_block()
1695 struct dsa_switch *ds = dp->ds; in dsa_user_setup_tc() local
1701 return dsa_user_setup_ft_block(ds, dp->index, type_data); in dsa_user_setup_tc()
1706 if (!ds->ops->port_setup_tc) in dsa_user_setup_tc()
1709 return ds->ops->port_setup_tc(ds, dp->index, type, type_data); in dsa_user_setup_tc()
1716 struct dsa_switch *ds = dp->ds; in dsa_user_get_rxnfc() local
1718 if (!ds->ops->get_rxnfc) in dsa_user_get_rxnfc()
1721 return ds->ops->get_rxnfc(ds, dp->index, nfc, rule_locs); in dsa_user_get_rxnfc()
1728 struct dsa_switch *ds = dp->ds; in dsa_user_set_rxnfc() local
1730 if (!ds->ops->set_rxnfc) in dsa_user_set_rxnfc()
1733 return ds->ops->set_rxnfc(ds, dp->index, nfc); in dsa_user_set_rxnfc()
1740 struct dsa_switch *ds = p->dp->ds; in dsa_user_get_ts_info() local
1742 if (!ds->ops->get_ts_info) in dsa_user_get_ts_info()
1745 return ds->ops->get_ts_info(ds, p->dp->index, ts); in dsa_user_get_ts_info()
1759 struct dsa_switch *ds = dp->ds; in dsa_user_vlan_rx_add_vid() local
1781 if (!dsa_switch_supports_uc_filtering(ds) && in dsa_user_vlan_rx_add_vid()
1782 !dsa_switch_supports_mc_filtering(ds)) in dsa_user_vlan_rx_add_vid()
1796 if (dsa_switch_supports_mc_filtering(ds)) { in dsa_user_vlan_rx_add_vid()
1803 if (dsa_switch_supports_uc_filtering(ds)) { in dsa_user_vlan_rx_add_vid()
1832 struct dsa_switch *ds = dp->ds; in dsa_user_vlan_rx_kill_vid() local
1845 if (!dsa_switch_supports_uc_filtering(ds) && in dsa_user_vlan_rx_kill_vid()
1846 !dsa_switch_supports_mc_filtering(ds)) in dsa_user_vlan_rx_kill_vid()
1860 if (dsa_switch_supports_mc_filtering(ds)) { in dsa_user_vlan_rx_kill_vid()
1867 if (dsa_switch_supports_uc_filtering(ds)) { in dsa_user_vlan_rx_kill_vid()
1900 * If ds->vlan_filtering_is_global = true, then standalone ports which share
1907 * - if ds->needs_standalone_vlan_filtering = true, OR if
1908 * (ds->vlan_filtering_is_global = true AND there are bridges spanning
1916 * - if ds->configure_vlan_while_not_filtering = true (default):
2002 if (!dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization()
2024 if (!other_dp->ds->mtu_enforcement_ingress) in dsa_bridge_mtu_normalization()
2066 struct dsa_switch *ds = dp->ds; in dsa_user_change_mtu() local
2076 if (!ds->ops->port_change_mtu) in dsa_user_change_mtu()
2079 dsa_tree_for_each_user_port(other_dp, ds->dst) { in dsa_user_change_mtu()
2127 err = ds->ops->port_change_mtu(ds, dp->index, new_mtu); in dsa_user_change_mtu()
2151 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_set_apptrust() local
2154 if (!ds->ops->port_set_apptrust) in dsa_user_dcbnl_set_apptrust()
2157 return ds->ops->port_set_apptrust(ds, port, sel, nsel); in dsa_user_dcbnl_set_apptrust()
2164 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_get_apptrust() local
2167 if (!ds->ops->port_get_apptrust) in dsa_user_dcbnl_get_apptrust()
2170 return ds->ops->port_get_apptrust(ds, port, sel, nsel); in dsa_user_dcbnl_get_apptrust()
2177 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_set_default_prio() local
2181 if (!ds->ops->port_set_default_prio) in dsa_user_dcbnl_set_default_prio()
2191 err = ds->ops->port_set_default_prio(ds, port, new_prio); in dsa_user_dcbnl_set_default_prio()
2208 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_ieee_global_dscp_setdel() local
2217 dsa_switch_for_each_user_port(other_dp, ds) { in dsa_user_dcbnl_ieee_global_dscp_setdel()
2238 dsa_switch_for_each_user_port_continue_reverse(other_dp, ds) { in dsa_user_dcbnl_ieee_global_dscp_setdel()
2256 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_add_dscp_prio() local
2261 if (!ds->ops->port_add_dscp_prio) in dsa_user_dcbnl_add_dscp_prio()
2277 err = ds->ops->port_add_dscp_prio(ds, port, dscp, new_prio); in dsa_user_dcbnl_add_dscp_prio()
2283 if (!ds->dscp_prio_mapping_is_global) in dsa_user_dcbnl_add_dscp_prio()
2288 if (ds->ops->port_del_dscp_prio) in dsa_user_dcbnl_add_dscp_prio()
2289 ds->ops->port_del_dscp_prio(ds, port, dscp, new_prio); in dsa_user_dcbnl_add_dscp_prio()
2320 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_del_default_prio() local
2324 if (!ds->ops->port_set_default_prio) in dsa_user_dcbnl_del_default_prio()
2334 err = ds->ops->port_set_default_prio(ds, port, new_prio); in dsa_user_dcbnl_del_default_prio()
2347 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_del_dscp_prio() local
2351 if (!ds->ops->port_del_dscp_prio) in dsa_user_dcbnl_del_dscp_prio()
2358 err = ds->ops->port_del_dscp_prio(ds, port, dscp, app->priority); in dsa_user_dcbnl_del_dscp_prio()
2364 if (!ds->dscp_prio_mapping_is_global) in dsa_user_dcbnl_del_dscp_prio()
2369 if (ds->ops->port_add_dscp_prio) in dsa_user_dcbnl_del_dscp_prio()
2370 ds->ops->port_add_dscp_prio(ds, port, dscp, in dsa_user_dcbnl_del_dscp_prio()
2404 struct dsa_switch *ds = dp->ds; in dsa_user_dcbnl_init() local
2408 if (ds->ops->port_get_default_prio) { in dsa_user_dcbnl_init()
2409 int prio = ds->ops->port_get_default_prio(ds, port); in dsa_user_dcbnl_init()
2424 if (ds->ops->port_get_dscp_prio) { in dsa_user_dcbnl_init()
2434 prio = ds->ops->port_get_dscp_prio(ds, port, protocol); in dsa_user_dcbnl_init()
2496 struct dsa_switch *ds = dp->ds; in dsa_user_get_stats64() local
2498 if (ds->ops->get_stats64) in dsa_user_get_stats64()
2499 ds->ops->get_stats64(ds, dp->index, s); in dsa_user_get_stats64()
2547 void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) in dsa_port_phylink_mac_change() argument
2549 const struct dsa_port *dp = dsa_to_port(ds, port); in dsa_port_phylink_mac_change()
2560 struct dsa_switch *ds = dp->ds; in dsa_user_phylink_fixed_state() local
2565 ds->ops->phylink_fixed_state(ds, dp->index, state); in dsa_user_phylink_fixed_state()
2573 struct dsa_switch *ds = dp->ds; in dsa_user_phy_connect() local
2575 user_dev->phydev = mdiobus_get_phy(ds->user_mii_bus, addr); in dsa_user_phy_connect()
2590 struct dsa_switch *ds = dp->ds; in dsa_user_phy_setup() local
2601 if (ds->ops->phylink_fixed_state) { in dsa_user_phy_setup()
2610 if (ds->ops->get_phy_flags) in dsa_user_phy_setup()
2611 phy_flags = ds->ops->get_phy_flags(ds, dp->index); in dsa_user_phy_setup()
2614 if (ret == -ENODEV && ds->user_mii_bus) { in dsa_user_phy_setup()
2635 const struct dsa_switch *ds = dp->ds; in dsa_user_setup_tagger() local
2652 if (ds->needs_standalone_vlan_filtering) in dsa_user_setup_tagger()
2693 struct dsa_switch *ds = port->ds; in dsa_user_create() local
2700 if (!ds->num_tx_queues) in dsa_user_create()
2701 ds->num_tx_queues = 1; in dsa_user_create()
2713 ds->num_tx_queues, 1); in dsa_user_create()
2727 if (dsa_switch_supports_uc_filtering(ds)) in dsa_user_create()
2730 if (ds->ops->port_max_mtu) in dsa_user_create()
2731 user_dev->max_mtu = ds->ops->port_max_mtu(ds, port->index); in dsa_user_create()
2734 SET_NETDEV_DEV(user_dev, port->ds->dev); in dsa_user_create()
2757 ret, ds->dst->index, ds->index, port->index); in dsa_user_create()
2765 dev_warn(ds->dev, "nonfatal error %d setting MTU to %d on port %d\n", in dsa_user_create()
2834 struct dsa_switch *ds = dp->ds; in dsa_user_change_conduit() local
2842 if (!ds->ops->port_change_conduit) { in dsa_user_change_conduit()
3116 struct dsa_switch *ds; in dsa_user_prechangeupper_sanity_check() local
3124 ds = dp->ds; in dsa_user_prechangeupper_sanity_check()
3126 if (ds->ops->port_prechangeupper) { in dsa_user_prechangeupper_sanity_check()
3127 err = ds->ops->port_prechangeupper(ds, dp->index, info); in dsa_user_prechangeupper_sanity_check()
3492 struct dsa_switch_tree *dst = cpu_dp->ds->dst; in dsa_user_netdevice_event()
3523 dst = cpu_dp->ds->dst; in dsa_user_netdevice_event()
3567 struct dsa_switch *ds; in dsa_user_switchdev_event_work() local
3572 ds = dp->ds; in dsa_user_switchdev_event_work()
3583 dev_err(ds->dev, in dsa_user_switchdev_event_work()
3599 dev_err(ds->dev, in dsa_user_switchdev_event_work()
3614 struct dsa_switch_tree *dst = dp->ds->dst; in dsa_foreign_dev_check()
3634 struct dsa_switch *ds = dp->ds; in dsa_user_fdb_event() local
3650 if (!ds->assisted_learning_on_cpu_port) in dsa_user_fdb_event()
3665 if (!ds->ops->lag_fdb_add || !ds->ops->lag_fdb_del) in dsa_user_fdb_event()
3668 if (!ds->ops->port_fdb_add || !ds->ops->port_fdb_del) in dsa_user_fdb_event()