Add new flow steering namespace - MLX5_FLOW_NAMESPACE_RDMA_RX. Flow steering rules in this namespace are used to filter RDMA traffic.
Showing the changes to include/linux (3 of 6 files). Show all
Unified · Split
| @@ -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) |
| @@ -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 | ||
| 78 | enum { | 79 | enum { |
| @@ -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 | ||