DPDK usage discussions
 help / color / mirror / Atom feed
* net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
@ 2023-08-29  9:58 jiangheng (G)
  0 siblings, 0 replies; 3+ messages in thread
From: jiangheng (G) @ 2023-08-29  9:58 UTC (permalink / raw)
  To: users, matan; +Cc: Caowangbao, Yanan (Euler), liaichun

[-- Attachment #1: Type: text/plain, Size: 1017 bytes --]

Hi matan:
I have enabled mlx5 hotplug based on the failsafe pmd:
"--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e4,dev(08:00.0)", "-b", "08:00.0"
08:00.0 is mlx5 NIC.
The app started successfully.

However, I had some problems verifying the hotplug function. Here are the steps:
echo 1 > /sys/bus/pci/devices/0000:08:00.0/remove
echo 1 > /sys/bus/pci/rescan

The app had the following error:
EAL: PCI device 0000:08:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1017 net_mlx5
net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
net_mlx5: probe of PCI device 0000:08:00.0 aborted after encountering an error: No such device
EAL: Driver cannot attach the device (08:00.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (No such device)


Look at the code it is through the ioctl function to obtain the MAC address.
I wonder if there are other configurations that have not been done, causing this problem

Thanks!

[-- Attachment #2: Type: text/html, Size: 4465 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
@ 2023-09-02  9:01 jiangheng (G)
  0 siblings, 0 replies; 3+ messages in thread
From: jiangheng (G) @ 2023-09-02  9:01 UTC (permalink / raw)
  To: Matan Azrad, users

[-- Attachment #1: Type: text/plain, Size: 2721 bytes --]

Hi Matan
The issue has been resloved,  I hijacked the socket, ioctl function, so it didn't call into kernel

Thanks.

发件人: jiangheng (G) <jiangheng14@huawei.com>
发送时间: 2023年8月31日 19:17
收件人: Matan Azrad <matan@mellanox.com>; users@dpdk.org
主题: RE: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)

Hi Matan

After rescan:
/sys/bus/pci/devices/0000:08:00.0/ directory is recreated.
“Ip a” command can detect the mlx5 NIC:
37: enp8s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 04:e8:92:7d:dd:e4 brd ff:ff:ff:ff:ff:ff

How do I check the kernel netdev port you said?

Thanks!



发件人: Matan Azrad <matan@mellanox.com<mailto:matan@mellanox.com>>
发送时间: 2023年8月29日 20:07
收件人: jiangheng (G) <jiangheng14@huawei.com<mailto:jiangheng14@huawei.com>>
主题: RE: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)

Hi Jiangheng

After rescan: Do you see the kernel netdev port of the device?

Matan

From: jiangheng (G) <jiangheng14@huawei.com<mailto:jiangheng14@huawei.com>>
Sent: Tuesday, 29 August 2023 12:59
To: users@dpdk.org<mailto:users@dpdk.org>; Matan Azrad <matan@mellanox.com<mailto:matan@mellanox.com>>
Cc: Caowangbao <caowangbao@huawei.com<mailto:caowangbao@huawei.com>>; Yanan (Euler) <yanan@huawei.com<mailto:yanan@huawei.com>>; liaichun <liaichun@huawei.com<mailto:liaichun@huawei.com>>
Subject: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)

External email: Use caution opening links or attachments


Hi matan:
I have enabled mlx5 hotplug based on the failsafe pmd:
"--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e4,dev(08:00.0)", "-b", "08:00.0"
08:00.0 is mlx5 NIC.
The app started successfully.

However, I had some problems verifying the hotplug function. Here are the steps:
echo 1 > /sys/bus/pci/devices/0000:08:00.0/remove
echo 1 > /sys/bus/pci/rescan

The app had the following error:
EAL: PCI device 0000:08:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1017 net_mlx5
net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
net_mlx5: probe of PCI device 0000:08:00.0 aborted after encountering an error: No such device
EAL: Driver cannot attach the device (08:00.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (No such device)


Look at the code it is through the ioctl function to obtain the MAC address.
I wonder if there are other configurations that have not been done, causing this problem

Thanks!

[-- Attachment #2: Type: text/html, Size: 12064 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
@ 2023-08-31 11:16 jiangheng (G)
  0 siblings, 0 replies; 3+ messages in thread
From: jiangheng (G) @ 2023-08-31 11:16 UTC (permalink / raw)
  To: Matan Azrad, users

[-- Attachment #1: Type: text/plain, Size: 2339 bytes --]

Hi Matan

After rescan:
/sys/bus/pci/devices/0000:08:00.0/ directory is recreated.
“Ip a” command can detect the mlx5 NIC:
37: enp8s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 04:e8:92:7d:dd:e4 brd ff:ff:ff:ff:ff:ff

How do I check the kernel netdev port you said?

Thanks!



发件人: Matan Azrad <matan@mellanox.com<mailto:matan@mellanox.com>>
发送时间: 2023年8月29日 20:07
收件人: jiangheng (G) <jiangheng14@huawei.com<mailto:jiangheng14@huawei.com>>
主题: RE: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)

Hi Jiangheng

After rescan: Do you see the kernel netdev port of the device?

Matan

From: jiangheng (G) <jiangheng14@huawei.com<mailto:jiangheng14@huawei.com>>
Sent: Tuesday, 29 August 2023 12:59
To: users@dpdk.org<mailto:users@dpdk.org>; Matan Azrad <matan@mellanox.com<mailto:matan@mellanox.com>>
Cc: Caowangbao <caowangbao@huawei.com<mailto:caowangbao@huawei.com>>; Yanan (Euler) <yanan@huawei.com<mailto:yanan@huawei.com>>; liaichun <liaichun@huawei.com<mailto:liaichun@huawei.com>>
Subject: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)

External email: Use caution opening links or attachments


Hi matan:
I have enabled mlx5 hotplug based on the failsafe pmd:
"--vdev", "net_failsafe0,mac=04:e8:92:7d:dd:e4,dev(08:00.0)", "-b", "08:00.0"
08:00.0 is mlx5 NIC.
The app started successfully.

However, I had some problems verifying the hotplug function. Here are the steps:
echo 1 > /sys/bus/pci/devices/0000:08:00.0/remove
echo 1 > /sys/bus/pci/rescan

The app had the following error:
EAL: PCI device 0000:08:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1017 net_mlx5
net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented)
net_mlx5: probe of PCI device 0000:08:00.0 aborted after encountering an error: No such device
EAL: Driver cannot attach the device (08:00.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (No such device)


Look at the code it is through the ioctl function to obtain the MAC address.
I wonder if there are other configurations that have not been done, causing this problem

Thanks!

[-- Attachment #2: Type: text/html, Size: 10365 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-02  9:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29  9:58 net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented) jiangheng (G)
2023-08-31 11:16 jiangheng (G)
2023-09-02  9:01 jiangheng (G)

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).