diff options
author | Yevgeny Kliteynik <[email protected]> | 2021-08-10 22:34:58 +0300 |
---|---|---|
committer | Saeed Mahameed <[email protected]> | 2021-09-30 16:18:58 -0700 |
commit | dd4acb2a0954a6ac9941f0dc3a690b49565c9ec3 (patch) | |
tree | 3807ead52192c27de46ae4cc4c7a6433a1ba72c3 /tools/perf/scripts/python/libxed.py | |
parent | 7ae8ac9a582088c85154970982766617c9ebf8dc (diff) |
net/mlx5: DR, Add missing query for vport 0
Currently, vport 0 capabilities are not set.
To fix this, we now querying both eswitch manager and vport 0.
Eswitch manager has an access to all the vports - for eswitch manager PF, all
vports can be referred as other vports. The exception is embedded CPU mode,
where there is vport 0 of ECPF and the PF vport 0.
Here is how vport are queried:
For Connect-X5/6:
PF vport (0) and vports 1..n: vport number, other = true
esw_manager is vport 0 (PF)
For BlueField (in embedded CPU mode):
ECPF vport: vport = 0, other = false
PF vport (0) and 1..n: vport number, other = true
esw_manager = vport 0 (ECPF)
Also, note that there's no need for other_vport function parameter
in dr_domain_query_vport - this value is now deduced locally in the
function.
Signed-off-by: Yuval Avnery <[email protected]>
Signed-off-by: Yevgeny Kliteynik <[email protected]>
Reviewed-by: Muhammad Sammar <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions