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 1CF3FA0351 for ; Tue, 22 Feb 2022 18:56:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A89BC40DF6; Tue, 22 Feb 2022 18:56:51 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2068.outbound.protection.outlook.com [40.107.95.68]) by mails.dpdk.org (Postfix) with ESMTP id BF8C940DF4 for ; Tue, 22 Feb 2022 18:56:49 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mIsISmdotiFnrJkRBm3nnytSUUZQ+IYbuG9/fV5qinJKMV0jTK827coieUekXqitdk2gVw8okNJ2eKfpxDN4hIt8z20l3LBqU875k5IrZhHEd12V6iVegwnffqQdQl7ox+LY/rTxB/dlM50utWELHBPx+3BOxgEL06kG9o0CvrLSPto5mgytW2LcZOfxn7qblOgm1KjtSVSjOuM4vhS0dZXZhxlRfgEEE9EP/EtEoeBIUCs5ckZP4swyIeA9ga5Wy+umNNs9pCepyvgWEzaw2eRXTDT3GVyoAhQ5fUlwnGG+9aI9BJWXpjbpps58zUU7DlWzR6UP+CLg+HFLEh+sfg== 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=o2hfmlOyiR2MjwHA5TVmz2V9QVArzDZ5CMwyKIYhHQo=; b=KlMblKCmHuToFHfyHy1RcLKWIn2LgQuNf4MZOBErpRP2JBe2BAHmGSqhLuWS0/XQIF2SQS17j7prYOFD51gmMgoB2YnkTjsZgxzUktDcc/vcTlgVH5wffhnxg/ZCbnWRmst7kkjWNc1V5doi98JQs+fY++BUHPWDxjJBPhMl3HotNCil0nOSoQUVRfCSA7EBvN1OCWmbDDA//rTwH//MXqILtKn0zOuoDDR2PHJ2QJZw56qkGZyDpFUsvzDOxNwFgDRq63ifCJpxcy1Tm7T7UVq27ohgcGaAZJiEbjZIQ5ZK7TYxNl7nKDXPgU/o4wc5svCMJ7hQVp1rJqQ8P8m+gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o2hfmlOyiR2MjwHA5TVmz2V9QVArzDZ5CMwyKIYhHQo=; b=fZ3H4x8Hv7gIKMou3i/cJpLTSfcmXGUIXM1C+jAbQohOk2CXYS7qUyUIY3pP+H4Q8QAmkncFl0NvPFhUgvqRIPxJnEMl5fZkwGa5XDbN2HvDmpYKqfFQS0xgQo1Lllt0XpBtcuix2f3ey+GJ7pJlUEi4FAlI2tQyOLEy5PJPfUluyY7Sw0yaa4h0iOZYZYeBFAfArPJboBt5OHDeqAWUm0/Z3K5IJWhsfxTYgWNYYg33t5CwxZyiQDQk7/n1NlAgezDrUNq0gN450FKGdtEFnY4E05cdi9O0pqO7JrR5y2Pr/lW/Oi2PMbPgoaL7BY22CO2iaLZPza4zRwhrHj8Pog== Received: from DM5PR1201MB2555.namprd12.prod.outlook.com (2603:10b6:3:ea::14) by BN8PR12MB3105.namprd12.prod.outlook.com (2603:10b6:408:67::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.21; Tue, 22 Feb 2022 17:56:47 +0000 Received: from DM5PR1201MB2555.namprd12.prod.outlook.com ([fe80::c12:893f:fdce:553c]) by DM5PR1201MB2555.namprd12.prod.outlook.com ([fe80::c12:893f:fdce:553c%12]) with mapi id 15.20.4995.027; Tue, 22 Feb 2022 17:56:46 +0000 From: Asaf Penso To: Haider Ali , Muhammad Zain-ul-Abideen CC: users Subject: RE: Mellanox VF failed to start with hairpin queues Thread-Topic: Mellanox VF failed to start with hairpin queues Thread-Index: AQHYFEIsq9IaK5+PG0eHJCkOUx0aEqyDW5mAgATD/xSAF+K6AA== Date: Tue, 22 Feb 2022 17:56:46 +0000 Message-ID: References: In-Reply-To: Accept-Language: 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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 237f38ec-534b-45ae-f318-08d9f62cb1b2 x-ms-traffictypediagnostic: BN8PR12MB3105:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: oHmXjnjC4NniJSlCWfzc4QwTCXuh9W66OtHJm9g72V8cBeQCge/ErZcXK7FKrWUvMjwOrimHzxoOZgANCaChuelWMLxEgb7HDjYFF/CRZ4IO7FxK+aQpAy2MH8a9vzoZNMIXv8ZwbBiztMwX0PNoedR5sccGjPNzQVyu6MVLpkjjG/1/wrfPr/fZSQULXXOU4i5AEsJLawbqVHlcEFv5G/I5i4//CkaEsNrNyDNAZ4Er9ANSdxkXo5VD4lQwxWYfwOub1AzBvkuZZ3PzZnlayhAT9STIrHV1vlGyYb5cEnjnimLDqHRt3evA930oWqgzn5FtHyLefeC2xFndGPOH9QqgeApheRXN/FN7buNEiYkmpPkvTBlofYiWJx/2eVo/ltRraHal8Ds6x7pWBZnCi2E4hFIsHurLjGyDZCsqXQ5gmujfWi+GSmAEQq4BvMF46ppNz46LmkBc9cmNoWtRP+K9QjKZG3aTLqVnHKU26PDd0mZZMap9JzFjkg4bfMODbULnOyY72rf4wV6HIdPEV61vScQ21l9OqoQoNroQpSDXSEjFnn0jCwL74gcvoxqh+hyhhT/2T38mptwAfNkGwIj3yA1bDc2Qc0WZp5ofRXq9mWh/UzNtOGr98NKM/Wv9zJrUEiFw6WucZHljwtnp8EK4WW01HvHhHtceoC4PXimKdoeDFmo2oXu6+9WnpoZ/2ETIpEflhNcmG8I7t4oJZZoWUxCLbPH+bOk+ZGrtBhajX6BRyac6bwb7UahOcpbG x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM5PR1201MB2555.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(7696005)(6506007)(53546011)(64756008)(2906002)(38100700002)(71200400001)(86362001)(508600001)(122000001)(33656002)(4326008)(66556008)(66946007)(76116006)(66476007)(8676002)(66446008)(166002)(52536014)(316002)(8936002)(5660300002)(38070700005)(83380400001)(186003)(110136005)(55016003)(9686003)(10090945009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?v06m0LVa9EZvsU8TcyJAbzHocM7YGcywS0oP53XdWDMrze+ctzmXyHqNHCvJ?= =?us-ascii?Q?c6Gaj5xEiqOew4brMyhrmEHc80Xtim57Ed0WKN/Rceo1VduORbqTVG69hpg1?= =?us-ascii?Q?+KJQIZ4SSnimBEVeEEOIkcAsqoE7QzznD/sHVauBE70CFtKBbCCzu8q6IhC/?= =?us-ascii?Q?aqXDjvayGxxjwIK7SxuahtYl50HCqyBIqxF+F1kUkS1qD0hICw/GNi0fnIBp?= =?us-ascii?Q?C5MIsoj2+KgFrhjBbRLO//+QGaCtHOl/s1Oah0HkzYqi68etF+F86tjVJToP?= =?us-ascii?Q?xQidZY/MWIMzjVYqr0MBDHynWeBLYKuTVmDlv8P0YDO2h//p4Up0+HNz4LWg?= =?us-ascii?Q?qioRNq8bXdjG70oY4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s9D?= =?us-ascii?Q?jWUNDWJ/aic4QiilZD/5dXlf5Hr36VuU2eBcfDdT8R+YLA0f6yqvS/29MktO?= =?us-ascii?Q?5cQ47FyxqdfteH/HusCt2Dppj7Xi8FGhTtUMOoxtJflulX2PLBFoMIHxz2SM?= =?us-ascii?Q?mzyvryiDuuBvzkrjLv/ZgGrAgPnrjCB0ZAo0QCiQ7OntE3EEehb7lmdLMXIX?= =?us-ascii?Q?YHL68PYNpNPVvZYNZAAk9LIpSJPMUO7Nf2UjexdWVibERnZiIesVLvlTkdAO?= =?us-ascii?Q?oiOnydcoyJoa8VadVf3IwpqOwZ1leTCXQXMUtgcI9pK0xGN7pILTNDGvXzC5?= =?us-ascii?Q?TbqkVynvu9S4TJQMN9TXegQReCKZm0oDyWuDNkTYm0JCmtJssuu2tNAMCWkS?= =?us-ascii?Q?gTMjAreigrlUwKCiiCzhX/jUOuE2EJCwGvUFbtoKlORcEImRK14zRxf0a7zo?= =?us-ascii?Q?aFu0LnLRSAJW2RdKEa1IKoIWmFY=3D?= Content-Type: multipart/alternative; boundary="_000_DM5PR1201MB2555E6D76CED7E76EF827989CD3B9DM5PR1201MB2555_" MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR1201MB2555.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 237f38ec-534b-45ae-f318-08d9f62cb1b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2022 17:56:46.9404 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: O6WAgi1fR/jRgB6/qIjTLOy/7/4Tfo4kuIJ5GlRdWiDXsExhpPUoy7W+4FnC33eecVGtZQzA6Y8jMRnnpwBidQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3105 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_DM5PR1201MB2555E6D76CED7E76EF827989CD3B9DM5PR1201MB2555_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I worked with Haider and found that the VF should be configured as trusted = both in driver and FW. I am working on a documentation patch in mlx5.rst to describe the needed st= eps. Regards, Asaf Penso From: Haider Ali Sent: Monday, February 7, 2022 3:12 PM To: Muhammad Zain-ul-Abideen Cc: users Subject: Re: Mellanox VF failed to start with hairpin queues I am not using mlx5 VF in VM. Can you please elaborate on what type of setu= p information you require? Regards, Haider Ali ________________________________ From: Muhammad Zain-ul-Abideen > Sent: Friday, February 4, 2022 5:23 PM To: Haider Ali > Cc: users > Subject: Re: Mellanox VF failed to start with hairpin queues You don't often get email from zain2294@gmail.com. Learn why this is important Haider, have u installed mlx5 drivers in vm server? What setup u r using. A= little more detail will help On Fri, Feb 4, 2022, 1:06 PM Haider Ali > wrote: Hi, Can anyone please guide me on why I am not able to do hairpin on VF? I am r= unning the testpmd application with 1 Hairpin queue and 1 standard queue pa= ir on Mellanox VF but getting following error: $ sudo ./build/app/dpdk-testpmd -l 1,3 -n 4 -a 04:01.2 -- -i --rxq=3D1 --tx= q=3D1 --hairpinq=3D1 --hairpin-mode=3D0x00 EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:04:01.2 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created Interactive-mode selected testpmd: create a new mbuf pool : n=3D155456, size=3D2176, socke= t=3D1 testpmd: preferred mempool ops selected: ring_mp_mc testpmd: create a new mbuf pool : n=3D155456, size=3D2176, socke= t=3D0 testpmd: preferred mempool ops selected: ring_mp_mc Warning! port-topology=3Dpaired and odd forward ports number, the last port= will pair with itself. Configuring Port 0 (socket 0) mlx5_net: port 0 failed to set defaults flows Fail to start port 0: Operation not supported Please stop the ports first Done testpmd> quit Regards, Haider Ali --_000_DM5PR1201MB2555E6D76CED7E76EF827989CD3B9DM5PR1201MB2555_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I worked with Haider and found that the VF should be= configured as trusted both in driver and FW.

