]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:48 +0000 (13:33 +0100)
commitda24c71ebcaa9af4c70e5f8f06e53dc60a8530a3
tree91cf3f187871147f2516731207001abe19e5391e
parent6c427eb7a278f6c5bc131db19c40f7ecdf63b857
net/mlx5: Fix setting ec_function bit in MANAGE_PAGES

[ Upstream commit 8bf3000b03ffede64f6be52929b62e787c0d45a8 ]

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: ad8450a8333a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c