fdb_table 236 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_add_flow_rules(esw->fdb_table.legacy.fdb, spec, fdb_table 308 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_fdb = fdb; fdb_table 349 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.fdb = fdb; fdb_table 366 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.addr_grp = g; fdb_table 381 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.allmulti_grp = g; fdb_table 398 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.promisc_grp = g; fdb_table 411 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!esw->fdb_table.legacy.vepa_fdb) fdb_table 414 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_destroy_flow_table(esw->fdb_table.legacy.vepa_fdb); fdb_table 415 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_fdb = NULL; fdb_table 421 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!esw->fdb_table.legacy.fdb) fdb_table 424 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.promisc_grp) fdb_table 425 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_destroy_flow_group(esw->fdb_table.legacy.promisc_grp); fdb_table 426 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.allmulti_grp) fdb_table 427 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_destroy_flow_group(esw->fdb_table.legacy.allmulti_grp); fdb_table 428 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.addr_grp) fdb_table 429 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_destroy_flow_group(esw->fdb_table.legacy.addr_grp); fdb_table 430 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_destroy_flow_table(esw->fdb_table.legacy.fdb); fdb_table 432 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.fdb = NULL; fdb_table 433 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.addr_grp = NULL; fdb_table 434 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.allmulti_grp = NULL; fdb_table 435 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.promisc_grp = NULL; fdb_table 442 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c memset(&esw->fdb_table.legacy, 0, sizeof(struct legacy_fdb)); fdb_table 518 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.fdb && esw->mode == MLX5_ESWITCH_LEGACY) fdb_table 609 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!esw->fdb_table.legacy.fdb) fdb_table 649 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!esw->fdb_table.legacy.fdb) fdb_table 2223 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.vepa_uplink_rule) fdb_table 2224 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_del_flow_rules(esw->fdb_table.legacy.vepa_uplink_rule); fdb_table 2226 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.vepa_star_rule) fdb_table 2227 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_del_flow_rules(esw->fdb_table.legacy.vepa_star_rule); fdb_table 2229 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_uplink_rule = NULL; fdb_table 2230 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_star_rule = NULL; fdb_table 2248 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (esw->fdb_table.legacy.vepa_uplink_rule) fdb_table 2264 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c dest.ft = esw->fdb_table.legacy.fdb; fdb_table 2266 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, spec, fdb_table 2272 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_uplink_rule = flow_rule; fdb_table 2281 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c flow_rule = mlx5_add_flow_rules(esw->fdb_table.legacy.vepa_fdb, spec, fdb_table 2287 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw->fdb_table.legacy.vepa_star_rule = flow_rule; fdb_table 2331 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c *setting = esw->fdb_table.legacy.vepa_uplink_rule ? 1 : 0; fdb_table 221 drivers/net/ethernet/mellanox/mlx5/core/eswitch.h struct mlx5_eswitch_fdb fdb_table; fdb_table 52 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c (esw)->fdb_table.offloads.fdb_prio[(chain)][(prio)][(level)] fdb_table 72 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c return (!!(esw->fdb_table.flags & ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED)); fdb_table 77 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->fdb_table.flags & ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED) fdb_table 85 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->fdb_table.flags & ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED) fdb_table 426 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct offloads_fdb *offloads = &esw->fdb_table.offloads; fdb_table 494 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c struct offloads_fdb *offloads = &esw->fdb_table.offloads; fdb_table 577 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec, fdb_table 713 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, fdb_table 724 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, fdb_table 738 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, fdb_table 747 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.peer_miss_rules = flows; fdb_table 775 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flows = esw->fdb_table.offloads.peer_miss_rules; fdb_table 819 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec, fdb_table 827 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.miss_rule_uni = flow_rule; fdb_table 834 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c flow_rule = mlx5_add_flow_rules(esw->fdb_table.offloads.slow_fdb, spec, fdb_table 839 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_del_flow_rules(esw->fdb_table.offloads.miss_rule_uni); fdb_table 843 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.miss_rule_multi = flow_rule; fdb_table 869 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (esw->fdb_table.offloads.fdb_left[i]) { fdb_table 870 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c --esw->fdb_table.offloads.fdb_left[i]; fdb_table 886 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ++esw->fdb_table.offloads.fdb_left[i]; fdb_table 931 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c return esw->fdb_table.offloads.slow_fdb; fdb_table 933 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_lock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 940 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_unlock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 947 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_unlock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 976 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_unlock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 980 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_unlock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 995 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_lock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 1006 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_unlock(&esw->fdb_table.offloads.fdb_prio_lock); fdb_table 1012 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (!(esw->fdb_table.flags & ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED)) { fdb_table 1070 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.ns = root_ns; fdb_table 1088 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.fdb_left[i] = fdb_table 1111 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.slow_fdb = fdb; fdb_table 1116 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.flags &= ~ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED; fdb_table 1122 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.flags |= ESW_FDB_CHAINS_AND_PRIOS_SUPPORTED; fdb_table 1144 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.send_to_vport_grp = g; fdb_table 1174 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.peer_miss_grp = g; fdb_table 1196 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c esw->fdb_table.offloads.miss_grp = g; fdb_table 1207 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.miss_grp); fdb_table 1209 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.peer_miss_grp); fdb_table 1211 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.send_to_vport_grp); fdb_table 1214 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_table(esw->fdb_table.offloads.slow_fdb); fdb_table 1225 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c if (!esw->fdb_table.offloads.slow_fdb) fdb_table 1229 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_del_flow_rules(esw->fdb_table.offloads.miss_rule_multi); fdb_table 1230 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_del_flow_rules(esw->fdb_table.offloads.miss_rule_uni); fdb_table 1231 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.send_to_vport_grp); fdb_table 1232 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.peer_miss_grp); fdb_table 1233 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_group(esw->fdb_table.offloads.miss_grp); fdb_table 1235 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_destroy_flow_table(esw->fdb_table.offloads.slow_fdb); fdb_table 1238 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mlx5_flow_namespace_set_mode(esw->fdb_table.offloads.ns, fdb_table 2045 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c memset(&esw->fdb_table.offloads, 0, sizeof(struct offloads_fdb)); fdb_table 2046 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c mutex_init(&esw->fdb_table.offloads.fdb_prio_lock);