]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Dedicate fw page to the requesting function
authorEran Ben Elisha <eranbe@mellanox.com>
Sun, 3 May 2020 07:15:58 +0000 (10:15 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 15 May 2020 22:44:12 +0000 (15:44 -0700)
commitcd00a303f5e6d35a4149e530bd50643973c5ca68
tree5c422d4f46541225548c96e43518c8a5496f0b79
parentcf844fe0c7d632ce28c36e0bc529ac54539ad145
net/mlx5: Dedicate fw page to the requesting function

The cited patch assumes that all chuncks in a fw page belong to the same
function, thus the driver must dedicate fw page to the requesting
function, which is actually what was intedned in the original fw pages
allocator design, hence the fwp->func_id !

Up until the cited patch everything worked ok, but now "relase all pages"
is broken on systems with page_size > 4k.

Fix this by dedicating fw page to the requesting function id via adding a
func_id parameter to alloc_4k() function.

Fixes: c2f637ec7c19 ("net/mlx5: Add support for release all pages event")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c