nve 158 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct mlxsw_sp_nve *nve; nve 195 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 197 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c return rhashtable_lookup_fast(&nve->mc_list_ht, key, nve 205 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 216 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c err = rhashtable_insert_fast(&nve->mc_list_ht, &mc_list->ht_node, nve 231 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 233 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c rhashtable_remove_fast(&nve->mc_list_ht, &mc_list->ht_node, nve 266 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c unsigned int num_max_entries = mlxsw_sp->nve->num_max_mc_entries[proto]; nve 314 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 317 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c num_entries < nve->num_max_mc_entries[proto]) nve 336 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; nve 340 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c num_max_entries = nve->num_max_mc_entries[mc_record->proto]; nve 375 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c num_max_entries = mlxsw_sp->nve->num_max_mc_entries[mc_record->proto]; nve 407 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; nve 411 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c num_max_entries = nve->num_max_mc_entries[mc_record->proto]; nve 675 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mc_record->mlxsw_sp->nve; nve 679 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c num_max_entries = nve->num_max_mc_entries[mc_record->proto]; nve 718 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c WARN_ON(mlxsw_sp->nve->num_nve_tunnels == 0); nve 720 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c return mlxsw_sp->nve->tunnel_index; nve 726 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 727 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve_config *config = &nve->config; nve 729 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (nve->num_nve_tunnels && nve 740 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 744 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (nve->num_nve_tunnels++ != 0) nve 748 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c &nve->tunnel_index); nve 752 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops = nve->nve_ops_arr[config->type]; nve 753 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c err = ops->init(nve, config); nve 761 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->tunnel_index); nve 763 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->num_nve_tunnels--; nve 769 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 772 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops = nve->nve_ops_arr[nve->config.type]; nve 774 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (mlxsw_sp->nve->num_nve_tunnels == 1) { nve 775 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops->fini(nve); nve 777 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->tunnel_index); nve 778 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c memset(&nve->config, 0, sizeof(nve->config)); nve 780 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->num_nve_tunnels--; nve 804 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops = mlxsw_sp->nve->nve_ops_arr[type]; nve 812 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve = mlxsw_sp->nve; nve 817 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops = nve->nve_ops_arr[params->type]; nve 819 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (!ops->can_offload(nve, params->dev, extack)) nve 823 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c ops->nve_config(nve, params->dev, &config); nve 824 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (nve->num_nve_tunnels && nve 825 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c memcmp(&config, &nve->config, sizeof(config))) { nve 843 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->config = config; nve 983 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mlxsw_sp->nve->num_max_mc_entries[MLXSW_SP_L3_PROTO_IPV4] = max; nve 985 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mlxsw_sp->nve->num_max_mc_entries[MLXSW_SP_L3_PROTO_IPV6] = max; nve 992 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c struct mlxsw_sp_nve *nve; nve 995 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve = kzalloc(sizeof(*mlxsw_sp->nve), GFP_KERNEL); nve 996 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c if (!nve) nve 998 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mlxsw_sp->nve = nve; nve 999 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->mlxsw_sp = mlxsw_sp; nve 1000 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c nve->nve_ops_arr = mlxsw_sp->nve_ops_arr; nve 1002 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c err = rhashtable_init(&nve->mc_list_ht, nve 1024 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c rhashtable_destroy(&nve->mc_list_ht); nve 1026 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mlxsw_sp->nve = NULL; nve 1027 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c kfree(nve); nve 1033 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c WARN_ON(mlxsw_sp->nve->num_nve_tunnels); nve 1034 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c rhashtable_destroy(&mlxsw_sp->nve->mc_list_ht); nve 1035 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c kfree(mlxsw_sp->nve); nve 1036 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.c mlxsw_sp->nve = NULL; nve 37 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h bool (*can_offload)(const struct mlxsw_sp_nve *nve, nve 40 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h void (*nve_config)(const struct mlxsw_sp_nve *nve, nve 43 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h int (*init)(struct mlxsw_sp_nve *nve, nve 45 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve.h void (*fini)(struct mlxsw_sp_nve *nve); nve 24 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static bool mlxsw_sp_nve_vxlan_can_offload(const struct mlxsw_sp_nve *nve, nve 89 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static void mlxsw_sp_nve_vxlan_config(const struct mlxsw_sp_nve *nve, nve 119 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c int parsing_depth = mlxsw_sp->nve->inc_parsing_depth_refs ? nve 132 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c mlxsw_sp->nve->inc_parsing_depth_refs++; nve 140 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c mlxsw_sp->nve->inc_parsing_depth_refs--; nve 148 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c mlxsw_sp->nve->inc_parsing_depth_refs--; nve 154 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c __be16 udp_dport = mlxsw_sp->nve->config.udp_dport; nve 161 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c __be16 udp_dport = mlxsw_sp->nve->config.udp_dport; nve 223 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static int mlxsw_sp1_nve_vxlan_init(struct mlxsw_sp_nve *nve, nve 226 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; nve 237 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c err = mlxsw_sp1_nve_vxlan_rtdp_set(mlxsw_sp, nve->tunnel_index); nve 244 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c nve->tunnel_index); nve 258 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static void mlxsw_sp1_nve_vxlan_fini(struct mlxsw_sp_nve *nve) nve 260 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp_nve_config *config = &nve->config; nve 261 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; nve 319 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c mlxsw_sp->nve->ul_rif_index = ul_rif_index; nve 348 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c mlxsw_sp_router_ul_rif_put(mlxsw_sp, mlxsw_sp->nve->ul_rif_index); nve 363 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static int mlxsw_sp2_nve_vxlan_init(struct mlxsw_sp_nve *nve, nve 366 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; nve 377 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c err = mlxsw_sp2_nve_vxlan_rtdp_set(mlxsw_sp, nve->tunnel_index, nve 378 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c nve->ul_rif_index); nve 385 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c nve->tunnel_index); nve 399 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c static void mlxsw_sp2_nve_vxlan_fini(struct mlxsw_sp_nve *nve) nve 401 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp_nve_config *config = &nve->config; nve 402 drivers/net/ethernet/mellanox/mlxsw/spectrum_nve_vxlan.c struct mlxsw_sp *mlxsw_sp = nve->mlxsw_sp; nve 416 drivers/net/ethernet/stmicro/stmmac/dwmac5.c int i, ret, nve = 0; nve 450 drivers/net/ethernet/stmicro/stmmac/dwmac5.c entry->val.ok_index = nve + 2; nve 453 drivers/net/ethernet/stmicro/stmmac/dwmac5.c ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); nve 457 drivers/net/ethernet/stmicro/stmmac/dwmac5.c entry->table_pos = nve++; nve 461 drivers/net/ethernet/stmicro/stmmac/dwmac5.c ret = dwmac5_rxp_update_single_entry(ioaddr, frag, nve); nve 464 drivers/net/ethernet/stmicro/stmmac/dwmac5.c frag->table_pos = nve++; nve 469 drivers/net/ethernet/stmicro/stmmac/dwmac5.c if (!nve) nve 478 drivers/net/ethernet/stmicro/stmmac/dwmac5.c ret = dwmac5_rxp_update_single_entry(ioaddr, entry, nve); nve 482 drivers/net/ethernet/stmicro/stmmac/dwmac5.c entry->table_pos = nve++; nve 486 drivers/net/ethernet/stmicro/stmmac/dwmac5.c val = (nve << 16) & NPE; nve 487 drivers/net/ethernet/stmicro/stmmac/dwmac5.c val |= nve & NVE; nve 982 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c int i, ret, nve = 0; nve 1016 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c entry->val.ok_index = nve + 2; nve 1019 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); nve 1023 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c entry->table_pos = nve++; nve 1027 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c ret = dwxgmac3_rxp_update_single_entry(ioaddr, frag, nve); nve 1030 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c frag->table_pos = nve++; nve 1035 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (!nve) nve 1044 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c ret = dwxgmac3_rxp_update_single_entry(ioaddr, entry, nve); nve 1048 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c entry->table_pos = nve++; nve 1052 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c val = (nve << 16) & XGMAC_NPE; nve 1053 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c val |= nve & XGMAC_NVE;