From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A833341F53 for ; Tue, 29 Aug 2023 11:58:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F90840293; Tue, 29 Aug 2023 11:58:40 +0200 (CEST) Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by mails.dpdk.org (Postfix) with ESMTP id 6D9D740279 for ; Tue, 29 Aug 2023 11:58:38 +0200 (CEST) Received: from kwepemm000002.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RZjTm4Q5qzLntj; Tue, 29 Aug 2023 17:55:24 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by kwepemm000002.china.huawei.com (7.193.23.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Tue, 29 Aug 2023 17:58:35 +0800 Received: from dggpeml500020.china.huawei.com ([7.185.36.88]) by dggpeml500020.china.huawei.com ([7.185.36.88]) with mapi id 15.01.2507.031; Tue, 29 Aug 2023 17:58:35 +0800 From: "jiangheng (G)" To: "users@dpdk.org" , "matan@mellanox.com" CC: Caowangbao , "Yanan (Euler)" , liaichun Subject: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented) Thread-Topic: net_mlx5: port 2 cannot get MAC address, is mlx5_en loaded? (errno: Function not implemented) Thread-Index: AdnaXiMtcWlmi/FeTLeggfyOkNTGHg== Date: Tue, 29 Aug 2023 09:58:35 +0000 Message-ID: <72cdc44a3e254c8a95b6d597065a120c@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.136.117.195] Content-Type: multipart/alternative; boundary="_000_72cdc44a3e254c8a95b6d597065a120chuaweicom_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org --_000_72cdc44a3e254c8a95b6d597065a120chuaweicom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi matan: I have enabled mlx5 hotplug based on the failsafe pmd: "--vdev", "net_failsafe0,mac=3D04:e8:92:7d:dd:e4,dev(08:00.0)", "-b", "08:0= 0.0" 08:00.0 is mlx5 NIC. The app started successfully. However, I had some problems verifying the hotplug function. Here are the s= teps: 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: Functio= n not implemented) net_mlx5: probe of PCI device 0000:08:00.0 aborted after encountering an er= ror: 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! --_000_72cdc44a3e254c8a95b6d597065a120chuaweicom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi matan:

I have enabled mlx5 hotplug bas= ed on the failsafe pmd:

"--vdev", "net_f= ailsafe0,mac=3D04: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 ve= rifying the hotplug function. Here are the steps:

echo 1 > /sys/bus/pci/device= s/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 0= 000:08:00.0 aborted after encountering an error: No such device<= /span>

EAL: Driver cannot attach the d= evice (08:00.0)

EAL: Failed to attach device on= primary process

net_failsafe: sub_device 0 prob= e 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 con= figurations that have not been done, causing this problem=

 

Thanks!

--_000_72cdc44a3e254c8a95b6d597065a120chuaweicom_--