From: Paul Blakey Date: Mon, 8 Mar 2021 12:52:41 +0000 (+0200) Subject: net/mlx5: DR, Set max table size to 2G entries X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9e117998409c740fdf921392acb048360fcb62a9;p=uclinux-h8%2Flinux.git 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 Signed-off-by: Saeed Mahameed --- 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; }