net/mlx5: register memory event callback in Windows
authorMichael Baum <michaelba@nvidia.com>
Tue, 19 Oct 2021 20:55:45 +0000 (23:55 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 21 Oct 2021 13:37:23 +0000 (15:37 +0200)
commit620be7f27bf53eeb19c464b2f1a77572e73db559
tree4d14ac97309c7c8d2442f5b1109af159d099e84c
parenta4975cd20dca0aa7f96cd47b79144509e7599c66
net/mlx5: register memory event callback in Windows

In device initialization, the driver registers to free hugepages events.
When hugepage is released, this callback frees all its related MRs.

In Windows initialization, this callback is not registered what may
cause to use invalid memory.

This patch adds memory event callback registration in Windows
initialization.

Fixes: 980826dc6f0f ("net/mlx5: probe on Windows")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/windows/mlx5_os.c