Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c458 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_spoofchk() local
464 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_spoofchk()
465 return PTR_ERR(evport); in mlx5_eswitch_set_vport_spoofchk()
472 pschk = evport->info.spoofchk; in mlx5_eswitch_set_vport_spoofchk()
473 evport->info.spoofchk = spoofchk; in mlx5_eswitch_set_vport_spoofchk()
474 if (pschk && !is_valid_ether_addr(evport->info.mac)) in mlx5_eswitch_set_vport_spoofchk()
477 evport->vport); in mlx5_eswitch_set_vport_spoofchk()
478 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_eswitch_set_vport_spoofchk()
479 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_eswitch_set_vport_spoofchk()
481 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.h10 struct mlx5_vport *evport,
14 struct mlx5_vport *evport,
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1620 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument
1622 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked()
1629 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked()
1649 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked()
1650 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked()
1651 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked()
1652 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked()
1660 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local
1663 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()
1664 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()
[all …]