]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Maintain separate page trees for ECPF and PF functions
authorDaniel Jurgens <danielj@nvidia.com>
Fri, 22 Jan 2021 21:13:53 +0000 (23:13 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 26 Jan 2021 23:38:48 +0000 (15:38 -0800)
commitee7e4f8aceee197b7af33af3825ed5400b1edf2e
tree7347562f7e39b06c3d577e65f2aff4f141b7cee1
parent7262f304228d3489524f7eb93d6793fca1162d5a
net/mlx5: Maintain separate page trees for ECPF and PF functions

Pages for the host PF and ECPF were stored in the same tree, so the ECPF
pages were being freed along with the host PF's when the host driver
unloaded.

Combine the function ID and ECPF flag to use as an index into the
x-array containing the trees to get a different tree for the host PF and
ECPF.

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