Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c463 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_spoofchk()
464 return PTR_ERR(evport); in mlx5_eswitch_set_vport_spoofchk()
471 pschk = evport->info.spoofchk; in mlx5_eswitch_set_vport_spoofchk()
476 evport->vport); in mlx5_eswitch_set_vport_spoofchk()
480 evport->info.spoofchk = pschk; in mlx5_eswitch_set_vport_spoofchk()
495 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_trust()
496 return PTR_ERR(evport); in mlx5_eswitch_set_vport_trust()
503 evport->info.trusted = setting; in mlx5_eswitch_set_vport_trust()
504 if (evport->enabled) in mlx5_eswitch_set_vport_trust()
520 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_rate()
[all …]
H A Dqos.c94 struct mlx5_vport *evport; in esw_qos_calculate_min_rate_divider() local
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()
140 struct mlx5_vport *evport; in esw_qos_normalize_vports_min_rate() local
146 if (!evport->enabled || !evport->qos.enabled || evport->qos.group != group) in esw_qos_normalize_vports_min_rate()
153 err = esw_qos_vport_config(esw, evport, evport->qos.max_rate, bw_share, extack); in esw_qos_normalize_vports_min_rate()
157 evport->qos.bw_share = bw_share; in esw_qos_normalize_vports_min_rate()
212 evport->qos.min_rate = min_rate; in esw_qos_set_vport_min_rate()
238 if (evport->qos.group && !max_rate) in esw_qos_set_vport_max_rate()
241 err = esw_qos_vport_config(esw, evport, act_max_rate, evport->qos.bw_share, extack); in esw_qos_set_vport_max_rate()
[all …]
H A Dqos.h9 int mlx5_esw_qos_set_vport_rate(struct mlx5_eswitch *esw, struct mlx5_vport *evport,
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c1991 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()
1992 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()
2031 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_state()
2032 return PTR_ERR(evport); in mlx5_eswitch_set_vport_state()
2064 if (IS_ERR(evport)) in mlx5_eswitch_get_vport_config()
2065 return PTR_ERR(evport); in mlx5_eswitch_get_vport_config()
2077 if (evport->qos.enabled) { in mlx5_eswitch_get_vport_config()
2093 if (IS_ERR(evport)) in __mlx5_eswitch_set_vport_vlan()
2094 return PTR_ERR(evport); in __mlx5_eswitch_set_vport_vlan()
2104 evport->info.vlan = vlan; in __mlx5_eswitch_set_vport_vlan()
[all …]