]> 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)
commitfb7ba13ecabed86557832e1c20ad5d8c548165f4
tree5c422d4f46541225548c96e43518c8a5496f0b79
parenta3d9097f5be8a30021c12002572c637f1adb64b7
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: 3079fddb43b2 ("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