Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlx5: Extend to support 'reg c0' and SW encap ICM #1410

Merged
merged 6 commits into from Dec 14, 2023

Conversation

yishaih
Copy link
Member

@yishaih yishaih commented Nov 28, 2023

This series extends the mlx5 provider with the below support.

  • Expose 'reg c0' to enable matching local vport egress traffic in FDB.
  • Add support for SW encap action in the DR area.

The matching kernel series including the UAPI changes was sent already to rdma-next.

Yishai Hadas and others added 6 commits December 14, 2023 15:39
To commit: d727d27db536 ("RDMA/mlx5: Expose register c0 for RDMA device")

Signed-off-by: Yishai Hadas <[email protected]>
Add a new DM type for the SW encap action creation.

Currently the encap action creation is through DevX, whose max amount of
actions can be created is small. The new SW encap type can increase the
max amount of actions.

Signed-off-by: Shun Hao <[email protected]>
Reviewed-by: Yevgeny Kliteynik <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
There is a new ICM area for SW owned encap actions. This patch adds the
memory pool to manage the new ICM memory type.

Signed-off-by: Shun Hao <[email protected]>
Reviewed-by: Yevgeny Kliteynik <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
Currently, encap reformat action creation is done by using DevX to get
the reformat_id.

This patch adds the support that, when SW encap is supported, will use
the new method for encap reformat creation by default, by copying encap
data to SW-encap ICM memory directly. Otherwise, will fallback to try
again, using DevX to create FW encap action.

Because Dest Array action only supports encap action created by DevX,
when the SW encap action is used by Dest Array, a DevX object will be
created as well, using the same encap data.

Signed-off-by: Shun Hao <[email protected]>
Reviewed-by: Yevgeny Kliteynik <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
The cited commit didn't update the man page with the comp mask the user
needs to provide in order to get the atomic / rdma read for DC QPs.

Fixes: 450a398 ("mlx5: Expose max remote atomic/rdma read for DC")
Signed-off-by: Mark Bloch <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
When provided the value can be used to match egress traffic from the
local vport in the FDB.

Signed-off-by: Mark Bloch <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
@yishaih yishaih merged commit 69cc13f into linux-rdma:master Dec 14, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants