aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Kliteynik <[email protected]>2022-08-30 01:18:59 +0300
committerSaeed Mahameed <[email protected]>2023-04-14 15:06:22 -0700
commit220ae987838c893fe11e46a3e3994a549f203daa (patch)
tree6c6b13d806030daf369c9086ea2d32d8fbdd9750
parenta21e52bb8f372b98855d931ca87e43e3c958c04f (diff)
net/mlx5: DR, Enable patterns and arguments for supporting devices
Check if patterns and arguments for modify header action are supported and enable them accordingly. Signed-off-by: Muhammad Sammar <[email protected]> Signed-off-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Alex Vesker <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
index c4545daf179b..9a2dfe6ebe31 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/dr_domain.c
@@ -12,7 +12,8 @@
bool mlx5dr_domain_is_support_ptrn_arg(struct mlx5dr_domain *dmn)
{
- return false;
+ return dmn->info.caps.sw_format_ver >= MLX5_STEERING_FORMAT_CONNECTX_6DX &&
+ dmn->info.caps.support_modify_argument;
}
static int dr_domain_init_modify_header_resources(struct mlx5dr_domain *dmn)