Searched refs:evport (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | legacy.c | 459 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_spoofchk() local 465 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_spoofchk() 466 return PTR_ERR(evport); in mlx5_eswitch_set_vport_spoofchk() 473 pschk = evport->info.spoofchk; in mlx5_eswitch_set_vport_spoofchk() 474 evport->info.spoofchk = spoofchk; in mlx5_eswitch_set_vport_spoofchk() 475 if (pschk && !is_valid_ether_addr(evport->info.mac)) in mlx5_eswitch_set_vport_spoofchk() 478 evport->vport); in mlx5_eswitch_set_vport_spoofchk() 479 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_eswitch_set_vport_spoofchk() 480 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_eswitch_set_vport_spoofchk() 482 evport->info.spoofchk = pschk; in mlx5_eswitch_set_vport_spoofchk() [all …]
|
D | qos.c | 94 struct mlx5_vport *evport; in esw_qos_calculate_min_rate_divider() local 107 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_calculate_min_rate_divider() 108 if (!evport->enabled || !evport->qos.enabled || in esw_qos_calculate_min_rate_divider() 109 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider() 111 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider() 140 struct mlx5_vport *evport; in esw_qos_normalize_vports_min_rate() local 145 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_normalize_vports_min_rate() 146 if (!evport->enabled || !evport->qos.enabled || evport->qos.group != group) in esw_qos_normalize_vports_min_rate() 148 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate() 150 if (bw_share == evport->qos.bw_share) in esw_qos_normalize_vports_min_rate() [all …]
|
D | qos.h | 10 struct mlx5_vport *evport, 14 struct mlx5_vport *evport,
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.c | 1643 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument 1645 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked() 1652 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked() 1672 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked() 1673 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked() 1674 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked() 1675 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked() 1683 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local 1686 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac() 1687 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac() [all …]
|