History

net/mlx5: Add support in RDMA RX steering

Add new flow steering namespace - MLX5_FLOW_NAMESPACE_RDMA_RX. Flow steering rules in this namespace are used to filter RDMA traffic.

Maor Gottlieb committed 7 years ago

Commit d83eb501 parent ae288a46 files · +38 −1Browse files

Showing the changes to include/linux (3 of 6 files). Show all

Unified · Split

3 files
  1. include/linux/mlx5/device.h +6 −0
  2. include/linux/mlx5/fs.h +1 −0
  3. include/linux/mlx5/mlx5_ifc.h +1 −1
include/linux/mlx5/device.h+6−0
@@ -1166,6 +1166,12 @@ enum mlx5_qcam_feature_groups { · 1165 unmodified lines
1166#define MLX5_CAP_FLOWTABLE_SNIFFER_TX_MAX(mdev, cap) \1166#define MLX5_CAP_FLOWTABLE_SNIFFER_TX_MAX(mdev, cap) \
1167 MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_transmit_sniffer.cap)1167 MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_transmit_sniffer.cap)
1168 1168
1169#define MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) \
1170 MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive_rdma.cap)
1171
1172#define MLX5_CAP_FLOWTABLE_RDMA_RX_MAX(mdev, cap) \
1173 MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_receive_rdma.cap)
1174
1169#define MLX5_CAP_ESW_FLOWTABLE(mdev, cap) \1175#define MLX5_CAP_ESW_FLOWTABLE(mdev, cap) \
1170 MLX5_GET(flow_table_eswitch_cap, \1176 MLX5_GET(flow_table_eswitch_cap, \
1171 mdev->caps.hca_cur[MLX5_CAP_ESWITCH_FLOW_TABLE], cap)1177 mdev->caps.hca_cur[MLX5_CAP_ESWITCH_FLOW_TABLE], cap)
include/linux/mlx5/fs.h+1−0
@@ -73,6 +73,7 @@ enum mlx5_flow_namespace_type { · 72 unmodified lines
73 MLX5_FLOW_NAMESPACE_SNIFFER_RX,73 MLX5_FLOW_NAMESPACE_SNIFFER_RX,
74 MLX5_FLOW_NAMESPACE_SNIFFER_TX,74 MLX5_FLOW_NAMESPACE_SNIFFER_TX,
75 MLX5_FLOW_NAMESPACE_EGRESS,75 MLX5_FLOW_NAMESPACE_EGRESS,
76 MLX5_FLOW_NAMESPACE_RDMA_RX,
76};77};
77 78
78enum {79enum {
include/linux/mlx5/mlx5_ifc.h+1−1
@@ -598,7 +598,7 @@ struct mlx5_ifc_flow_table_nic_cap_bits { · 597 unmodified lines
598 598
599 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;599 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive;
600 600
601 u8 reserved_at_400[0x200];601 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_rdma;
602 602
603 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;603 struct mlx5_ifc_flow_table_prop_layout_bits flow_table_properties_nic_receive_sniffer;
604 604

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