History

RDMA/mlx5: Expose register c0 for RDMA device

This patch introduces improvements for matching egress traffic sent by the local device. When applicable, all egress traffic from the local vport is now tagged with the provided value. This enhancement is particularly useful for FDB steering purposes. The primary focus of this update is facilitating the transmission of traffic from the hypervisor to a VF. To achieve this, one must initiate an SQ on the hypervisor and subsequently create a rule in the FDB that matches on the eswitch manager vport and the SQN of the aforementioned SQ. Obtaining the SQN can be had from SQ opened, and the eswitch manager vport match can be substituted with the register c0 value exposed by this patch.

Mark Bloch committed 2 years ago

Commit d727d271 parent eb524d02 files · +26 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/rdma/mlx5-abi.h+2−0
@@ -37,6 +37,7 @@ · 36 unmodified lines
3737 #include <linux/types.h>
3838 #include <linux/if_ether.h> /* For ETH_ALEN. */
3939 #include <rdma/ib_user_ioctl_verbs.h>
40+#include <rdma/mlx5_user_ioctl_verbs.h>
4041
4142 enum {
4243 MLX5_QP_FLAG_SIGNATURE = 1 << 0,
@@ -275,6 +276,7 @@ struct mlx5_ib_query_device_resp { · 232 unmodified lines
275276 __u32 tunnel_offloads_caps; /* enum mlx5_ib_tunnel_offloads */
276277 struct mlx5_ib_dci_streams_caps dci_streams_caps;
277278 __u16 reserved;
279+ struct mlx5_ib_uapi_reg reg_c0;
278280 };
279281
280282 enum mlx5_ib_create_cq_flags {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t