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 8E2DDA04BB; Wed, 2 Sep 2020 13:21:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 746D7E07; Wed, 2 Sep 2020 13:21:10 +0200 (CEST) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2065.outbound.protection.outlook.com [40.107.20.65]) by dpdk.org (Postfix) with ESMTP id A7745255 for ; Wed, 2 Sep 2020 13:21:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AHwGpqUhXHk9su9S6v4WatroBW71hvRKnjf8CRKV2k5NkXomEuxoK4ier0brDSrioyU3I712LaW1sYRx234i9ngxXknTzCXYoNuVfupSjANQr77Xd6OYMnwO/D2A7rqB7rA3Ouc8RgMHruJJ+QeXXHlKZJwRpihaketscjVQp6v7C1DWyArxWlw6+UIFbU11LMbfZ5fg0DyGeoEYBPNRF2pI4chlJ41f4is+IgEChRH66O3xKCwzKO/+KEBitJPrbPGkYyeo1ckHJRzOfSUPJraqmSiWS1lu/0z9aupqc4kXb5sGeeTaRu2NJgDGFIawMR0dlaxQLi3Qod9J4/NR7g== 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=U41djS+ti6RJcWk+wWGnHxJVHAYKMXI6V9iYvOxXPC4=; b=lhg5uMI1JT0/mU6Cd+JTpD67R5nW7y1oUd7ObxzwBigB38qKat62qQnI/YmUAIIUzPTjTjfAgUPqBHQd1ANI6EBMfcUBuFYhIc4HPQ8IgANnFotfoGGCzou/0kyR+s6Uh7nATueiS0mN5PJO7/sh5r5ink3Nw4kDUKpi3CSmloboH+jrVY27u+AIlYhbzqQb66i/Lw1W4nTaW8FYrYRa4gyJMjWCTRj7eWCCobwsAiQuS/xXa90TBlIJtrXO/eJnzAMPtLMSQzJzGuA8OcbCbohlkFxxmVVZAEr7WmR4hBA0dV+UHJX3k2iEbWc+OwUpQUUnqvE/QJrMkj1FM3L/uA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U41djS+ti6RJcWk+wWGnHxJVHAYKMXI6V9iYvOxXPC4=; b=eJ/rKH5PgJTNEWgKtzQ9mwPJiIzWNR2XcOpz0BrNM8OD4kFXtGXx48RseuiDOWk9292/quDlvgte8N3O4RlN79hKLa+3qOe2qR9ZbLmh+LylUd0tqVW0wcnPDXJfyos8w2ugKjuHAzPmo4Ym7ccZM/R36pvrsQgVo5yUK9mwHxM= Received: from AM5PR0401MB2593.eurprd04.prod.outlook.com (2603:10a6:203:37::20) by AM6PR0402MB3320.eurprd04.prod.outlook.com (2603:10a6:209:5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.23; Wed, 2 Sep 2020 11:21:07 +0000 Received: from AM5PR0401MB2593.eurprd04.prod.outlook.com ([fe80::c5e3:98fa:174b:2c4c]) by AM5PR0401MB2593.eurprd04.prod.outlook.com ([fe80::c5e3:98fa:174b:2c4c%7]) with mapi id 15.20.3326.025; Wed, 2 Sep 2020 11:21:07 +0000 From: Nipun Gupta To: Bruce Richardson , Hemant Agrawal CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 0/7] Enhance rawdev APIs Thread-Index: AQHWcWTXVkdfqwoln02c4PsliTlpxqlVUzhA Date: Wed, 2 Sep 2020 11:21:07 +0000 Message-ID: References: <20200709152047.167730-1-bruce.richardson@intel.com> <20200813112806.164578-1-bruce.richardson@intel.com> In-Reply-To: <20200813112806.164578-1-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [182.69.1.104] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 7d5e1cc0-36de-4777-5ca1-08d84f3249a0 x-ms-traffictypediagnostic: AM6PR0402MB3320: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: KvaIXAt5ilZ8asIoXpvLBGHXl8zBSfg+zh3ZHx8jiH8IHcEKMgPq0bYw8eqpUwPt2Yps3wSCpaBFN1BqGCLQUGLKXiwb/vOtW/hdrgtInE0zTf3GcfDtKfG+0CdXDnGj8cng2VVl77VJFUCw717e3M/8wJJ2EqF2cR9EPQoUFdJlj067mOgbj6OO0BzwpE2uFcvzHY0eS86FxlBmW2WwRaOfE2P795qDGBIT5gvB+goQ4fohFHxHIEfT0lbFJqRarwxvJUim3/GyBv0qsaIK3nOEXiPirTLFc42ORg+Cb9JVJaU2ofMKql5kH5vRePmZ x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM5PR0401MB2593.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(110136005)(71200400001)(498600001)(52536014)(5660300002)(2906002)(86362001)(4326008)(44832011)(6636002)(8676002)(53546011)(9686003)(7696005)(66446008)(83380400001)(64756008)(66476007)(26005)(8936002)(55016002)(6506007)(66556008)(76116006)(33656002)(66946007)(186003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: BLkvA+mBPMBYHqdDeAEdcb2DblyFghanB8nqGEwXn2R6XZjJS4IhRlYtYcvMm82cldxXVtto54NfFl5f6n6QDJWCLxnNwlhwm5CDFu3fDDhNB5WeysGcdh8GaMblmjR4X2JVCR414kuHn+cp6Pqk+UM16EgLWtNT5V/E7Y/hzSlBbOle9PFbKaNGxiK2yf/kVWuevJHGPzcfeKtWfrKWNAV03thazb+EbKOZjqlCRS7BzRhtFgYObRAG1iKcbgj82Ez5n8DVmABzaM/UQBbqp4NLSaGIhRU1W58OxKfj9i14E51tLCuEeOi7X2r/3Aukm2VmG7ykNz1t+OMoSVelez+ebW2VIR0cqRGF++hp3gDdwpLYv2RgQGNhWAdGCBv7EktzgqDOqASiVCGeMAPNmaDXAEXsxdL0PKXMjTQTZHhWW2bSqH3bS1fS7fAr0IAAVBLZBiI9izuIZG1ShuGYlFE9iNap2Xfa5g3bQm0hSY0/+xjSUdH7gVMaGYQDOGWI5cwi1FWozXDelOWB2Lj1UbCmjIVA7kjNB5JfQ7ki4mCSJEw6OCBOCkpceMZaVtZTrIETOUWqOJ30cE+J/Nw3ju0knPiX0weHu5Yi/HE6lB792VSorntzrA/9+eXUCIzICbWvzv2vj8nt0WkFGMcJ2Q== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM5PR0401MB2593.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7d5e1cc0-36de-4777-5ca1-08d84f3249a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2020 11:21:07.3701 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bGI+29ckST2zV33Wpkho/qyWdfJY5hRAGSD4PBqU4gDjykJT/MYoGwr3+yxwAlrr5b1VfyhIhzWoExQfSkELBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3320 Subject: Re: [dpdk-dev] [PATCH v2 0/7] Enhance rawdev APIs 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" Series Acked-by: Nipun Gupta > -----Original Message----- > From: Bruce Richardson > Sent: Thursday, August 13, 2020 4:58 PM > To: Nipun Gupta ; Hemant Agrawal > > Cc: dev@dpdk.org; Bruce Richardson > Subject: [PATCH v2 0/7] Enhance rawdev APIs >=20 > This patchset proposes some internal and externally-visible changes to th= e > rawdev API, the ABI change of which were previously announced. >=20 > The changes are in two main areas: > * For any APIs which take a void * parameter for driver-specific structs, > add an additional parameter to provide the struct length. This allows > some runtime type-checking, as well as possible ABI-compatibility suppo= rt > in the future as structure change generally involve a change in the siz= e > of the structure. > * Ensure all APIs which can return error values have int type, rather tha= n > void. Since functions like info_get and queue_default_get can now do so= me > typechecking, they need to be modified to allow them to return error > codes on failure. >=20 > V2: > - add additional patch to make start/stop functions optional > - remove deprecation notice once changes applied >=20 > Bruce Richardson (7): > rawdev: add private data length parameter to info fn > rawdev: allow drivers to return error from info function > rawdev: add private data length parameter to config fn > rawdev: add private data length parameter to queue fns > rawdev: allow queue default config query to return error > rawdev: mark start and stop functions optional > doc: remove rawdev deprecation notice >=20 > app/test/test_rawdev.c | 2 +- > doc/guides/rawdevs/ioat.rst | 4 +- > doc/guides/rawdevs/octeontx2_dma.rst | 2 +- > doc/guides/rawdevs/octeontx2_ep.rst | 3 +- > doc/guides/rel_notes/deprecation.rst | 7 --- > doc/guides/sample_app_ug/ioat.rst | 4 +- > drivers/bus/ifpga/ifpga_bus.c | 2 +- > drivers/raw/ifpga/ifpga_rawdev.c | 23 +++++----- > drivers/raw/ioat/ioat_rawdev.c | 17 ++++--- > drivers/raw/ioat/ioat_rawdev_test.c | 6 +-- > drivers/raw/ntb/ntb.c | 49 ++++++++++++++++----- > drivers/raw/octeontx2_dma/otx2_dpi_rawdev.c | 7 +-- > drivers/raw/octeontx2_dma/otx2_dpi_test.c | 3 +- > drivers/raw/octeontx2_ep/otx2_ep_rawdev.c | 7 +-- > drivers/raw/octeontx2_ep/otx2_ep_test.c | 2 +- > drivers/raw/skeleton/skeleton_rawdev.c | 36 +++++++++------ > drivers/raw/skeleton/skeleton_rawdev_test.c | 32 ++++++++------ > examples/ioat/ioatfwd.c | 4 +- > examples/ntb/ntb_fwd.c | 7 +-- > lib/librte_rawdev/rte_rawdev.c | 47 +++++++++++++------- > lib/librte_rawdev/rte_rawdev.h | 27 ++++++++++-- > lib/librte_rawdev/rte_rawdev_pmd.h | 22 ++++++--- > 22 files changed, 201 insertions(+), 112 deletions(-) >=20 > -- > 2.25.1