* mlx5_common: failed to load mlx5_eth driver issue
@ 2025-01-28 11:15 Singh, Jasvinder
2025-01-29 6:33 ` Khadem Ullah
2025-02-24 19:25 ` Tummala, Sivaprasad
0 siblings, 2 replies; 4+ messages in thread
From: Singh, Jasvinder @ 2025-01-28 11:15 UTC (permalink / raw)
To: users, Raslan Darawsheh; +Cc: Marjanovic, Nemanja
[-- Attachment #1: Type: text/plain, Size: 2375 bytes --]
Hi Folks,
I am trying to run dpdk-testpmd in a container with NVIDIA ConnectX-7 NIC card on the system and facing issue described below. Details on the system setup are as follow-
Host Configuration for OFED and CX7:
Nvidia CX7 is configured to use Ethernet as opposed to InfiniBand with the following steps:
OFED driver installation:
./mlnxofedinstall --without-dkms --add-kernel-support --kernel 6.8.0-51-generic --without-fw-update --force
Configuration:
mlxconfig -d /dev/mst/mt4129_pciconf0 set LINK_TYPE_P1=2
mlxconfig -d /dev/mst/mt4129_pciconf1 set LINK_TYPE_P1=2
SRIOV has been also enabled on the NIC.
The above configuration resulted in successfully deploying dpdk-testpmd on virtual functions on the host.
Container Configuration for OFED:
Ubuntu 22.04 used within container.
# Install mlnx OFED Drivers
RUN wget https://www.mellanox.com/downloads/ofed/MLNX_OFED-24.07-0.6.1.0/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& tar -xvf MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& cd MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64 \
&& ./mlnxofedinstall --force --without-fw-update --dpdk --upstream-libs
Dpdk-testpmd error log:
root@tpmd-0:/tmp/dpdk-build/app# ./dpdk-testpmd -n 4 -a 60:00.1 -a 60:00.2 -- -i
EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.1 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.1 cannot be used
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.2 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.2 cannot be used
EAL: Bus (pci) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: No probed ethernet devices
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=1163456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Done
testpmd> quit
Please provide help to resolve above.
Thanks,
Jasvinder
[-- Attachment #2: Type: text/html, Size: 7145 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: mlx5_common: failed to load mlx5_eth driver issue
2025-01-28 11:15 mlx5_common: failed to load mlx5_eth driver issue Singh, Jasvinder
@ 2025-01-29 6:33 ` Khadem Ullah
2025-02-24 19:25 ` Tummala, Sivaprasad
1 sibling, 0 replies; 4+ messages in thread
From: Khadem Ullah @ 2025-01-29 6:33 UTC (permalink / raw)
To: jasvinder.singh; +Cc: nemanja.marjanovic, rasland, users
[-- Attachment #1: Type: text/plain, Size: 120 bytes --]
Hi Jasvinder,
Please try the following commands :
/etc/init.d/openibd restart
or
modprobe mlx5_ib
Regards,
Khadem
[-- Attachment #2: Type: text/html, Size: 1988 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: mlx5_common: failed to load mlx5_eth driver issue
2025-01-28 11:15 mlx5_common: failed to load mlx5_eth driver issue Singh, Jasvinder
2025-01-29 6:33 ` Khadem Ullah
@ 2025-02-24 19:25 ` Tummala, Sivaprasad
2025-02-25 9:34 ` Singh, Jasvinder
1 sibling, 1 reply; 4+ messages in thread
From: Tummala, Sivaprasad @ 2025-02-24 19:25 UTC (permalink / raw)
To: Singh, Jasvinder, users, Raslan Darawsheh; +Cc: Marjanovic, Nemanja
[-- Attachment #1: Type: text/plain, Size: 3251 bytes --]
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Jasvinder,
I was facing similar issue with Cx-7 and it appears that the issue is related to the network namespace.
By configuring the Pod/container to use the "host's network namespace," the issue is effectively resolved.
----
spec:
nodeSelector:
"feature.node.kubernetes.io/test-node": "true"
hostNetwork: true
containers:
----
Thanks & Regards,
Sivaprasad
From: Singh, Jasvinder <jasvinder.singh@intel.com>
Sent: Tuesday, January 28, 2025 4:45 PM
To: users@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
Cc: Marjanovic, Nemanja <nemanja.marjanovic@intel.com>
Subject: mlx5_common: failed to load mlx5_eth driver issue
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Hi Folks,
I am trying to run dpdk-testpmd in a container with NVIDIA ConnectX-7 NIC card on the system and facing issue described below. Details on the system setup are as follow-
Host Configuration for OFED and CX7:
Nvidia CX7 is configured to use Ethernet as opposed to InfiniBand with the following steps:
OFED driver installation:
./mlnxofedinstall --without-dkms --add-kernel-support --kernel 6.8.0-51-generic --without-fw-update --force
Configuration:
mlxconfig -d /dev/mst/mt4129_pciconf0 set LINK_TYPE_P1=2
mlxconfig -d /dev/mst/mt4129_pciconf1 set LINK_TYPE_P1=2
SRIOV has been also enabled on the NIC.
The above configuration resulted in successfully deploying dpdk-testpmd on virtual functions on the host.
Container Configuration for OFED:
Ubuntu 22.04 used within container.
# Install mlnx OFED Drivers
RUN wget https://www.mellanox.com/downloads/ofed/MLNX_OFED-24.07-0.6.1.0/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& tar -xvf MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& cd MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64 \
&& ./mlnxofedinstall --force --without-fw-update --dpdk --upstream-libs
Dpdk-testpmd error log:
root@tpmd-0:/tmp/dpdk-build/app# ./dpdk-testpmd -n 4 -a 60:00.1 -a 60:00.2 -- -i
EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.1 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.1 cannot be used
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.2 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.2 cannot be used
EAL: Bus (pci) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: No probed ethernet devices
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=1163456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Done
testpmd> quit
Please provide help to resolve above.
Thanks,
Jasvinder
[-- Attachment #2: Type: text/html, Size: 13192 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: mlx5_common: failed to load mlx5_eth driver issue
2025-02-24 19:25 ` Tummala, Sivaprasad
@ 2025-02-25 9:34 ` Singh, Jasvinder
0 siblings, 0 replies; 4+ messages in thread
From: Singh, Jasvinder @ 2025-02-25 9:34 UTC (permalink / raw)
To: Tummala, Sivaprasad, users, Raslan Darawsheh; +Cc: Marjanovic, Nemanja
[-- Attachment #1: Type: text/plain, Size: 3731 bytes --]
Thanks, Siva! Got it working.
From: Tummala, Sivaprasad <Sivaprasad.Tummala@amd.com>
Sent: Monday, February 24, 2025 7:25 PM
To: Singh, Jasvinder <jasvinder.singh@intel.com>; users@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
Cc: Marjanovic, Nemanja <nemanja.marjanovic@intel.com>
Subject: RE: mlx5_common: failed to load mlx5_eth driver issue
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Jasvinder,
I was facing similar issue with Cx-7 and it appears that the issue is related to the network namespace.
By configuring the Pod/container to use the "host's network namespace," the issue is effectively resolved.
----
spec:
nodeSelector:
"feature.node.kubernetes.io/test-node": "true"
hostNetwork: true
containers:
----
Thanks & Regards,
Sivaprasad
From: Singh, Jasvinder <jasvinder.singh@intel.com<mailto:jasvinder.singh@intel.com>>
Sent: Tuesday, January 28, 2025 4:45 PM
To: users@dpdk.org<mailto:users@dpdk.org>; Raslan Darawsheh <rasland@nvidia.com<mailto:rasland@nvidia.com>>
Cc: Marjanovic, Nemanja <nemanja.marjanovic@intel.com<mailto:nemanja.marjanovic@intel.com>>
Subject: mlx5_common: failed to load mlx5_eth driver issue
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Hi Folks,
I am trying to run dpdk-testpmd in a container with NVIDIA ConnectX-7 NIC card on the system and facing issue described below. Details on the system setup are as follow-
Host Configuration for OFED and CX7:
Nvidia CX7 is configured to use Ethernet as opposed to InfiniBand with the following steps:
OFED driver installation:
./mlnxofedinstall --without-dkms --add-kernel-support --kernel 6.8.0-51-generic --without-fw-update --force
Configuration:
mlxconfig -d /dev/mst/mt4129_pciconf0 set LINK_TYPE_P1=2
mlxconfig -d /dev/mst/mt4129_pciconf1 set LINK_TYPE_P1=2
SRIOV has been also enabled on the NIC.
The above configuration resulted in successfully deploying dpdk-testpmd on virtual functions on the host.
Container Configuration for OFED:
Ubuntu 22.04 used within container.
# Install mlnx OFED Drivers
RUN wget https://www.mellanox.com/downloads/ofed/MLNX_OFED-24.07-0.6.1.0/MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& tar -xvf MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64.tgz \
&& cd MLNX_OFED_LINUX-24.07-0.6.1.0-ubuntu24.04-x86_64 \
&& ./mlnxofedinstall --force --without-fw-update --dpdk --upstream-libs
Dpdk-testpmd error log:
root@tpmd-0:/tmp/dpdk-build/app# ./dpdk-testpmd -n 4 -a 60:00.1 -a 60:00.2 -- -i
EAL: Detected CPU lcores: 128
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.1 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.1 cannot be used
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:60:00.2 (socket 0)
mlx5_net: Unable to recognize master/representors on the multiple IB devices.
mlx5_common: Failed to load driver mlx5_eth
EAL: Requested device 0000:60:00.2 cannot be used
EAL: Bus (pci) probe failed.
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: No probed ethernet devices
Interactive-mode selected
testpmd: create a new mbuf pool <mb_pool_0>: n=1163456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Done
testpmd> quit
Please provide help to resolve above.
Thanks,
Jasvinder
[-- Attachment #2: Type: text/html, Size: 13180 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-02-25 9:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-28 11:15 mlx5_common: failed to load mlx5_eth driver issue Singh, Jasvinder
2025-01-29 6:33 ` Khadem Ullah
2025-02-24 19:25 ` Tummala, Sivaprasad
2025-02-25 9:34 ` Singh, Jasvinder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).