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 25FC9A00C2; Tue, 27 Sep 2022 15:03:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE8E941133; Tue, 27 Sep 2022 15:03:49 +0200 (CEST) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2040.outbound.protection.outlook.com [40.107.96.40]) by mails.dpdk.org (Postfix) with ESMTP id C578940694 for ; Tue, 27 Sep 2022 15:03:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k+L+itZh1W26iHHJ6Kk6ECpHqBQskh4W5U0d6RUP4EaxGDPNrUSKm+Hxc4o16z8WRID+L5CIwcX6s3nmHxhMlr5vO/TAuNuRyD3KggOrF/eZfgkaP7UWUKXLz6aismgqIWlxa5mks+p3aVJhfUDxjV65n22TzufWdh1zMsEAJNN7x3AWmE0tdtMQ71WHJH07Y00lFzsA8YML/anqs3WU02R1ZXobCHiV19NFwRKD/9lwerHAYUiutpCLQO9xwguMfmnceiIuJ8FppthbJb32AzlOH7NWDx8WnEchI9F0StE9LPDifyX3esqk0sRkHONYKEVPMngDS49r//DR/wqBKQ== 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=rZpnT3iWexW8plQCyVEOiGLQyjHaNlmG1YJyxG1scqM=; b=iEppOZTPftqK0MJTQ2RIXu+4DB4WGKpYSmVpvrtxSxqzhjPKkc0HGjYkz8Py1+IInvGxQykltyW40/rP82S6SmC3xhpOOF2kCDoSqCA7nerDwm2IWxcWxzZtcXDji1lyhJTWQt1FyDob5E9PPUhi2RvFkUBDgeY/rXMPUmZA6YRwN96cOQy3oP+GG80Lw3r2KqWCn0BEA2/Hm+qVYUIKO8eQgQQcygca0xVnAuyUhBCuDlX2Ck2VmdmfSamwiIz8XsE2zA0KmlthWI3b6YpSnv+/wR8ib1LS1Pbx+0w+mHtBqDpu5MJ4/RDa+UIl7VTg0Y6eRckDqKnCc/zj9paEMw== 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=rZpnT3iWexW8plQCyVEOiGLQyjHaNlmG1YJyxG1scqM=; b=IWCXTKuyFBWeu/9xADdtXJA2VlL9jiPUNuv2wz8SITaAISQckD8CiZWmYOaDrLdHLmWhCAHgPhmT7ohp4NGUBTyhq0VWjR/zmEfeeD8xRpw1FtZBYfeCaqu9WLVgu/wDn/Da72pbpVQSUsiDyuNAD3L0JuT0ABqd781peazF8DWQ0iLHiO8I1oqTkQoHm4eAmxHgZmtjJbhzbsBXzg/YttQrG7/kqKE42hFKAxqtG9EszCa3TMZJrI9EfErapK7cCz2XNyf5WC+GOMIQ4rIea1jGGju7zZRlUKIME/Xi6rculYXM1OJbYx+VyOp3fUDwVcRPO9nH8PLk9DHFDreMrw== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM4PR12MB5277.namprd12.prod.outlook.com (2603:10b6:5:390::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.26; Tue, 27 Sep 2022 13:03:45 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e0f7:a30a:e9c:4c53]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e0f7:a30a:e9c:4c53%4]) with mapi id 15.20.5654.025; Tue, 27 Sep 2022 13:03:45 +0000 From: Slava Ovsiienko To: Dariusz Sosnowski , Matan Azrad CC: "dev@dpdk.org" Subject: RE: [PATCH 2/7] common/mlx5: add hairpin SQ buffer type capabilities Thread-Topic: [PATCH 2/7] common/mlx5: add hairpin SQ buffer type capabilities Thread-Index: AQHYzEZV9HHNDQoo40uMr+dnH8CSL63zSnow Date: Tue, 27 Sep 2022 13:03:45 +0000 Message-ID: References: <20220919163731.1540454-1-dsosnowski@nvidia.com> <20220919163731.1540454-3-dsosnowski@nvidia.com> In-Reply-To: <20220919163731.1540454-3-dsosnowski@nvidia.com> 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-traffictypediagnostic: DM6PR12MB3753:EE_|DM4PR12MB5277:EE_ x-ms-office365-filtering-correlation-id: 35a3d330-9b26-4bb2-5d23-08daa088b5e5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: qu9Au4fOO6pln+88OAZ2UzBNP1uKu3TPrqbcPGQlN76SOSFxRX5haaZ7NeSgwRFTKYYN1Zde/Um+B8R7iND0+o3y77n9CmkuIhsLUnPzLPhwsCEj8/fSSj6oluvXvhtmVOfOFz0zuBX4W/xzUaKGk128P3dUosYSuZDg20TGsS5HKUEUphW+gMelXs1uPjHESacOD0/v0elJ3y6wIV2HcN5A0JwPBwkJhQHuT5N61gIi1FuFeBK4c5Lcb4Ez3MSCDInRGkQhk7Aa6516OhRqbzSh2GCYkseekuuuL36o6hBavUxFB1vErRgTZXAtBiem6bnOX7YbLD7G/faVfam8b58yQLtcPuySYb5i5zotdFngFv/dNnoBrLDwzz9JDwMzfoQ3ZNeFfsi87hjPzsdC6jZ9tJmE1nyghzNj2SIZoWgfWyGS1m8Gl0weAq+8wTMzgkdJV9IZkluKwfrbVSrSD4dNh951C+PQSDXVOc6eAkYYsCGofdSFZxM6/tAsgNEYSbf+jiiyD3yMZaY4G3CwPB9QIpg3awMKGLupcpR/HsGEpfABRBqHeRqNfU/jUK/TAkRg81GY/6Sr6+PhcbGj8q0c7Gmg2QDHT80tyS/txdk87UOfGFIlQcvhWeQXmpI/5l1G/eyzv+NeZ1NhcL2wM3aggp1eQLWF06iFKkJbnkM+zPsh7KFgoDzupsMhf0fFHBVLuiBAWRr5bndeEsQzWMF2M89M9bgqkxUCs5b2s70hf//R3P55mP8FhJMtkJC3qttbhEaFXbmWKt6lsTTzuw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(136003)(346002)(396003)(366004)(39860400002)(376002)(451199015)(52536014)(8936002)(2906002)(5660300002)(110136005)(6636002)(316002)(33656002)(122000001)(71200400001)(53546011)(41300700001)(8676002)(66946007)(7696005)(478600001)(4326008)(6506007)(66476007)(66556008)(76116006)(66446008)(64756008)(55016003)(86362001)(83380400001)(38070700005)(38100700002)(9686003)(26005)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?mmWTgvNFpxfr7pdOUx/JuT6A9aFUefAmK2V3UyocyNrTDnpVcjVO37kSW2zQ?= =?us-ascii?Q?AwPLyHwdUcU8LlnQjRKkLa8c1Pdrq1JgoEXVWTMonOYm+RTZHw8T7hiPZO7Q?= =?us-ascii?Q?eEKnZggT/ptTL+DKq0eYQ6hat8xkl/4yvOLA+IEruUZCkOubFtklrIXFbCbn?= =?us-ascii?Q?Ilb9yKLwINCiZFJvlXYgTuoVXy7k+UdyP/o5Fj6bGsBvvxFdkmgLJIxUbf40?= =?us-ascii?Q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NyTWSMFoBfSXrOFviypxZsCu1nHX?= =?us-ascii?Q?g18wiI2R4994+6qJodV75CmYstCf7tcQaM6wQ0FTNUCxiNJeJadEXpAHnDs8?= =?us-ascii?Q?w6ubd6akRKt+xFfaI4XFn9V0QyGahQjeF2owpAEkOUFgGWqOG8ELXtgJsF9K?= =?us-ascii?Q?sPZZoORpgPIK7qL4Ekty1ABDBD7w+pa/SV6TLedpVtDcIag4BsCI47eATs3X?= =?us-ascii?Q?PjUIE4+ewxEzHJyo9FswU39GlU4EA8j3kjM9ftW3ZaI9W6McUGFpwn2+x7EB?= =?us-ascii?Q?6X7x2ASiRygjY1u7/j90ExIvQdD3IJUbxAExsjnR2GYLdlUeR0kZHrs34lYh?= =?us-ascii?Q?ohSmZ9N0DSZ4L6D63CFS264SpysVO9uR3FUbzBmUDqzOAgd8Jz+gKiVqTLoX?= =?us-ascii?Q?fwqfKZBB8zTzd47BIJQ6bkmtIkJPtUN+eAllwsXmclbK0vEPQI4+9hJ9h6V+?= =?us-ascii?Q?zu6rCpIsWvBaNTkERbPA6oYfR46dlyGaVtLnwzkN?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35a3d330-9b26-4bb2-5d23-08daa088b5e5 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2022 13:03:45.3894 (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: yEO5HbqmHuPMsHCCg5c0ttUF3hujYz8Tsg36phGmyvAtG2B00OquT4u/rDq4rhHBD7YrnU32NrJAyV1/RO9pWQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5277 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Dariusz Sosnowski > Sent: Monday, September 19, 2022 19:37 > To: Matan Azrad ; Slava Ovsiienko > Cc: dev@dpdk.org > Subject: [PATCH 2/7] common/mlx5: add hairpin SQ buffer type capabilities >=20 > This patch extends HCA_CAP and SQ Context structs available in PRM. This > fields allow checking if NIC supports storing hairpin SQ's WQ buffer in h= ost > memory and configuring such memory placement. >=20 > HCA capabilities are extended with the following fields: >=20 > - hairpin_sq_wq_in_host_mem - If set, then NIC supports using host memory= as > a backing storage for hairpin SQ's WQ buffer. > - hairpin_sq_wqe_bb_size - Indicates the required size of SQ WQE basic > block. >=20 > SQ Context is extended with hairpin_wq_buffer_type which informs NIC wher= e > SQ's WQ buffer will be stored. This field can take the following values: >=20 > - MLX5_SQC_HAIRPIN_WQ_BUFFER_TYPE_INTERNAL_BUFFER - WQ buffer will be > stored in unlocked device memory. > - MLX5_SQC_HAIRPIN_WQ_BUFFER_TYPE_HOST_MEMORY - WQ buffer will be stored > in host memory. Buffer is provided by PMD. >=20 > Signed-off-by: Dariusz Sosnowski Acked-by: Viacheslav Ovsiienko