aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Blakey <[email protected]>2021-03-08 14:52:41 +0200
committerSaeed Mahameed <[email protected]>2021-05-27 11:54:38 -0700
commit9e117998409c740fdf921392acb048360fcb62a9 (patch)
tree4bd3ff8e53c88f969964466913e4d99f60038a9e
parent4a98544d182761873381d46bb1a498703ca85bf0 (diff)
net/mlx5: DR, Set max table size to 2G entries
SW steering has no table size limitations. However, fs_core API is size aware. Set SW steering tables to the maximum possible table size (INT_MAX). Signed-off-by: Paul Blakey <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c b/drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c
index ee45d698cd9c..ee0e9d79aaec 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/steering/fs_dr.c
@@ -97,7 +97,7 @@ static int mlx5_cmd_dr_create_flow_table(struct mlx5_flow_root_namespace *ns,
}
}
- ft->max_fte = size ? roundup_pow_of_two(size) : 1;
+ ft->max_fte = INT_MAX;
return 0;
}