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 57309A034C for ; Fri, 21 Jan 2022 09:51:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CB0D14272F; Fri, 21 Jan 2022 09:51:00 +0100 (CET) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130070.outbound.protection.outlook.com [40.107.13.70]) by mails.dpdk.org (Postfix) with ESMTP id D96D840042 for ; Thu, 20 Jan 2022 20:48:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LWo8q0RugJ/E7j9FLYx/VsEO550upqoQi6x4AUdNKneNBdgoVIxVeISeeVzDVHQ1AuliJgy0dzaKMttx+kocyDceDLJDeJeroI155XUYbH+Dg3PTYvX00wAntkPl8R1U+5MUFSXYMMI4ngA6NTMvFLyub+yOntGd5PI9hg9+jH737XqHOWyRIvXA67xUFOPWLl8d+D+4c4lO5idQaTsvihAZz1QdPAcY0YLKtuD9kP/bNcAx+eIHMAyPylCnDZMpJ8hhghNN9YsmZzre9gmZ6trQ7lvz7a/fZ6YfIqFE8qKExIJWY+Z2cSd96BjdOTn6yhayzpuGAsCiCJuwwRvACg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zKUFgg+E20X73HH3Iw2FQql7uPrcsKEnFNw97e98rMw=; b=GOzbM7kEFwgoJd+2sKlOsIbjKxVmfynTdrTJqWUg55BA7byVpa94gvLjNtZapL7pfj621JZw3kiPItCydyQFfaIPaak3oVyolOYAL/4oBH3uc/G6EjZ7glj5YB1hV7Wio7Sl2Dm/QhSrCaHRrZ8K+cnT9BO50Rub7Z9OLA9bhNH0I3nJ+fkBXdRDcdHugE5XB33vyYfMwTPQvnMQPQZrT9eDvum7OqtXMhzBBS+8vikxOIhgDyEQ4vPm7Q3ywNhO5v3RARn9lottDN0D5l+umu95nDnVB/8Y1ZvzlohBRXHuJNQ0PsQCntFPTHJ+UDuVsNeQOEGUfqL7Ke+wQ3JcqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zKUFgg+E20X73HH3Iw2FQql7uPrcsKEnFNw97e98rMw=; b=HTh4Qh5GqCbC4CRQlmg/vaBQhle1pUbGwMfZm769EiOQ6ZGSarPhjZEqOqHIZ+ISeDhF9X9+PdvalVOr9cX9PoDXtcHhBUMDjy78MGN/pQVwX2dm7XDV6LVB+/SrCrmHAnTOhlB6zmXrawrIMZu+/uzVq8Tk7qR0D+FaixzCKc0= Received: from AM5PR0701MB2324.eurprd07.prod.outlook.com (2603:10a6:203:e::13) by AM9PR07MB7923.eurprd07.prod.outlook.com (2603:10a6:20b:2fc::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.6; Thu, 20 Jan 2022 19:48:53 +0000 Received: from AM5PR0701MB2324.eurprd07.prod.outlook.com ([fe80::3c6f:39c1:e16b:e96e]) by AM5PR0701MB2324.eurprd07.prod.outlook.com ([fe80::3c6f:39c1:e16b:e96e%9]) with mapi id 15.20.4930.006; Thu, 20 Jan 2022 19:48:53 +0000 From: Rocio Dominguez To: Asaf Penso , "NBU-Contact-Thomas Monjalon (EXTERNAL)" CC: "users@dpdk.org" , Matan Azrad , Slava Ovsiienko , Raslan Darawsheh Subject: RE: net_mlx5: unable to recognize master/representors on the multiple IB devices Thread-Topic: net_mlx5: unable to recognize master/representors on the multiple IB devices Thread-Index: AdgJLQTmyQJM7lgBQqSyceNdxLJR4QBr0gyAAARnZ6AAI+HbQACUBFcNABidwCA= Date: Thu, 20 Jan 2022 19:48:53 +0000 Message-ID: References: <37327910.J2Yia2DhmK@thomas> In-Reply-To: Accept-Language: es-ES, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e6224789-cbe4-46e8-7178-08d9dc4de328 x-ms-traffictypediagnostic: AM9PR07MB7923:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3968; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C+i60avTZ8JKa0ZzoZQZreR9aqWQm+PF+ks1vomdlqBa4xENp85rjLdOwnMu0cdJ258ZqxzaD3ZTsZLxhKr6Ma2ahDmO5ISwFqqibuFgw8c5THXcHBqDiNEMSJKcwrJoyQ6r4qxAYu+wPLOb/j/W8O49hZ0VosqCWhA1vokSMHuBRm18m32cu3sQ8RnYyIwSVCQGmIograPJo/QADjS9/jUJW2TFHxLFf4LxL0kimsv5DeN9g7K6Q2fWZH9O9Bp+/cah0uTQJTFiM58sH49H+yGBllI5tllZ/4oxw9EnNgIyoHi+z7SCXopv+z9YvsEkGnEsNld3+tGPw/l4TFVBKWseU1iQObsFlAmYXFtIe6olIaYnFzS9O2ASxkIiKLpQ8PuUCRjqC23ryvX1BtrD+8lVn4Traj3+6YtRD0+tIdBxcXBqhUbALBXGWBW0VWXlkmZvzXU0jvkkkDvRqszHgh/usH0EZwR/SqHCPWXyWfSuSGsUj/+eADAGtKH5ljw8nqBcYGkp+JRmxZlDplNZGO+7m3AOy5JLv8cSzgxa43v2hfcuNUjTr943vNjhSB3tYbTiYRog12/btEOakMA7Y3Pj6j215CpszF/pBERnkGqfWXn/9rtkwFLg8tuC6WpgHKpHOQP9eAsf6tTu9QjO5j5N9z0xMQGo5XL217hSGFwp0yvW1+47arRXfsFxMvR3Myt5k3nKYDFnZJL76qHFsUEaLNo6BzlGOGcMv4+nyhyd3HOjIpcsDPCUZlyv8/lD x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0701MB2324.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8676002)(66946007)(66476007)(26005)(9326002)(2906002)(6506007)(7696005)(44832011)(66446008)(9686003)(52536014)(30864003)(33656002)(4326008)(5660300002)(55016003)(64756008)(53546011)(8936002)(186003)(82960400001)(66556008)(316002)(83380400001)(86362001)(122000001)(66574015)(71200400001)(76116006)(508600001)(110136005)(38100700002)(54906003)(38070700005)(20210929001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?eYxneq0dI7xwFPYJKYHjw/TnhEeVOOo7cD5SWprbhhUOMAnAxmozFGDhX5?= =?iso-8859-1?Q?+MT4CRsDtAs6B2e1C1yV8MYR6yAFRcg9qXv4LkHjWeYcmyz6MHX03VuV39?= =?iso-8859-1?Q?jtH7XqfS8FnyNhq6S7gGX8F5wJg/tFnSYNJ5qv9fqVUJiw5kgSDa5u8YNa?= =?iso-8859-1?Q?up/P90e43oqFYBdeydELcum4pGO/OkZLvf/EfYhvBH4GZeV9pwvPXEHd6y?= =?iso-8859-1?Q?cD5UprchCIm7EYKi5wecES+ztl32UI6raa7XXLU+YNJJf43Em+z4mouctV?= =?iso-8859-1?Q?NQ6wtOHyMqR5o/R2lpJ6ELeYRqCB6KRMaqAutbEe/T4MgRlq2NPLxfVyni?= =?iso-8859-1?Q?GAkTbxGX2blpQ1w9m9lxVdv1WLw9hZEG+R/U6a8nfzJNCBVTqrC2KNaZbO?= =?iso-8859-1?Q?SIC61A+HRR0c1SUZJ3ZWaXwHGiPweQyQpptnR1PZWAJxeQfGTuE91U5wNR?= =?iso-8859-1?Q?uOuxrJCjtIEkriyfGD8KAqEHEIbRbleJ8B7M92muI5e3rcRZe+20DeN1Fi?= =?iso-8859-1?Q?rIyiqItySIehCcC9tNVjVKs1F1/tQ0x0t6LbjOwHSlG643miQVup6jNzcr?= =?iso-8859-1?Q?Fu4XJT52iM0FNCYO7zPjlJmIu2AJ4PFhA299J+HQKw4H8SkNDq0RbykWMX?= =?iso-8859-1?Q?cV+va3IFWgB3h4HI9Tfaqm1U5ZZmAOQADAmvByI/Mge98HOpsq4cMl4/yt?= =?iso-8859-1?Q?p4x/FD/uAJHCgRN+YG7ZGL5yeDI/3dcbg8bmq2dOyKDfrQ18g3x5ov4U9i?= =?iso-8859-1?Q?abtcmUEX7zidc+dAs97uUqyHZPj+KcWsAEOyiHV8nP9pLyMPdSCrXgc/6V?= =?iso-8859-1?Q?H+TdmmM71dxgK6NF78HqXon1XjHXW3E+RciUAqbecBhat7HD7s3QYpX4+g?= =?iso-8859-1?Q?8kZFFRy438n4pDvr8eAv50K/X1NP2TX6W1PVUnxATI6ya0zCq/tGalcgx0?= =?iso-8859-1?Q?iYor8Hv09Ktebj/PfgNHofOmQuBMsJYfllbAdGOu7YBwmVsjC6XB7UlqFW?= =?iso-8859-1?Q?91q9NRE+Wstkf7txy5aXN9dG/bImVq8hiIJWtRS4fc9VCbbuS46Nri0rRp?= =?iso-8859-1?Q?J8OjTBHmajETXWNPR3pWTpjBhWy3BAD479SJtpi6gL5ZynCU267lFWClSf?= =?iso-8859-1?Q?3M2q6paNUAcEolzOKQUL97lEYYAbCyJ2CccAGN+pUGf5KD1ZOHDRX7xVuZ?= =?iso-8859-1?Q?1j2ZMeRuFQ6wz2+W15isJsoCfTAXElUkQG4ACE4QcC5gTIfNakaC1yoR9h?= =?iso-8859-1?Q?+wM3+Dl8Qyv6tX1USyOQYY4NVm7HTv6cCtwJinfISRxBBZih/RP7tbLhrF?= =?iso-8859-1?Q?CdaonSyroahzfZ6mzYULFEUevpjDyfIOaDL1RdpZ3QpXoEQoHHMhKYISu2?= =?iso-8859-1?Q?ikVNVYln1yZtyyPzAhyvY/vBw+p+U03TaxpDnjR0tLNwQylaNFlCD1Iq1B?= =?iso-8859-1?Q?pp5v4qI0LNGL+1CLF8Bxyl2g7iDJzT76vF83NeXvdnvRMAQy3/gLhGj4pq?= =?iso-8859-1?Q?9bZsN+C7U+ZYDbXk07gW9IGW7i3RicW3TGABS8CiatJWzLRDOslNRshzTl?= =?iso-8859-1?Q?1pnC7tuSyl4IU3Qby374ikvcHjZ8yMgFgoGMgy/B5wyNffZSWNxE4VXbH5?= =?iso-8859-1?Q?VihD6V9eDt1tKqbvJfQlGCoih8KceEgmIstifIxk8MZqTycVmD5mNqJ4AA?= =?iso-8859-1?Q?aIxVKwdl03C7wosKtUo1DRRyUVJoMR7muEGBiZzuOYlxGyRBiA3uTEyBIi?= =?iso-8859-1?Q?lm6A=3D=3D?= Content-Type: multipart/alternative; boundary="_000_AM5PR0701MB232467D8DC5917317AA6730B935A9AM5PR0701MB2324_" MIME-Version: 1.0 X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM5PR0701MB2324.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e6224789-cbe4-46e8-7178-08d9dc4de328 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2022 19:48:53.0838 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: xwjQmcPKx/wuOmmsJKDATEbmbwZQ3mf5wsDjWsbIztUeMb1Mm+HbJrrpYV92n6P8f2QkbHGA2Fm/J/xBQv1VxscPhcP+5FptlD4u5es1nis= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR07MB7923 X-Mailman-Approved-At: Fri, 21 Jan 2022 09:50:59 +0100 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_AM5PR0701MB232467D8DC5917317AA6730B935A9AM5PR0701MB2324_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Asaf, I have manually compile and install the DPDK 19.11.11. Executing testpmd in the Mellanox NICs VFs where I want to run my app gives= this result: pcgwpod009-c04:~/dpdk-stable-19.11.11 # ./x86_64-native-linux-gcc/app/testp= md -l 8-15 -n 4 -w d8:00.2 -w d8:00.3 -w d8:00.4 -w d8:00.5 -- --rxq=3D2 --= txq=3D2 -i EAL: Detected 96 lcore(s) EAL: Detected 2 NUMA nodes EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'VA' EAL: 2048 hugepages of size 2097152 reserved, but no mounted hugetlbfs foun= d for that size EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:d8:00.2 on NUMA socket 1 EAL: probe driver: 15b3:1014 net_mlx5 EAL: PCI device 0000:d8:00.3 on NUMA socket 1 EAL: probe driver: 15b3:1014 net_mlx5 EAL: PCI device 0000:d8:00.4 on NUMA socket 1 EAL: probe driver: 15b3:1014 net_mlx5 EAL: PCI device 0000:d8:00.5 on NUMA socket 1 EAL: probe driver: 15b3:1014 net_mlx5 Interactive-mode selected testpmd: create a new mbuf pool : n=3D203456, size=3D21= 76, socket=3D0 testpmd: preferred mempool ops selected: ring_mp_mc testpmd: create a new mbuf pool : n=3D203456, size=3D21= 76, socket=3D1 testpmd: preferred mempool ops selected: ring_mp_mc Configuring Port 0 (socket 1) Port 0: 36:FE:F0:D2:90:27 Configuring Port 1 (socket 1) Port 1: 72:AC:33:BF:0A:FA Configuring Port 2 (socket 1) Port 2: 1E:8D:81:60:43:E0 Configuring Port 3 (socket 1) Port 3: C2:3C:EA:94:06:B4 Checking link statuses... Done testpmd> But when I run my Data Plane app, the result is {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.609+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"7"},"mess= age":"[pktio_linux_packet_mmap_setup] block_size: 67108864, frame_size: 409= 6, block_nr: 1, frame_nr: 16384, mem_size: 67108864"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_libpio_init] CTRL: pci devices added: 1, vhost user devices ad= ded: 0"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"7"},"mess= age":"[add_pio_pci_devices_from_env_to_config] pci device from PCIDEVICE_ME= LLANOX_COM_MLNX_SRIOV_NETDEVICE=3D0000:d8:00.5 found"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_libpio_init] CTRL: requesting 1024 MiB of hugepage memory for = DPDK"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] USER1: DPDK version: DPDK 20.08.0"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] USER1: rte_eal_init() args: pio -m 1024 -n 4 --no-telemetry --f= ile-prefix pio-0 --master-lcore=3D4 --lcores=3D4@(4) --pci-whitelist 0000:d= 8:00.5 --base-virtaddr=3D0x200000000 --iova-mode=3Dva --legacy-mem --no-shc= onf "} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.618+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Detected 96 lcore(s)"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.618+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Detected 2 NUMA nodes"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.636+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Selected IOVA mode 'VA'"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: 2048 hugepages of size 2097152 reserved, but no mounted hu= getlbfs found for that size"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Probing VFIO support..."} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: cannot open VFIO container, error 2 (No such file or dir= ectory)"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: VFIO support could not be initialized"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.567+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Probe PCI driver: mlx5_pci (15b3:1014) device: 0000:d8:00.= 5 (socket 1)"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] net_mlx5: unable to recognize master/representors on the multip= le IB devices"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] common_mlx5: Failed to load driver =3D net_mlx5."} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Requested device 0000:d8:00.5 cannot be used"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] EAL: Bus (pci) probe failed."} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pio] USER1: ports init fail in DPDK, expect 1 ports, actual 0 ports.= "} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= error","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mes= sage":"[pktio_libpio_init] No network ports could be enabled!"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_init_cpu] libpio packet module is NOT initialized"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_init_cpu] pktsock packet module is NOT initialized"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_init_cpu] linux packet module is initialized"} {"version":"0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00","severity":"= info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id":"6"},"mess= age":"[pktio_init_cpu] tap packet module is NOT initialized"} Any idea on what could be the problem? Thanks, Roc=EDo From: Asaf Penso Sent: Thursday, January 20, 2022 8:17 AM To: Rocio Dominguez ; NBU-Contact-Thomas Monj= alon (EXTERNAL) Cc: users@dpdk.org; Matan Azrad ; Slava Ovsiienko ; Raslan Darawsheh Subject: Re: net_mlx5: unable to recognize master/representors on the multi= ple IB devices Although inbox drivers come with a pre installed DPDK, you can manually dow= nload, compile, install, and work with whatever version you wish. Let us know the results, and we'll continue from there. Regards, Asaf Penso ________________________________ From: Rocio Dominguez > Sent: Monday, January 17, 2022 10:20:58 PM To: Asaf Penso >; NBU-Contact-Tho= mas Monjalon (EXTERNAL) > Cc: users@dpdk.org >; Matan Azrad >; Slava Ovsi= ienko >; Raslan Daraw= sheh > Subject: RE: net_mlx5: unable to recognize master/representors on the multi= ple IB devices Hi Asaf, Thanks for the prompt answer. I have checked that the latest 19.11 LTS is 19.11.11, but in OpenSUSE repos= itories the corresponding RPM package for SLES 15 SP2 is not available, the= latest one is DPDK 19.11.10. I have installed it but the problem persists. It's probably solved in 19.11= .11. There is a RPM package in SLES 15 SP3 for DPDK 20.11.3, which is LTS also, = not sure if it could be a problem to install it in SLES 15 SP2. I will try = it anyway. Also I will try to find other way to load the 19.11.11 in SLES 15 SP2 apart= from using RPM or zipper, any suggestion is appreciated. Thanks, Roc=EDo -----Original Message----- From: Asaf Penso > Sent: Sunday, January 16, 2022 4:31 PM To: NBU-Contact-Thomas Monjalon (EXTERNAL) >; Rocio Dominguez > Cc: users@dpdk.org; Matan Azrad >; Slava Ovsiienko >; Raslan Darawsheh > Subject: RE: net_mlx5: unable to recognize master/representors on the multi= ple IB devices Hello Rocio, IIRC, there was a fix in a recent stable version. Would you please try taking latest 19.11 LTS and tell whether you still see= the issue? Regards, Asaf Penso >-----Original Message----- >From: Thomas Monjalon > >Sent: Sunday, January 16, 2022 3:24 PM >To: Rocio Dominguez > >Cc: users@dpdk.org; Matan Azrad >; Slava Ovsiienko >>; Raslan Darawsheh = > >Subject: Re: net_mlx5: unable to recognize master/representors on the >multiple IB devices > >+Cc mlx5 experts > > >14/01/2022 11:10, Rocio Dominguez: >> Hi, >> >> I'm doing a setup with Mellanox ConnectX-4 (MCX416A-CCA) NICs. >> >> I'm using: >> >> OS SLES 15 SP2 >> DPDK 19.11.4 (the official supported version for SLES 15 SP2) >> MLNX_OFED_LINUX-5.5-1.0.3.2-sles15sp2-x86_64 (the latest one) >> Mellanox adapters firmware 12.28.2006 (corresponding to this >> MLNX_OFED version) kernel 5.3.18-24.34-default >> >> >> This is my SRIOV configuration for DPDK capable PCI slots: >> >> { >> "resourceName": "mlnx_sriov_netdevice", >> "resourcePrefix": "mellanox.com", >> "isRdma": true, >> "selectors": { >> "vendors": ["15b3"], >> "devices": ["1014"], >> "drivers": ["mlx5_core"], >> "pciAddresses": ["0000:d8:00.2", "0000:d8:00.3", >> "0000:d8:00.4", >"0000:d8:00.5"], >> "isRdma": true >> } >> >> The sriov device plugin starts without problems, the devices are >> correctly >allocated: >> >> { >> "cpu": "92", >> "ephemeral-storage": "419533922385", >> "hugepages-1Gi": "8Gi", >> "hugepages-2Mi": "4Gi", >> "intel.com/intel_sriov_dpdk": "0", >> "intel.com/sriov_cre": "3", >> "mellanox.com/mlnx_sriov_netdevice": "4", >> "mellanox.com/sriov_dp": "0", >> "memory": "183870336Ki", >> "pods": "110" >> } >> >> The Mellanox NICs are binded to the kernel driver mlx5_core: >> >> pcgwpod009-c04:~ # dpdk-devbind --status >> >> Network devices using kernel driver >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> 0000:18:00.0 'Ethernet Controller 10G X550T 1563' if=3Dem1 drv=3Dixgbe >> unused=3Dvfio-pci >> 0000:18:00.1 'Ethernet Controller 10G X550T 1563' if=3Dem2 drv=3Dixgbe >> unused=3Dvfio-pci >> 0000:19:00.0 'Ethernet Controller 10G X550T 1563' if=3Dem3 drv=3Dixgbe >> unused=3Dvfio-pci >> 0000:19:00.1 'Ethernet Controller 10G X550T 1563' if=3Dem4 drv=3Dixgbe >> unused=3Dvfio-pci >> 0000:3b:00.0 'MT27700 Family [ConnectX-4] 1013' if=3Denp59s0f0 >> drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:3b:00.1 'MT27700 Family [ConnectX-4] 1013' if=3Denp59s0f1 >> drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:5e:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' >> if=3Dp3p1 drv=3Dixgbe unused=3Dvfio-pci >> 0000:5e:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' >> if=3Dp3p2 drv=3Dixgbe unused=3Dvfio-pci >> 0000:5e:10.0 '82599 Ethernet Controller Virtual Function 10ed' if=3D >> drv=3Dixgbevf unused=3Dvfio-pci >> 0000:5e:10.2 '82599 Ethernet Controller Virtual Function 10ed' >> if=3Dp3p1_1 drv=3Dixgbevf unused=3Dvfio-pci >> 0000:5e:10.4 '82599 Ethernet Controller Virtual Function 10ed' if=3D >> drv=3Dixgbevf unused=3Dvfio-pci >> 0000:5e:10.6 '82599 Ethernet Controller Virtual Function 10ed' >> if=3Dp3p1_3 drv=3Dixgbevf unused=3Dvfio-pci >> 0000:af:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' >> if=3Dp4p1 drv=3Dixgbe unused=3Dvfio-pci >> 0000:af:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb' >> if=3Dp4p2 drv=3Dixgbe unused=3Dvfio-pci >> 0000:d8:00.0 'MT27700 Family [ConnectX-4] 1013' if=3Denp216s0f0 >> drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:d8:00.1 'MT27700 Family [ConnectX-4] 1013' if=3Denp216s0f1 >> drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:d8:00.2 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f2 drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:d8:00.3 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f3 drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:d8:00.4 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f4 drv=3Dmlx5_core unused=3Dvfio-pci >> 0000:d8:00.5 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f5 drv=3Dmlx5_core unused=3Dvfio-pci >> >> The interfaces are up: >> >> pcgwpod009-c04:~ # ibdev2netdev -v >> 0000:3b:00.0 mlx5_0 (MT4115 - MT1646K01301) CX416A - ConnectX-4 >QSFP28 >> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp59s0f0 (Up) >> 0000:3b:00.1 mlx5_1 (MT4115 - MT1646K01301) CX416A - ConnectX-4 >QSFP28 >> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp59s0f1 (Up) >> 0000:d8:00.0 mlx5_2 (MT4115 - MT1646K00538) CX416A - ConnectX-4 >QSFP28 >> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp216s0f0 (Up) >> 0000:d8:00.1 mlx5_3 (MT4115 - MT1646K00538) CX416A - ConnectX-4 >QSFP28 >> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp216s0f1 (Up) >> 0000:d8:00.2 mlx5_4 (MT4116 - NA) fw 12.28.2006 port 1 (ACTIVE) =3D=3D> >> enp216s0f2 (Up) >> 0000:d8:00.3 mlx5_5 (MT4116 - NA) fw 12.28.2006 port 1 (ACTIVE) =3D=3D> >> enp216s0f3 (Up) >> 0000:d8:00.4 mlx5_6 (MT4116 - NA) fw 12.28.2006 port 1 (ACTIVE) =3D=3D> >> enp216s0f4 (Up) >> 0000:d8:00.5 mlx5_7 (MT4116 - NA) fw 12.28.2006 port 1 (ACTIVE) =3D=3D> >> enp216s0f5 (Up) pcgwpod009-c04:~ # >> >> >> But when I run my application the Mellanox adapters are probed and I >obtain the following error: >> >> {"proc_id":"6"},"message":"[pio] EAL: Probe PCI driver: mlx5_pci >> (15b3:1014) device: 0000:d8:00.4 (socket 1)"} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.826+00:00","sever >> i >> ty":"info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id": >> "6"},"message":"[pio] net_mlx5: unable to recognize >> master/representors on the multiple IB devices"} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.826+00:00","sever >> i >> ty":"info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id": >> "6"},"message":"[pio] common_mlx5: Failed to load driver =3D >> net_mlx5."} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.826+00:00","sever >> i >> ty":"info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id": >> "6"},"message":"[pio] EAL: Requested device 0000:d8:00.4 cannot be >> used"} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.826+00:00","sever >> i >> ty":"info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id": >> "6"},"message":"[pio] EAL: Bus (pci) probe failed."} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.890+00:00","sever >> i >> ty":"info","service_id":"eric-pc-up-data-plane","metadata":{"proc_id": >> "6"},"message":"[pio] USER1: ports init fail in DPDK, expect 1 ports, >> actual 0 ports."} >> {"version":"0.2.0","timestamp":"2022-01-14T09:51:39.890+00:00","sever >> i >> ty":"error","service_id":"eric-pc-up-data-plane","metadata":{"proc_id" >> :"6"},"message":"[pktio_libpio_init] No network ports could be >> enabled!"} >> >> Could you please help me with this issue? >> >> >> Thanks, >> >> Roc=EDo >> > > > > --_000_AM5PR0701MB232467D8DC5917317AA6730B935A9AM5PR0701MB2324_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi Asaf,

 

I have manually compile and install the DPDK 19.11.1= 1.

 

Executing testpmd in the Mellanox NICs VFs where I w= ant to run my app gives this result:

 

pcgwpod009-c04:~/dpdk-sta= ble-19.11.11 # ./x86_64-native-linux-gcc/app/testpmd -l 8-15 -n 4 -w d8:00.= 2 -w d8:00.3 -w d8:00.4 -w d8:00.5 -- --rxq=3D2 --txq=3D2 -i

EAL: Detected 96 lcore(s)=

EAL: Detected 2 NUMA node= s

EAL: Multi-process socket= /var/run/dpdk/rte/mp_socket

EAL: Selected IOVA mode '= VA'

EAL: 2048 hugepages of si= ze 2097152 reserved, but no mounted hugetlbfs found for that size

EAL: Probing VFIO support= ...

EAL: VFIO support initial= ized

EAL: PCI device 0000:d8:0= 0.2 on NUMA socket 1

EAL:   probe dr= iver: 15b3:1014 net_mlx5

EAL: PCI device 0000:d8:0= 0.3 on NUMA socket 1

EAL:   probe dr= iver: 15b3:1014 net_mlx5

EAL: PCI device 0000:d8:0= 0.4 on NUMA socket 1

EAL:   probe dr= iver: 15b3:1014 net_mlx5

EAL: PCI device 0000:d8:0= 0.5 on NUMA socket 1

EAL:   probe dr= iver: 15b3:1014 net_mlx5

Interactive-mode selected=

testpmd: create a new mbu= f pool <mbuf_pool_socket_0>: n=3D203456, size=3D2176, socket=3D0=

testpmd: preferred mempoo= l ops selected: ring_mp_mc

testpmd: create a new mbu= f pool <mbuf_pool_socket_1>: n=3D203456, size=3D2176, socket=3D1=

testpmd: preferred mempoo= l ops selected: ring_mp_mc

Configuring Port 0 (socke= t 1)

Port 0: 36:FE:F0:D2:90:27=

Configuring Port 1 (socke= t 1)

Port 1: 72:AC:33:BF:0A:FA=

Configuring Port 2 (socke= t 1)

Port 2: 1E:8D:81:60:43:E0=

Configuring Port 3 (socke= t 1)

Port 3: C2:3C:EA:94:06:B4=

Checking link statuses...=

Done

testpmd>

 

But when I run my Data Plane app, the result is

 

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.609+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"7&qu= ot;},"message":"[pktio_linux_packet_mmap_setup] block_size: = 67108864, frame_size: 4096, block_nr: 1, frame_nr: 16384, mem_size: 67108864"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_libpio_init] CTRL: pci devices added:= 1, vhost user devices added: 0"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"7&qu= ot;},"message":"[add_pio_pci_devices_from_env_to_config] pci= device from PCIDEVICE_MELLANOX_COM_MLNX_SRIOV_NETDEVICE=3D0000:d8:00.5 found"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_libpio_init] CTRL: requesting 1024 Mi= B of hugepage memory for DPDK"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] USER1: DPDK version: DPDK 20.08.0"= ;}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.610+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] USER1: rte_eal_init() args: pio -m 102= 4 -n 4 --no-telemetry --file-prefix pio-0 --master-lcore=3D4 --lcores=3D4@(4) --pci-whitelist 00= 00:d8:00.5 --base-virtaddr=3D0x200000000 --iova-mode=3Dva --legacy-mem --no= -shconf "}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.618+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Detected 96 lcore(s)"}<= /o:p>

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.618+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Detected 2 NUMA nodes"}=

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.636+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Selected IOVA mode 'VA'"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: 2048 hugepages of size 2097152 re= served, but no mounted hugetlbfs found for that size"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Probing VFIO support..."}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL:   cannot open VFIO cont= ainer, error 2 (No such file or directory)"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:16.637+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: VFIO support could not be initial= ized"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.567+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Probe PCI driver: mlx5_pci (15b3:= 1014) device: 0000:d8:00.5 (socket 1)"}

