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 …]
9 int mlx5_esw_qos_set_vport_rate(struct mlx5_vport *evport, u32 max_rate, u32 min_rate);
2629 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument2631 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked()2638 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked()2658 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked()2659 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked()2660 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked()2661 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked()2669 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local2672 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()2673 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()[all …]