evport 2052 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2056 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2057 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2063 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->info.spoofchk && !is_valid_ether_addr(mac)) evport 2083 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ether_addr_copy(evport->info.mac, mac); evport 2084 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.node_guid = node_guid; evport 2085 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) evport 2086 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_ingress_config(esw, evport); evport 2096 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2101 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2102 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2116 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.link_state = link_state; evport 2126 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2128 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2129 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2135 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ether_addr_copy(ivi->mac, evport->info.mac); evport 2136 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->linkstate = evport->info.link_state; evport 2137 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->vlan = evport->info.vlan; evport 2138 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->qos = evport->info.qos; evport 2139 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->spoofchk = evport->info.spoofchk; evport 2140 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->trusted = evport->info.trusted; evport 2141 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->min_tx_rate = evport->info.min_rate; evport 2142 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c ivi->max_tx_rate = evport->info.max_rate; evport 2151 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2156 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2157 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2165 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.vlan = vlan; evport 2166 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.qos = qos; evport 2167 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) { evport 2168 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_ingress_config(esw, evport); evport 2171 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_egress_config(esw, evport); evport 2196 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2202 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2203 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2206 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c pschk = evport->info.spoofchk; evport 2207 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.spoofchk = spoofchk; evport 2208 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (pschk && !is_valid_ether_addr(evport->info.mac)) evport 2211 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->vport); evport 2212 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) evport 2213 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_ingress_config(esw, evport); evport 2215 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.spoofchk = pschk; evport 2338 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2342 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2343 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2346 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.trusted = setting; evport 2347 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (evport->enabled) evport 2348 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c esw_vport_change_handle_locked(evport); evport 2357 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport; evport 2361 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_esw_for_all_vports(esw, i, evport) { evport 2362 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!evport->enabled || evport->info.min_rate < max_guarantee) evport 2364 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c max_guarantee = evport->info.min_rate; evport 2373 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport; evport 2380 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c mlx5_esw_for_all_vports(esw, i, evport) { evport 2381 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (!evport->enabled) evport 2383 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c vport_min_rate = evport->info.min_rate; evport 2384 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c vport_max_rate = evport->info.max_rate; evport 2392 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (bw_share == evport->qos.bw_share) evport 2395 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_qos_config(esw, evport, vport_max_rate, evport 2398 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->qos.bw_share = bw_share; evport 2409 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); evport 2419 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (IS_ERR(evport)) evport 2420 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c return PTR_ERR(evport); evport 2432 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (min_rate == evport->info.min_rate) evport 2435 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c previous_min_rate = evport->info.min_rate; evport 2436 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.min_rate = min_rate; evport 2440 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.min_rate = previous_min_rate; evport 2445 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c if (max_rate == evport->info.max_rate) evport 2448 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c err = esw_vport_qos_config(esw, evport, max_rate, evport->qos.bw_share); evport 2450 drivers/net/ethernet/mellanox/mlx5/core/eswitch.c evport->info.max_rate = max_rate;