]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5: Fix setting ec_function bit in MANAGE_PAGES
authorParav Pandit <parav@nvidia.com>
Thu, 24 Jun 2021 15:22:57 +0000 (18:22 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Mar 2023 22:50:16 +0000 (15:50 -0700)
commitba5d8f72b82cc197355c9340ef89dab813815865
tree1cc33b8f476061a5da3433bbae04641aa341987c
parent9a92fe1db9e57ea94388a1d768e8ee42af858377
net/mlx5: Fix setting ec_function bit in MANAGE_PAGES

When ECPF is a page supplier, reclaim pages missed to honor the
ec_function bit provided by the firmware. It always used the ec_function
to true during driver unload flow for ECPF. This is incorrect.

Honor the ec_function bit provided by device during page allocation
request event.

Fixes: d6945242f45d ("net/mlx5: Hold pages RB tree per VF")
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c