I am working on a documentation patch in mlx5.rst to= describe the needed steps.

 

Regards,

Asaf Penso

 

From: Haider Ali <haider@dreambigsemi.com&= gt;
Sent: Monday, February 7, 2022 3:12 PM
To: Muhammad Zain-ul-Abideen <zain2294@gmail.com>
Cc: users <users@dpdk.org>
Subject: Re: Mellanox VF failed to start with hairpin queues

 

I am not using mlx5 VF in VM. Can you please elaborate = on what type of setup information you require?

&n= bsp;

Regards= ,

Haider = Ali


From: Muhammad Zain-ul-Abideen <zain2294@gmail.com>
Sent: Friday, February 4, 2022 5:23 PM
To: Haider Ali <haider= @dreambigsemi.com>
Cc: users <users@dpdk.org&g= t;
Subject: Re: Mellanox VF failed to start with hairpin queues =

 

You don't often get email from zain2294@gmail.com. Learn why this is important

Haider, have u installed mlx5 drivers in vm server? = What setup u r using. A little more detail will help

 

On Fri, Feb 4, 2022, 1:06 PM Haider Ali <haider@dreambigsemi.com> wrote:<= o:p>

Hi,

 

Can anyone please guide me on why I am not able to do h= airpin on VF? I am running the testpmd application with 1 Hairpin queu= e and 1 standard queue pair on Mellanox VF but getting following error:

 

$ sudo ./build/app/dpdk-testpmd -l 1,3 -n 4 -a 04:01.2 = -- -i --rxq=3D1 --txq=3D1 --hairpinq=3D1 --hairpin-mode=3D0x00

&n= bsp;

EAL:= Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:04:01.2 (socket 0)

TELEMET= RY: No legacy callbacks, legacy socket not created

Interac= tive-mode selected

testpmd= : create a new mbuf pool <mb_pool_1>: n=3D155456, size=3D2176, socket= =3D1

testpmd= : preferred mempool ops selected: ring_mp_mc

testpmd= : create a new mbuf pool <mb_pool_0>: n=3D155456, size=3D2176, socket= =3D0

testpmd= : preferred mempool ops selected: ring_mp_mc

&n= bsp;

Warning= ! port-topology=3Dpaired and odd forward ports number, the last port will p= air with itself.

&n= bsp;

Configu= ring Port 0 (socket 0)

mlx5= _net: port 0 failed to set defaults flows

Fail= to start port 0: Operation not supported

Plea= se stop the ports first

Done

testpmd= > quit

&n= bsp;

Regards= ,

Haider = Ali

--_000_DM5PR1201MB2555E6D76CED7E76EF827989CD3B9DM5PR1201MB2555_--