summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorYevgeny Kliteynik <kliteyn@nvidia.com>2022-08-30 01:18:59 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-04-14 15:06:22 -0700
commit220ae987838c893fe11e46a3e3994a549f203daa (patch)
tree6c6b13d806030daf369c9086ea2d32d8fbdd9750 /drivers/net/ethernet
parenta21e52bb8f372b98855d931ca87e43e3c958c04f (diff)
downloadlinux-stable-220ae987838c893fe11e46a3e3994a549f203daa.tar.gz
linux-stable-220ae987838c893fe11e46a3e3994a549f203daa.tar.bz2
linux-stable-220ae987838c893fe11e46a3e3994a549f203daa.zip
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 <muhammads@nvidia.com> Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Reviewed-by: Alex Vesker <valex@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/ethernet')
-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)