DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Get E-Switch Manager vport ID
@ 2022-02-18  7:18 Shun Hao
  2022-02-18  7:18 ` [PATCH v1 1/2] common/mlx5: query E-Switch manager " Shun Hao
  2022-02-18  7:18 ` [PATCH v1 2/2] net/mlx5: new method to get " Shun Hao
  0 siblings, 2 replies; 3+ messages in thread
From: Shun Hao @ 2022-02-18  7:18 UTC (permalink / raw)
  To: matan, viacheslavo, orika, thomas; +Cc: dev, rasland

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(+)

-- 
2.20.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-18  7:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18  7:18 [PATCH v1 0/2] Get E-Switch Manager vport ID Shun Hao
2022-02-18  7:18 ` [PATCH v1 1/2] common/mlx5: query E-Switch manager " Shun Hao
2022-02-18  7:18 ` [PATCH v1 2/2] net/mlx5: new method to get " Shun Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).