Searched refs:evport (Results 1 – 3 of 3) sorted by relevance
455 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_spoofchk() local461 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_spoofchk()462 return PTR_ERR(evport); in mlx5_eswitch_set_vport_spoofchk()469 pschk = evport->info.spoofchk; in mlx5_eswitch_set_vport_spoofchk()470 evport->info.spoofchk = spoofchk; in mlx5_eswitch_set_vport_spoofchk()471 if (pschk && !is_valid_ether_addr(evport->info.mac)) in mlx5_eswitch_set_vport_spoofchk()474 evport->vport); in mlx5_eswitch_set_vport_spoofchk()475 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_eswitch_set_vport_spoofchk()476 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_eswitch_set_vport_spoofchk()478 evport->info.spoofchk = pschk; in mlx5_eswitch_set_vport_spoofchk()[all …]
12 int mlx5_esw_qos_set_vport_rate(struct mlx5_vport *evport, u32 max_rate, u32 min_rate);
2134 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument2136 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked()2143 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked()2163 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked()2164 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked()2165 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked()2166 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked()2174 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local2177 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()2178 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()[all …]