From e9dc4ff22d57704964ada85cc4ec00af513d1c07 Mon Sep 17 00:00:00 2001
From: Pascal Coudurier <coudu@gmx.com>
Date: Mon, 21 Aug 2023 21:19:51 +0200
Subject: [PATCH] kernel: modules: netdevices: adapt mlx5-core for kernel 6.1

Set CONFIG_MLX5_VFIO_PCI=n for kernel greater than 5.18

Signed-off-by: Pascal Coudurier <coudu@gmx.com>
---
 package/kernel/linux/modules/netdevices.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index ec6741712e..b0d69e0220 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -1344,7 +1344,8 @@ define KernelPackage/mlx5-core
 	CONFIG_MLX5_MPFS=y \
 	CONFIG_MLX5_SW_STEERING=n \
 	CONFIG_MLX5_TC_CT=n \
-	CONFIG_MLX5_TLS=n
+	CONFIG_MLX5_TLS=n \
+	CONFIG_MLX5_VFIO_PCI=n
   AUTOLOAD:=$(call AutoProbe,mlx5_core)
 endef
 
-- 
2.30.2