View Issue Details

IDProjectCategoryView StatusLast Update
0001563channel: elrepo/el10kmod-mlx4public2025-09-20 11:30
Reporterap75 Assigned Topperry  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Summary0001563: mlx4 driver for el10
DescriptionRHEL 10 has removed the mlx4 driver from the kernel, as shown in this release note link:
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/10.0_release_notes/removed-features#removed-features-networking

According to Azure documentation, different Azure hosts use different models of Mellanox physical NIC, and therefore Linux automatically determines whether to use the mlx4 or mlx5 driver.
https://learn.microsoft.com/en-us/azure/virtual-network/accelerated-networking-how-it-works

Therefore, Azure accelerated networking will not work with RHEL 10 based virtual machines unless an Azure host with mlx5 (instead of mlx4) driver is used, and this seems to be random.

Would be great if mlx4 driver would be available in el10 as well, since Azure mlx4 based hardware is still in use.

Thanks
TagsNo tags attached.

Activities

toracat

2025-09-19 12:15

administrator   ~0010641

@ap75

While we are working on the kmod package, you may want to test-install our kernel-ml. The mlx4 driver is enabled there.

pperry

2025-09-19 14:46

administrator   ~0010642

I have built kmod-mlx4 for el10 and have uploaded packages to our testing repository. The following should be available on our mirror sites shortly:

kmod-mlx4-4.0-1.el10_0.elrepo.x86_64.rpm
kmod-mlx4-4.0-1.el10_0.elrepo.src.rpm

Please install and test with:
dnf --enablerepo=elrepo-testing install kmod-mlx4

and please report back if the driver works for you.

Thanks.

ap75

2025-09-19 15:11

reporter   ~0010643

@toracat
mlx4 in kernel-ml does work, thank you for the info!

@pperry
Thank you for this, I will test and report back.

ap75

2025-09-19 16:01

reporter   ~0010644

@pperry
The kmod-mlx4 for el10 works as well, please see below:

1. before installing kmod-mlx4

[code]
[root@testvm ~]# dmesg | grep mlx4
[root@testvm ~]#
[root@testvm ~]# ethtool -S eth0 | grep ' vf_'
     vf_rx_packets: 0
     vf_rx_bytes: 0
     vf_tx_packets: 0
     vf_tx_bytes: 0
     vf_tx_dropped: 0
[root@testvm ~]#
[/code]

2. after installing kmod-mlx4

[code]
[root@testvm ~]# dmesg | grep mlx4
[ 8.418623] mlx4_core: loading out-of-tree module taints kernel.
[ 8.418684] mlx4_core: module verification failed: signature and/or required key missing - tainting kernel
[ 8.468817] mlx4_core: Mellanox ConnectX core driver v4.0-0
[ 8.468892] mlx4_core: Initializing 82b7:00:02.0
[ 8.469567] mlx4_core 82b7:00:02.0: enabling device (0000 -> 0002)
[ 8.487550] mlx4_core 82b7:00:02.0: Detected virtual function - running in slave mode
[ 8.487621] mlx4_core 82b7:00:02.0: Sending reset
[ 8.487742] mlx4_core 82b7:00:02.0: Sending vhcr0
[ 8.490491] mlx4_core 82b7:00:02.0: HCA minimum page size:512
[ 8.491160] mlx4_core 82b7:00:02.0: Timestamping is not supported in slave mode
[ 9.686246] mlx4_en: Mellanox ConnectX HCA Ethernet driver v4.0-0
[ 9.687440] mlx4_en 82b7:00:02.0: Activating port:1
[ 9.709708] mlx4_en: 82b7:00:02.0: Port 1: Using 8 TX rings
[ 9.709748] mlx4_en: 82b7:00:02.0: Port 1: Using 8 RX rings
[ 9.710089] mlx4_en: 82b7:00:02.0: Port 1: Initializing port
[ 9.711209] mlx4_core 82b7:00:02.0 eth1: joined to eth0
[ 11.650141] mlx4_en: eth1: Steering Mode 2
[ 11.672498] mlx4_en: eth1: Link Up
[ 13.889755] mlx4_en: eth1: Close port called
[ 14.269201] mlx4_en: eth1: Steering Mode 2
[ 14.291477] mlx4_en: eth1: Link Up
[root@testvm ~]#
[root@testvm ~]# ethtool -S eth0 | grep ' vf_'
     vf_rx_packets: 94
     vf_rx_bytes: 15505
     vf_tx_packets: 404
     vf_tx_bytes: 127331
     vf_tx_dropped: 0
[root@testvm ~]#
[/code]

3. I have tested this with the kernel versions below, with both RHEL and Rocky Linux

6.12.0-55.25.1.el10_0.x86_64 in RHEL 10
6.12.0-55.30.1.el10_0.x86_64 in Rocky Linux 10
6.12.0-55.32.1.el10_0.x86_64 in Rocky Linux 10
6.12.0-55.33.1.el10_0.x86_64 in RHEL 10

All looks good!

Thank you very much for this.

Regards,

pperry

2025-09-20 11:30

administrator   ~0010645

@ap75

Thank you for the feedback. I'll move kmod-mlx4 from testing to the main repo now.

The the module stops working after RHEL updates (e.g, 10.0 to 10.1), please let us know as it may require a rebuild for newer kernel series.

Issue History

Date Modified Username Field Change
2025-09-18 14:07 ap75 New Issue
2025-09-18 14:48 toracat Status new => acknowledged
2025-09-18 14:48 toracat Category --elrepo--OTHER-- => kmod-mlx4
2025-09-19 00:57 pperry Assigned To => pperry
2025-09-19 00:57 pperry Status acknowledged => assigned
2025-09-19 12:15 toracat Note Added: 0010641
2025-09-19 14:46 pperry Note Added: 0010642
2025-09-19 15:11 ap75 Note Added: 0010643
2025-09-19 16:01 ap75 Note Added: 0010644
2025-09-20 11:30 pperry Note Added: 0010645
2025-09-20 11:30 pperry Status assigned => resolved
2025-09-20 11:30 pperry Resolution open => fixed