kernel: modules: reorder i40e, mlx4, and mlx5 load priorities

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 <mail@tk154.de>
Link: https://github.com/openwrt/openwrt/pull/17990
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Til Kaiser 2025-02-16 17:57:48 +01:00 committed by Hauke Mehrtens
parent 8951ac6f65
commit ad106a350d

View File

@ -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