From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 39309A05D3 for ; Tue, 26 Mar 2019 20:35:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A10CF1B4A0; Tue, 26 Mar 2019 20:35:42 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70045.outbound.protection.outlook.com [40.107.7.45]) by dpdk.org (Postfix) with ESMTP id 4EBDE1B4A0 for ; Tue, 26 Mar 2019 20:35:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dc6FYnw6P+3e/kCl0W3Rs0CkINaToDDWCqgQLPOGbig=; b=Xoqa5kSEefMqDyYqW7HNvoRHNxfJ16feyaVxgiWkruBOJByjST7dGMH3zA608ojf8I10qffIsmpusYCete2NT79d3eTq3uSX1eaycWmJKj2c/fL8PHeamkqYzCFTBhcUbdw1U6sZ4DfJ/b0noXBRSZryNaSImD0UAu8JyoxtNYo= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3972.eurprd05.prod.outlook.com (52.133.36.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.15; Tue, 26 Mar 2019 19:35:39 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003%2]) with mapi id 15.20.1750.014; Tue, 26 Mar 2019 19:35:39 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [PATCH v3 05/13] net/mlx5: add IB shared context alloc/free functions Thread-Index: AQHU4+mx4cgXfvAf8EWuFRFMwnZqb6YeTjAw Date: Tue, 26 Mar 2019 19:35:39 +0000 Message-ID: References: <1553533414-9911-1-git-send-email-viacheslavo@mellanox.com> <1553614522-12151-1-git-send-email-viacheslavo@mellanox.com> <1553614522-12151-6-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1553614522-12151-6-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 587270c9-c664-48ec-327d-08d6b2223a83 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB3972; x-ms-traffictypediagnostic: AM0PR0502MB3972: x-microsoft-antispam-prvs: x-forefront-prvs: 09888BC01D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(136003)(39860400002)(376002)(189003)(199004)(446003)(3846002)(6116002)(478600001)(33656002)(81156014)(256004)(14454004)(8936002)(11346002)(25786009)(305945005)(7736002)(106356001)(2906002)(8676002)(81166006)(105586002)(66066001)(6436002)(97736004)(6246003)(71190400001)(9686003)(76176011)(7696005)(5660300002)(53936002)(26005)(6506007)(55016002)(102836004)(71200400001)(110136005)(68736007)(99286004)(476003)(316002)(486006)(74316002)(2501003)(52536014)(86362001)(186003)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3972; H:AM0PR0502MB3795.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: jdqKVvsAc9kcNQTa5P3dsOC3WIoPcTBerw7hmoSI9jWCuEVm+7WSu6P7qX2GDekJmAy83SJLjK8mc27K5fm3oTgXxeVETYpYoi7rO5c8s5zUDM0oDKCYOfzOb0INL6bn6Sb+FfyL/wz4nKkG0IHFAaL2ToCQsR9k/F/kdoNun8JKNHvBjByUaICxKJFbrmpsCINA+rKmBTpfFf7TW+mD7WgiKX4wRcZKbLunV7RAxjt9A724Ffxw+FvsPKT+vPbiMwAkCK7ZGk4dI52MyodfPQ2OgJyFbAEQbjx+3jRiuvZbSc20Rh+x3IVC4XL9KOsb/iZ9tDWLKeQYmhu+NxZNFNENwR+t5A6Su2wl0zv2wZikupJt8woMdxpVm7lvkhfoGxMeOK/Pj5qvBdsymUvvqu7jZIheoCtWLzmZcqVZN1k= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 587270c9-c664-48ec-327d-08d6b2223a83 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2019 19:35:39.8451 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3972 Subject: Re: [dpdk-dev] [PATCH v3 05/13] net/mlx5: add IB shared context alloc/free functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190326193539.9zi1pywPaxITM9-W6HmKrTRI2AQXCQ9cRyGIZm0mkt0@z> Tuesday, March 26, 2019 5:35 PM, Viacheslav Ovsiienko: > Subject: [PATCH v3 05/13] net/mlx5: add IB shared context alloc/free > functions >=20 > The Mellanox NICs support SR-IOV and have E-Switch feature. > When SR-IOV is set up in switchdev mode and E-Switch is enabled we have > so called VF representors in the system. All representors belonging to th= e > same E-Switch are created on the basis of the single PCI function and wit= h > current implementation each representor has its own dedicated Infiniband > device and operates within its own Infiniband context. It is proposed to > provide representors as ports of the single Infiniband device and operate= on > the shared Infiniband context saving various resources. This patch introd= uces > appropriate structures. >=20 > Also the functions to allocate and free shared IB context for multiport a= re > added. The IB device context, Protection Domain, device attributes, > Infiniband names are going to be relocated to the shared structure from t= he > device private one. > mlx5_dev_spawn() is updated to support shared context. >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Shahaf Shuler