From ad106a350d0ed9ebe5bc122cbe0e2d0759879ac2 Mon Sep 17 00:00:00 2001 From: Til Kaiser Date: Sun, 16 Feb 2025 17:57:48 +0100 Subject: [PATCH] kernel: modules: reorder i40e, mlx4, and mlx5 load priorities MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets the boot flag for the i40e network device driver to load it at a more early stage of the boot process. With commit 0a47d518df0d758e8d3b31264cb0428d57c362c3, I added a boot priority for the mlx4 and mlx5 drivers. Also, increase those priorities because I think they are too low since there is currently no "room" for built-in network device drivers. That can cause interface order, i.e., name inconsistencies, when Mellanox ConnectX cards are inserted or removed. Signed-off-by: Til Kaiser Link: https://github.com/openwrt/openwrt/pull/17990 Signed-off-by: Hauke Mehrtens --- package/kernel/linux/modules/netdevices.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 1239e342227..624b0d0be09 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1190,7 +1190,7 @@ define KernelPackage/i40e CONFIG_I40E_DCA=n \ CONFIG_I40E_DCB=y FILES:=$(LINUX_DIR)/drivers/net/ethernet/intel/i40e/i40e.ko - AUTOLOAD:=$(call AutoProbe,i40e) + AUTOLOAD:=$(call AutoLoad,36,i40e,1) endef define KernelPackage/i40e/description @@ -1648,7 +1648,7 @@ define KernelPackage/mlx4-core CONFIG_MLX4_CORE=y \ CONFIG_MLX4_CORE_GEN2=y \ CONFIG_MLX4_DEBUG=n - AUTOLOAD:=$(call AutoLoad,36,mlx4_core mlx4_en,1) + AUTOLOAD:=$(call AutoLoad,45,mlx4_core mlx4_en,1) endef define KernelPackage/mlx4-core/description @@ -1679,7 +1679,7 @@ define KernelPackage/mlx5-core CONFIG_MLX5_TC_CT=n \ CONFIG_MLX5_TLS=n \ CONFIG_MLX5_VFIO_PCI=n - AUTOLOAD:=$(call AutoLoad,36,mlx5_core,1) + AUTOLOAD:=$(call AutoLoad,45,mlx5_core,1) endef define KernelPackage/mlx5-core/description