{"version":&= quot;0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00&= quot;,"severity":"info","service_id":"er= ic-pc-up-data-plane","metadata":{"proc_id":"6= "},"message":"[pio] net_mlx5: unable to recognize maste= r/representors on the multiple IB devices"}

{"version":&= quot;0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00&= quot;,"severity":"info","service_id":"er= ic-pc-up-data-plane","metadata":{"proc_id":"6= "},"message":"[pio] common_mlx5: Failed to load driver = =3D net_mlx5."}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Requested device 0000:d8:00.5 can= not be used"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.569+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] EAL: Bus (pci) probe failed."}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pio] USER1: ports init fail in DPDK, expect= 1 ports, actual 0 ports."}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"error","service_id":"eric= -pc-up-data-plane","metadata":{"proc_id":"6&q= uot;},"message":"[pktio_libpio_init] No network ports could = be enabled!"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_init_cpu] libpio packet module is NOT= initialized"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_init_cpu] pktsock packet module is NO= T initialized"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_init_cpu] linux packet module is init= ialized"}

{"version":&quo= t;0.2.0","timestamp":"2022-01-20T19:19:17.631+00:00&quo= t;,"severity":"info","service_id":"eric-= pc-up-data-plane","metadata":{"proc_id":"6&qu= ot;},"message":"[pktio_init_cpu] tap packet module is NOT in= itialized"}

 

Any idea on what could be the problem?

 

Thanks,

 

Roc=EDo

 

 

From: Asaf Penso <asafp@nvidia.com> Sent: Thursday, January 20, 2022 8:17 AM
To: Rocio Dominguez <rocio.dominguez@ericsson.com>; NBU-Contac= t-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>
Cc: users@dpdk.org; Matan Azrad <matan@nvidia.com>; Slava Ovsi= ienko <viacheslavo@nvidia.com>; Raslan Darawsheh <rasland@nvidia.c= om>
Subject: Re: net_mlx5: unable to recognize master/representors on th= e multiple IB devices

 

Although inbox drivers come with a pre installed DPD= K, you can manually download, compile, install, and work with whatever vers= ion you wish.

 

Let us know the results, and we'll continue from the= re.

 

Regards,

Asaf Penso


From: Rocio Dominguez <rocio.dominguez@ericsson.com>
Sent: Monday, January 17, 2022 10:20:58 PM
To: Asaf Penso <asafp@nvidia.= com>; NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas@monjalon.net>
Cc: users@dpdk.org <users@dpdk.org>; Matan Azrad <matan@nvidia.com>; Slava Ovsiienko <= viacheslavo@nvidia.com>; Raslan Darawsheh <rasland@nvidia.= com>
Subject: RE: net_mlx5: unable to recognize master/representors on th= e multiple IB devices

 

Hi Asaf,

Thanks for the prompt answer.

I have checked that the latest 19.11 LTS is 19.11.11, but in OpenSUSE repos= itories the corresponding RPM package for SLES 15 SP2 is not available, the= latest one is DPDK 19.11.10.

I have installed it but the problem persists. It's probably solved in 19.11= .11.

There is a RPM package in SLES 15 SP3 for DPDK 20.11.3, which is LTS also, = not sure if it could be a problem to install it in SLES 15 SP2. I will try = it anyway.

Also I will try to find other way to load the 19.11.11 in SLES 15 SP2 apart= from using RPM or zipper, any suggestion is appreciated.

Thanks,

Roc=EDo

-----Original Message-----
From: Asaf Penso <asafp@nvidia.com>
Sent: Sunday, January 16, 2022 4:31 PM
To: NBU-Contact-Thomas Monjalon (EXTERNAL) <
thomas@monjalon.net>; Rocio Dominguez <rocio.dominguez@ericsson.com>
Cc: users@dpdk.org; Matan Azrad <<= a href=3D"mailto:matan@nvidia.com">matan@nvidia.com>; Slava Ovsiienk= o <viacheslavo@nvidia.com&= gt;; Raslan Darawsheh <rasland@nvi= dia.com>
Subject: RE: net_mlx5: unable to recognize master/representors on the multi= ple IB devices

Hello Rocio,
IIRC, there was a fix in a recent stable version.
Would you please try taking latest 19.11 LTS and tell whether you still see= the issue?

Regards,
Asaf Penso

>-----Original Message-----
>From: Thomas Monjalon <thomas= @monjalon.net>
>Sent: Sunday, January 16, 2022 3:24 PM
>To: Rocio Dominguez <rocio.dominguez@ericsson.com>
>Cc: users@dpdk.org; Matan Azrad &= lt;matan@nvidia.com>; Slava Ovsi= ienko
><viacheslavo@nvidia.com>; Raslan Darawsheh <rasland@n= vidia.com>
>Subject: Re: net_mlx5: unable to recognize master/representors on the <= br> >multiple IB devices
>
>+Cc mlx5 experts
>
>
>14/01/2022 11:10, Rocio Dominguez:
>> Hi,
>>
>> I'm doing a setup with Mellanox ConnectX-4 (MCX416A-CCA) NICs.
>>
>> I'm using:
>>
>> OS SLES 15 SP2
>> DPDK 19.11.4 (the official supported version for SLES 15 SP2)
>> MLNX_OFED_LINUX-5.5-1.0.3.2-sles15sp2-x86_64 (the latest one)
>> Mellanox adapters firmware 12.28.2006 (corresponding to this
>> MLNX_OFED version) kernel 5.3.18-24.34-default
>>
>>
>> This is my SRIOV configuration for DPDK capable PCI slots:
>>
>>           &= nbsp; {
>>           &= nbsp;     "resourceName": "mlnx_sriov_ne= tdevice",
>>           &= nbsp;     "resourcePrefix": "mellanox.co= m",
>>           &= nbsp;     "isRdma": true,
>>           &= nbsp;     "selectors": {
>>           &= nbsp;         "vendors": = ["15b3"],
>>           &= nbsp;         "devices": = ["1014"],
>>           &= nbsp;         "drivers": = ["mlx5_core"],
>>           &= nbsp;         "pciAddresses&qu= ot;: ["0000:d8:00.2", "0000:d8:00.3",
>> "0000:d8:00.4",
>"0000:d8:00.5"],
>>           &= nbsp;         "isRdma": t= rue
>>           &= nbsp;     }
>>
>> The sriov device plugin starts without problems, the devices are <= br> >> correctly
>allocated:
>>
>> {
>>   "cpu": "92",
>>   "ephemeral-storage": "419533922385"= ;,
>>   "hugepages-1Gi": "8Gi",
>>   "hugepages-2Mi": "4Gi",
>>   "intel.com/intel_sriov_dpdk": "0",=
>>   "intel.com/sriov_cre": "3",
>>   "mellanox.com/mlnx_sriov_netdevice": "4= ",
>>   "mellanox.com/sriov_dp": "0",
>>   "memory": "183870336Ki",
>>   "pods": "110"
>> }
>>
>> The Mellanox NICs are binded to the kernel driver mlx5_core:
>>
>> pcgwpod009-c04:~ # dpdk-devbind --status
>>
>> Network devices using kernel driver
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> 0000:18:00.0 'Ethernet Controller 10G X550T 1563' if=3Dem1 drv=3Di= xgbe
>> unused=3Dvfio-pci
>> 0000:18:00.1 'Ethernet Controller 10G X550T 1563' if=3Dem2 drv=3Di= xgbe
>> unused=3Dvfio-pci
>> 0000:19:00.0 'Ethernet Controller 10G X550T 1563' if=3Dem3 drv=3Di= xgbe
>> unused=3Dvfio-pci
>> 0000:19:00.1 'Ethernet Controller 10G X550T 1563' if=3Dem4 drv=3Di= xgbe
>> unused=3Dvfio-pci
>> 0000:3b:00.0 'MT27700 Family [ConnectX-4] 1013' if=3Denp59s0f0 >> drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:3b:00.1 'MT27700 Family [ConnectX-4] 1013' if=3Denp59s0f1 >> drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:5e:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'=
>> if=3Dp3p1 drv=3Dixgbe unused=3Dvfio-pci
>> 0000:5e:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'=
>> if=3Dp3p2 drv=3Dixgbe unused=3Dvfio-pci
>> 0000:5e:10.0 '82599 Ethernet Controller Virtual Function 10ed' if= =3D
>> drv=3Dixgbevf unused=3Dvfio-pci
>> 0000:5e:10.2 '82599 Ethernet Controller Virtual Function 10ed'
>> if=3Dp3p1_1 drv=3Dixgbevf unused=3Dvfio-pci
>> 0000:5e:10.4 '82599 Ethernet Controller Virtual Function 10ed' if= =3D
>> drv=3Dixgbevf unused=3Dvfio-pci
>> 0000:5e:10.6 '82599 Ethernet Controller Virtual Function 10ed'
>> if=3Dp3p1_3 drv=3Dixgbevf unused=3Dvfio-pci
>> 0000:af:00.0 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'=
>> if=3Dp4p1 drv=3Dixgbe unused=3Dvfio-pci
>> 0000:af:00.1 '82599ES 10-Gigabit SFI/SFP+ Network Connection 10fb'=
>> if=3Dp4p2 drv=3Dixgbe unused=3Dvfio-pci
>> 0000:d8:00.0 'MT27700 Family [ConnectX-4] 1013' if=3Denp216s0f0 >> drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:d8:00.1 'MT27700 Family [ConnectX-4] 1013' if=3Denp216s0f1 >> drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:d8:00.2 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f2 drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:d8:00.3 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f3 drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:d8:00.4 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f4 drv=3Dmlx5_core unused=3Dvfio-pci
>> 0000:d8:00.5 'MT27700 Family [ConnectX-4 Virtual Function] 1014' >> if=3Denp216s0f5 drv=3Dmlx5_core unused=3Dvfio-pci
>>
>> The interfaces are up:
>>
>> pcgwpod009-c04:~ # ibdev2netdev -v
>> 0000:3b:00.0 mlx5_0 (MT4115 - MT1646K01301) CX416A - ConnectX-4 >QSFP28
>> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp59s0f0 (Up)
>> 0000:3b:00.1 mlx5_1 (MT4115 - MT1646K01301) CX416A - ConnectX-4 >QSFP28
>> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp59s0f1 (Up)
>> 0000:d8:00.0 mlx5_2 (MT4115 - MT1646K00538) CX416A - ConnectX-4 >QSFP28
>> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp216s0f0 (Up)
>> 0000:d8:00.1 mlx5_3 (MT4115 - MT1646K00538) CX416A - ConnectX-4 >QSFP28
>> fw 12.28.2006 port 1 (ACTIVE) =3D=3D> enp216s0f1 (Up)
>> 0000:d8:00.2 mlx5_4 (MT4116 - NA)  fw 12.28.2006 port 1 (ACTI= VE) =3D=3D>
>> enp216s0f2 (Up)
>> 0000:d8:00.3 mlx5_5 (MT4116 - NA)  fw 12.28.2006 port 1 (ACTI= VE) =3D=3D>
>> enp216s0f3 (Up)
>> 0000:d8:00.4 mlx5_6 (MT4116 - NA)  fw 12.28.2006 port 1 (ACTI= VE) =3D=3D>
>> enp216s0f4 (Up)
>> 0000:d8:00.5 mlx5_7 (MT4116 - NA)  fw 12.28.2006 port 1 (ACTI= VE) =3D=3D>
>> enp216s0f5 (Up) pcgwpod009-c04:~ #
>>
>>
>> But when I run my application the Mellanox adapters are probed and= I
>obtain the following error:
>>
>> {"proc_id":"6"},"message":"[pio= ] EAL: Probe PCI driver: mlx5_pci
>> (15b3:1014) device: 0000:d8:00.4 (socket 1)"}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.826+00:00","sever
>> i
>> ty":"info","service_id":"eric-pc-up-= data-plane","metadata":{"proc_id":
>> "6"},"message":"[pio] net_mlx5: unable to= recognize
>> master/representors on the multiple IB devices"}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.826+00:00","sever
>> i
>> ty":"info","service_id":"eric-pc-up-= data-plane","metadata":{"proc_id":
>> "6"},"message":"[pio] common_mlx5: Failed= to load driver =3D
>> net_mlx5."}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.826+00:00","sever
>> i
>> ty":"info","service_id":"eric-pc-up-= data-plane","metadata":{"proc_id":
>> "6"},"message":"[pio] EAL: Requested devi= ce 0000:d8:00.4 cannot be
>> used"}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.826+00:00","sever
>> i
>> ty":"info","service_id":"eric-pc-up-= data-plane","metadata":{"proc_id":
>> "6"},"message":"[pio] EAL: Bus (pci) prob= e failed."}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.890+00:00","sever
>> i
>> ty":"info","service_id":"eric-pc-up-= data-plane","metadata":{"proc_id":
>> "6"},"message":"[pio] USER1: ports init f= ail in DPDK, expect 1 ports,
>> actual 0 ports."}
>> {"version":"0.2.0","timestamp":"= ;2022-01-14T09:51:39.890+00:00","sever
>> i
>> ty":"error","service_id":"eric-pc-up= -data-plane","metadata":{"proc_id"
>> :"6"},"message":"[pktio_libpio_init] No n= etwork ports could be
>> enabled!"}
>>
>> Could you please help me with this issue?
>>
>>
>> Thanks,
>>
>> Roc=EDo
>>
>
>
>
>

--_000_AM5PR0701MB232467D8DC5917317AA6730B935A9AM5PR0701MB2324_--