Skip to content

Get E-Switch Manager vport ID

Shun Hao dpdk-dev 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2common/mlx5: query E-Switch manager vport IDdrivers/common/mlx5/mlx5_devx_cmds.c drivers/common/mlx5/mlx5_devx_cmds.h drivers/common/mlx5/mlx5_prm.h+26 -00 replies
2/2net/mlx5: new method to get E-Switch manager vport IDdrivers/net/mlx5/mlx5_flow_dv.c+4 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchViacheslav Ovsiienko
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] Get E-Switch Manager vport ID

One of the E-Switch vports plays the special role - it is assigned as "E-Switch manager" and has some special exclusive rights and duties - it maintains all the representors, manages FDB domain flows, etc. By default, the E-Switch vport index was supposed to be zero on standalone NICs (regular ConnectX) and 0xFFFE SmartNIC (BlueField), but that was not always correct - this index can be assigned with any value by kernel/hypervisor.
To handle this and do not suggest any default values we should use DevX API to query E-Switch manager vport ID directly from firmware, to make sure we always use the correct value.

Shun Hao (2):
common/mlx5: query E-Switch manager vport ID net/mlx5: new method to get E-Switch manager vport ID

 drivers/common/mlx5/mlx5_devx_cmds.c | 12 ++++++++++++
 drivers/common/mlx5/mlx5_devx_cmds.h |  2 ++
 drivers/common/mlx5/mlx5_prm.h       | 12 ++++++++++++
 drivers/net/mlx5/mlx5_flow_dv.c      |  4 ++++
 4 files changed, 30 insertions(+)
Signature · 1 line
2.20.0