From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0A330A0563; Wed, 15 Apr 2020 11:30:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D2C1F1D63F; Wed, 15 Apr 2020 11:30:15 +0200 (CEST) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2085.outbound.protection.outlook.com [40.107.22.85]) by dpdk.org (Postfix) with ESMTP id 74A251D5E0 for ; Wed, 15 Apr 2020 11:30:14 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=grh+nUa9E5bR6wGcJYCMFtGGJD7rWtsSEB7QBsKTQUTWdCRs76qJlO/oKhfY3BTtutIvrLFEEDTKT9T/S62zZcdxjJNJ7aGwKYpeYl7of4FlbDqaE3aLL/bIbMj+y24S/zwh2b17hmJoD22su1cUZ1T5BG9mopW0PIXJDXQp08msV+3FYoLL7lfvb5Hddj45GtJir5tZ/b0Vu9wpRnoHVXmeqCbjMVQ6SzS0X/cjUhXKawT4smi9qB8ulCv0YP5on6HhMkXLnMwKUIXXSyG5vJguQmmMKtRzBlnYY7/pLaixOhpJeiKENo5nO0jKbnWKjQek9wAXMoapl2cwa8IPJQ== 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-SenderADCheck; bh=4J8wvUG+xfyqIZ5Fb45J2L1465lWvcpLIzqQmd2K6pA=; b=WYKkvdsYue6NPosBDqb1TzleF8N2xGrPoCaiOyflKEUpCM+tGFaNgwD1rKQZot7TEp86e0Jbkq8xirjcaDmTllQDFPWaoG5zvH28p6N1KgwLp5Tz47oyUyxNsySwkpXSrTeRWvfcCgcyJlcHWLAAb9k3BKokk0prRm6RrtQM7ku1eKE6Shl6CPHryc1eTBjd6x2KkGfBP1JsImSBEimC+lke3kz237rCkLZB3jN5nN4sr/aSMkzmQiTNj7NZztEZ1oFnMIhEZZ+YlTlXvGwO09rHwpuHDe05a8qFTFABqNfuULHYHeQ03Hbz2cdOquKh6USCRb5EcQCnegMCrthWsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=4J8wvUG+xfyqIZ5Fb45J2L1465lWvcpLIzqQmd2K6pA=; b=J21JHwsaYWac2fDW43otrMX0z3kGSJxW5GHk5Um4D+bIX++vj1/LTXDxc3aNN7wf+rLeicbUoog87Jko8x6ODiOph2cD6rUJi75Owpp26v+EmsPeYw4u70Tf75TINRPmZ/W21Kho4tYry7IKpu4cpFwFB6VmYV5vSvNIunXvNkI= Received: from AM0PR05MB6707.eurprd05.prod.outlook.com (2603:10a6:20b:15b::17) by AM0PR05MB5204.eurprd05.prod.outlook.com (2603:10a6:208:ef::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2900.26; Wed, 15 Apr 2020 09:30:11 +0000 Received: from AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e]) by AM0PR05MB6707.eurprd05.prod.outlook.com ([fe80::508:747b:cc12:5f6e%6]) with mapi id 15.20.2900.028; Wed, 15 Apr 2020 09:30:11 +0000 From: Raslan Darawsheh To: Vu Pham , "dev@dpdk.org" CC: Slava Ovsiienko , Ori Kam , Matan Azrad , Vu Pham Thread-Topic: [PATCH v4 0/2] refactor multi-process IPC and memory management codes to common driver Thread-Index: AQHWEdkC7g0LueDIUEiNCmUPRdQClKh57RQw Date: Wed, 15 Apr 2020 09:30:11 +0000 Message-ID: References: <20200402192105.11606-1-vuhuoong@mellanox.com> <20200413211748.20500-1-vuhuong@mellanox.com> In-Reply-To: <20200413211748.20500-1-vuhuong@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=rasland@mellanox.com; x-originating-ip: [188.161.230.106] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4d70aa7a-9135-40f8-d5f2-08d7e11f9874 x-ms-traffictypediagnostic: AM0PR05MB5204:|AM0PR05MB5204: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:67; x-forefront-prvs: 0374433C81 x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6707.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(53546011)(81156014)(66446008)(66556008)(6506007)(52536014)(64756008)(2906002)(107886003)(55016002)(9686003)(8936002)(66946007)(66476007)(86362001)(54906003)(110136005)(33656002)(4326008)(8676002)(186003)(4743002)(26005)(76116006)(316002)(478600001)(7696005)(71200400001)(5660300002); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yL7vKUzmTjOMQqwweiJrxSj6VY8FYcYjunS09ymRyFF+0fvNkKkgI4ZxwppjUG5x4gG7PYLWi6wY0O5bcB+Y0ZrS3MdKzxxc6TiYslCddOu67fOD/UrFyXFBOKH6wet/JwAMO2fdyWP8LY0m33SBYLa+38LpvBiikJwHNA3nxDUyd3pelGBRxIGUwV80MPmGMSySokyFDy810rkQ4qxl9qiaCOER31SLYwZGGJIyijwFK2Unt9Rq1fXlBnsi9V5V1HlQSHBtl/pXXKI/sM/H/iVBxs19WaQVGMxX0E5BdlHUXCiGKiSKFBMl8mPjGvTHyk4NGLPNN//gjTX3f7CCMkEjdAv7R5yWt2BUUJmiM9bCD5ag+CZT+ccpfozfkduVh7EAVGPhEw+5bulM4wechHZ16i2VaqKglY1dpMWBOygmMgQ5SV7ORieDxfY2jRPW x-ms-exchange-antispam-messagedata: yiZaxNkDw8WcDZ5/6L+C5pRWo2d5ieeqU5Znex+YCvjGcOsvkk+qaC+bwr7QNhGxm7WzsWUW0yNmZrlI+66Y0guZxuNtn/pKT5LanYXd6c+bygWdha6yccEcU3FObiWnlDxLKSTDjgafu7xutBHGdA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4d70aa7a-9135-40f8-d5f2-08d7e11f9874 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Apr 2020 09:30:11.2959 (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-CrossTenant-userprincipalname: rVwk+fzafWpLiu7hCDuDjz89/FVon9Jd87qOW0CQeUd1R2mPMXkSShycAl+YiUBCQj4n81aG5ASL9k/kuPzlig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5204 Subject: Re: [dpdk-dev] [PATCH v4 0/2] refactor multi-process IPC and memory management codes to common driver 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" Hi, > -----Original Message----- > From: Vu Pham > Sent: Tuesday, April 14, 2020 12:18 AM > To: dev@dpdk.org > Cc: Slava Ovsiienko ; Ori Kam > ; Matan Azrad ; Raslan > Darawsheh ; Vu Pham > Subject: [PATCH v4 0/2] refactor multi-process IPC and memory > management codes to common driver >=20 > Current mlx5 net PMD and future mlx5(regex,...) PMDs that run > and share the same HCAs need to use common memory management > driver. Memory management codes embeddedly use multi-process IPC > for primary/secondary processes to register and sync on memory > registrations MRs. That's the main reason to refactor and move > multi-process IPC APIs to mlx5 common driver and make it become > the base commit, then refactor and move common MR codes to > common driver in subsequent patch. >=20 > Vu Pham (2): > common/mlx5: refactor multi-process IPC handling codes to common > driver > common/mlx5: refactor memory management codes >=20 > drivers/common/mlx5/Makefile | 4 +- > drivers/common/mlx5/meson.build | 2 + > drivers/common/mlx5/mlx5_common_mp.c | 188 ++++ > drivers/common/mlx5/mlx5_common_mp.h | 98 ++ > drivers/common/mlx5/mlx5_common_mr.c | 1108 > +++++++++++++++++++++ > drivers/common/mlx5/mlx5_common_mr.h | 160 ++++ > drivers/common/mlx5/rte_common_mlx5_version.map | 27 + > drivers/net/mlx5/mlx5.c | 19 +- > drivers/net/mlx5/mlx5.h | 55 +- > drivers/net/mlx5/mlx5_mp.c | 242 +---- > drivers/net/mlx5/mlx5_mr.c | 1169 +----------------= ------ > drivers/net/mlx5/mlx5_mr.h | 87 +- > drivers/net/mlx5/mlx5_rxtx.c | 4 +- > drivers/net/mlx5/mlx5_rxtx.h | 10 +- > drivers/net/mlx5/mlx5_rxtx_vec.h | 2 + > drivers/net/mlx5/mlx5_trigger.c | 1 + > drivers/net/mlx5/mlx5_txq.c | 3 +- > 17 files changed, 1692 insertions(+), 1487 deletions(-) > create mode 100644 drivers/common/mlx5/mlx5_common_mp.c > create mode 100644 drivers/common/mlx5/mlx5_common_mp.h > create mode 100644 drivers/common/mlx5/mlx5_common_mr.c > create mode 100644 drivers/common/mlx5/mlx5_common_mr.h >=20 > -- > 2.16.6 Fixed first commit title too long,=20 Series applied to next-net-mlx, Kindest regards, Raslan Darawsheh