Home
last modified time | relevance | path

Searched refs:evport (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c459 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 …]
Dqos.c106 struct mlx5_vport *evport; in esw_qos_calculate_min_rate_divider() local
119 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_calculate_min_rate_divider()
120 if (!evport->enabled || !evport->qos.enabled || in esw_qos_calculate_min_rate_divider()
121 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider()
123 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider()
152 struct mlx5_vport *evport; in esw_qos_normalize_vports_min_rate() local
157 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_normalize_vports_min_rate()
158 if (!evport->enabled || !evport->qos.enabled || evport->qos.group != group) in esw_qos_normalize_vports_min_rate()
160 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate()
162 if (bw_share == evport->qos.bw_share) in esw_qos_normalize_vports_min_rate()
[all …]
Dqos.h9 int mlx5_esw_qos_set_vport_rate(struct mlx5_eswitch *esw, struct mlx5_vport *evport,
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1666 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument
1668 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked()
1675 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked()
1695 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked()
1696 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked()
1697 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked()
1698 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked()
1706 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local
1709 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()
1710 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()
[all …]