Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c457 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_spoofchk() local
463 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()
472 evport->info.spoofchk = spoofchk; in mlx5_eswitch_set_vport_spoofchk()
473 if (pschk && !is_valid_ether_addr(evport->info.mac)) in mlx5_eswitch_set_vport_spoofchk()
476 evport->vport); in mlx5_eswitch_set_vport_spoofchk()
477 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_eswitch_set_vport_spoofchk()
478 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_eswitch_set_vport_spoofchk()
480 evport->info.spoofchk = pschk; in mlx5_eswitch_set_vport_spoofchk()
[all …]
H A Dqos.c95 struct mlx5_vport *evport; in esw_qos_calculate_min_rate_divider() local
108 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_calculate_min_rate_divider()
109 if (!evport->enabled || !evport->qos.enabled || in esw_qos_calculate_min_rate_divider()
110 evport->qos.group != group || evport->qos.min_rate < max_guarantee) in esw_qos_calculate_min_rate_divider()
112 max_guarantee = evport->qos.min_rate; in esw_qos_calculate_min_rate_divider()
141 struct mlx5_vport *evport; in esw_qos_normalize_vports_min_rate() local
146 mlx5_esw_for_each_vport(esw, i, evport) { in esw_qos_normalize_vports_min_rate()
147 if (!evport->enabled || !evport->qos.enabled || evport->qos.group != group) in esw_qos_normalize_vports_min_rate()
149 bw_share = esw_qos_calc_bw_share(evport->qos.min_rate, divider, fw_max_bw_share); in esw_qos_normalize_vports_min_rate()
151 if (bw_share == evport->qos.bw_share) in esw_qos_normalize_vports_min_rate()
[all …]
H A Dqos.h9 int mlx5_esw_qos_set_vport_rate(struct mlx5_eswitch *esw, struct mlx5_vport *evport,
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c1949 struct mlx5_vport *evport, const u8 *mac) in mlx5_esw_set_vport_mac_locked() argument
1951 u16 vport_num = evport->vport; in mlx5_esw_set_vport_mac_locked()
1958 if (evport->info.spoofchk && !is_valid_ether_addr(mac)) in mlx5_esw_set_vport_mac_locked()
1978 ether_addr_copy(evport->info.mac, mac); in mlx5_esw_set_vport_mac_locked()
1979 evport->info.node_guid = node_guid; in mlx5_esw_set_vport_mac_locked()
1980 if (evport->enabled && esw->mode == MLX5_ESWITCH_LEGACY) in mlx5_esw_set_vport_mac_locked()
1981 err = esw_acl_ingress_lgcy_setup(esw, evport); in mlx5_esw_set_vport_mac_locked()
1989 struct mlx5_vport *evport = mlx5_eswitch_get_vport(esw, vport); in mlx5_eswitch_set_vport_mac() local
1992 if (IS_ERR(evport)) in mlx5_eswitch_set_vport_mac()
1993 return PTR_ERR(evport); in mlx5_eswitch_set_vport_mac()
[all …]