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 79D55A0C47; Mon, 18 Oct 2021 09:07:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 039B440041; Mon, 18 Oct 2021 09:07:13 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 8C3504003C for ; Mon, 18 Oct 2021 09:07:10 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19I3nOQX024145; Mon, 18 Oct 2021 00:07:09 -0700 Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2170.outbound.protection.outlook.com [104.47.57.170]) by mx0a-0016f401.pphosted.com with ESMTP id 3bs1bugj71-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 Oct 2021 00:07:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b4ZlZWzSCIdeb6dCmlDGzf5nc0lkt/Y2GMBp1pGR6CBID0iOSlDjkbo8wal3ocp3xJVfGopvcYpFYhvj2ksF8qfjeP/4ti+Jxb2P4LyN3JGaOEZFtus/0PyUPh3ZslvysKMf6IDFSZzrnIL7Zv2kb376R+duVZi3Wqlfv1gyk9cNm0WcaZyWC9Rlo2b79qFQGB0p9MuzzOtMEcc+UnzNdCGASrJL+QGaCIikJ4BJjnWeWmpo0KJGyjQduLnaUFzCmejy7LmM+0lrl/QsswDuwD9io0dvtmdywCrG9ArqrWu1vZVNBGTk49DGgMVfLFFWqbDx82TU7/bMyYZZ9EttnQ== 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=IoT3CAdG8788l3rHtNSV145h2fyoWHVk24DS+wRE+n4=; b=aPBjlrdeiMOjJke1dkdBw9BEM2QeaLOTsGv4J6h+p5eJP1JOJ4/HAQTm1FaZ3rbTn0bzfWYZtDRiW8ir0COhjuCkDft97bOScMX3vFk9ozoJnKZ91qzesmZ0XnIrxhdVS2InUoUNXF7alMrJMhBBRZfZRUiIXIX/Q43o13IaFgcnMvxavH0VWzYR40cqMgkgd1w5pSExMAc7K3zzHwdVWfBwylNhIJSSR2WbPk/KpgxJxIo7oGGL3yOVGxwaFFQlp5UUwivLLnM06+tcB4A55NgK33OfH9YN4npXm/1mZabVvHB7o4yOqvce9aUawpH7omHYBUYazLwVEmptsAu5SQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IoT3CAdG8788l3rHtNSV145h2fyoWHVk24DS+wRE+n4=; b=JU3ZUQaQWMO8LdKM6t5+o73fQXCsz0a35LkjdHBf062QJeRq1Xf0+6O8RQWoQ3Ds1g4FHDYQkv0X+ckkGGTkDf0h0jgAJcUlALqFS23ImHkqVKU6LD1iphZtwoHr3QsrQ3ZTHq05NsjuqnuO9r2i+fSlIY/LU6ATMtnP75hx+iY= Received: from BN9PR18MB4204.namprd18.prod.outlook.com (2603:10b6:408:119::18) by BN9PR18MB4201.namprd18.prod.outlook.com (2603:10b6:408:136::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Mon, 18 Oct 2021 07:07:02 +0000 Received: from BN9PR18MB4204.namprd18.prod.outlook.com ([fe80::29f4:8e3d:264f:26b1]) by BN9PR18MB4204.namprd18.prod.outlook.com ([fe80::29f4:8e3d:264f:26b1%8]) with mapi id 15.20.4608.018; Mon, 18 Oct 2021 07:07:02 +0000 From: Harman Kalra To: Pavan Nikhilesh Bhagavatula , Jerin Jacob Kollanukkaran , Timothy McDaniel , =?iso-8859-1?Q?Mattias_R=F6nnblom?= , Pavan Nikhilesh Bhagavatula , Ray Kinsella CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v4 07/14] eventdev: hide event device related structures Thread-Index: AQHXwfdHrg2vOKQX5EGp2lPGhImydqvYWRhQ Date: Mon, 18 Oct 2021 07:07:02 +0000 Message-ID: References: <20211006065012.16508-1-pbhagavatula@marvell.com> <20211015190221.2160-1-pbhagavatula@marvell.com> <20211015190221.2160-7-pbhagavatula@marvell.com> In-Reply-To: <20211015190221.2160-7-pbhagavatula@marvell.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f96001f0-8c49-42d6-9a64-08d99205e2bf x-ms-traffictypediagnostic: BN9PR18MB4201: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1091; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: tc2ONDJ82vY3mHVTBQeCOucC/TpFHGMzR8zSH+Zq2I4+Mkv59K6juHud14oaTRHRVbDnBNNzKlcqTcCV9M3nNjtnF5X9LgxyKtJZBX4NpMMBdwEJkkxpNEFihS02o+74i1HL5mdVRVfqarXI47xmDFuY/sRqhH4fm4tkS+TIKal/sFRBWDicmLlXMr7oDewZ6dl/U8epKgsnSTdXdABSipKhUEKH/G70I2OkaSeso9J/5+zArQjioUvNFpEFpxEcrm5wfahj9DLGEQqACdcGWQ0larvqsNZ1zbvw+e20zgfbwU4/7tUDtlZW1WYpqkaSstVOB2/C6rXs9QQ0+321a7FCwlbdhX5LIPosM9HEVaFqPChbM5ita/3C69PwYcDAosp4Y1naAgZJNlxZAwju3eXvAhcbFO3Fe9uugo0n/46wNzQ4i2U3IYK1Vme+ZCRu4LUzY44YweFMo/UJjCKi70P4pRia0rHd0aQ56AIRu4glpRNKEhtLxNCv1i7DYr6aj2GixeDpjA4zy5r+EzHFigdJKVMrCNGlg9+9L1AN8idLKs9aWipXvMOvhgh4nFN0vgpOQjfkNLB8/qJAE88XcgBEZdZYI5k2fNMYJSdSBlsJlyTCVrQfEEQDMKT2ls38JeMgg9KkBt9B2Uz7bmCrMdijvmifRfbu7wbevEnuPcTRmIMQHowM3fwCRtoeustZr6e8VcxSlSUuuM2KFav+Rw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN9PR18MB4204.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(8676002)(122000001)(53546011)(33656002)(2906002)(110136005)(186003)(30864003)(26005)(83380400001)(508600001)(4326008)(52536014)(66446008)(5660300002)(76116006)(64756008)(55016002)(66556008)(7696005)(66946007)(66476007)(6506007)(86362001)(9686003)(38070700005)(71200400001)(8936002)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?ACQWryRDoBBPHXGR9E/0cm6LHaDr0ohPK9+3bK7RaSvOa/ePdseUpzzmcO?= =?iso-8859-1?Q?lQ6fVKowG9H3cf9uZiMtvLHclsLkaB1N39/z1e6BqF4UelSBSERP+a+FDo?= =?iso-8859-1?Q?mbf/D9YY1nuMp6RBaBrQg29ibKicXfrhpa5Q7Rwu2BKnebOvxKJ897GkPA?= =?iso-8859-1?Q?JoPkwT0Gz5vteSzeZkone0py5qOtoUDGEe3jG+IUtTKhlqCNApJf4LIvSk?= =?iso-8859-1?Q?2JtNqHvgNRY1tUWDjrGgdPq0L/zzCXGveHMoJQIA4faSoQKJsUDSOZNUyS?= =?iso-8859-1?Q?eISvLgx3gdHYFJypPL9bg/gGtFyuKexPT1dnu4hqDMhS+Gcg3MRpgE+fYj?= =?iso-8859-1?Q?X8hUv9yGI8bPE1EExqGzCZtP2rN6t6aLGHHcogF2PZlzEf3LpbOIE1G3Kt?= =?iso-8859-1?Q?leJqkhPSN+vJx2+QlPUpIYrdyGaaRynmC/xbgxdtPiC2kMopSVDrRO/F2S?= =?iso-8859-1?Q?2dSNHdhiG5pxWLp9llynTIpwtKAz/F87rU5wAm+gaeHVEbg6EZ9R2PsrSP?= =?iso-8859-1?Q?qdDJhRCkxWFccyqds5SXGFTjkYFl2HxzigUhT5yvbQU7VQohuWlb6MV+sF?= =?iso-8859-1?Q?2kL38duhkVKw5ZhE87q0NcBS+lFGGNZEEK/B2zdOs+FIby1Xts0DDL7s1B?= =?iso-8859-1?Q?q39sPNPg5q+XCOzF5OTiX9I/AimImjd2tZuNw/fIdd8ziwX2UBk1EoPZVA?= =?iso-8859-1?Q?2LHuqEPvKRxzdUFVxt5OG4woedXdc2yw4/4Hl6ce45DImjsPa7vdbFHlSL?= =?iso-8859-1?Q?g7B2qYwhS1ghpTMsJReNaAdN27KbefLj2oIEa2h0o9jjTGYatYfcFK1xFF?= =?iso-8859-1?Q?G+4F3LSRU7ucpyY7gMx3Glu1uCY8Qfb3tv6uB3RorpK3SW0eKBMGpGnRF3?= =?iso-8859-1?Q?BsCXhEfY8gIT5STgN4D3aXWoI8LjYgXAjHuzqKTk4Le+wus8SB9l1cBIJb?= =?iso-8859-1?Q?ILk9/wE3+/4wh1KyYUj+F4DgM1HmPocK+ijVL8kqOn8uQ5+w7ZNnwbFHzs?= =?iso-8859-1?Q?1YY0ylBOQVJ1ec5XgOtEwOS/8G+kpvXV7EmdJco4G3U97A3npirz2gEL2o?= =?iso-8859-1?Q?iuLDYmo8chPlhRqmh4Yq/37XsO/Itvgk3rKhhLsZSFaCp6UWpqLOtBJDox?= =?iso-8859-1?Q?T3OwwiShl1YMcsiIkuzG17b/pmuT+ila24eYZX9WaYQ96hDxXEi8FiyZZV?= =?iso-8859-1?Q?QpAPQCEWJw54eidLsFXvECSK6NGWyy1/H6J652dmE41C4PemGKln/Zp44t?= =?iso-8859-1?Q?aPkOLlBJUeVEv5z9MyDXHQId8BYAxagt3LlTNAY0JjKgjbj3/19K2WR8NC?= =?iso-8859-1?Q?degq/aroxovH0ugK3h9AVqa6ywSx47tkEabZuC6P5WV/hon+bZkfiYIxzk?= =?iso-8859-1?Q?zlrok0ULdl?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR18MB4204.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f96001f0-8c49-42d6-9a64-08d99205e2bf X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2021 07:07:02.4453 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: t6oGDxH26Pebmmhpug0YwEg3H0ZhYs5ycsQpmCh6o9mWRmBTg8EBwftJW7y4RUOX5cGEreF1P8n8EBC/Wbxh0g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR18MB4201 X-Proofpoint-GUID: 3K9x2Phv-wIkVF8eu1KBLAEYwQ6y6Mj9 X-Proofpoint-ORIG-GUID: 3K9x2Phv-wIkVF8eu1KBLAEYwQ6y6Mj9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_02,2021-10-14_02,2020-04-07_01 Subject: Re: [dpdk-dev] [PATCH v4 07/14] eventdev: hide event device related structures 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 Sender: "dev" > -----Original Message----- > From: pbhagavatula@marvell.com > Sent: Saturday, October 16, 2021 12:32 AM > To: Jerin Jacob Kollanukkaran ; Timothy McDaniel > ; Mattias R=F6nnblom > ; Pavan Nikhilesh Bhagavatula > ; Harman Kalra ; Ray > Kinsella > Cc: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v4 07/14] eventdev: hide event device related > structures >=20 > From: Pavan Nikhilesh >=20 > Move rte_eventdev, rte_eventdev_data structures to eventdev_pmd.h. >=20 > Signed-off-by: Pavan Nikhilesh LGTM from octeontx POV Acked-by: Harman Kalra Thanks Harman > --- > drivers/event/dlb2/dlb2_inline_fns.h | 2 + > drivers/event/dsw/dsw_evdev.h | 2 + > drivers/event/octeontx/timvf_worker.h | 2 + > drivers/net/octeontx/octeontx_ethdev.c | 3 +- > lib/eventdev/eventdev_pmd.h | 92 +++++++++++++++++++++++++ > lib/eventdev/rte_eventdev.c | 22 ------ > lib/eventdev/rte_eventdev_core.h | 93 -------------------------- > lib/eventdev/version.map | 2 +- > 8 files changed, 101 insertions(+), 117 deletions(-) >=20 > diff --git a/drivers/event/dlb2/dlb2_inline_fns.h > b/drivers/event/dlb2/dlb2_inline_fns.h > index ac8d01aa98..1429281cfd 100644 > --- a/drivers/event/dlb2/dlb2_inline_fns.h > +++ b/drivers/event/dlb2/dlb2_inline_fns.h > @@ -5,6 +5,8 @@ > #ifndef _DLB2_INLINE_FNS_H_ > #define _DLB2_INLINE_FNS_H_ >=20 > +#include > + > /* Inline functions required in more than one source file. */ >=20 > static inline struct dlb2_eventdev * > diff --git a/drivers/event/dsw/dsw_evdev.h > b/drivers/event/dsw/dsw_evdev.h index 08889a0990..631daea55c 100644 > --- a/drivers/event/dsw/dsw_evdev.h > +++ b/drivers/event/dsw/dsw_evdev.h > @@ -5,6 +5,8 @@ > #ifndef _DSW_EVDEV_H_ > #define _DSW_EVDEV_H_ >=20 > +#include > + > #include > #include >=20 > diff --git a/drivers/event/octeontx/timvf_worker.h > b/drivers/event/octeontx/timvf_worker.h > index dede1a4a4f..3f1e77f1d1 100644 > --- a/drivers/event/octeontx/timvf_worker.h > +++ b/drivers/event/octeontx/timvf_worker.h > @@ -2,6 +2,8 @@ > * Copyright(c) 2017 Cavium, Inc > */ >=20 > +#include > + > #include > #include >=20 > diff --git a/drivers/net/octeontx/octeontx_ethdev.c > b/drivers/net/octeontx/octeontx_ethdev.c > index 7c91494f0e..ddfce57394 100644 > --- a/drivers/net/octeontx/octeontx_ethdev.c > +++ b/drivers/net/octeontx/octeontx_ethdev.c > @@ -9,13 +9,14 @@ > #include > #include >=20 > +#include > #include > #include > #include > #include > #include > -#include > #include > +#include > #include > #include > #include > diff --git a/lib/eventdev/eventdev_pmd.h b/lib/eventdev/eventdev_pmd.h > index 0532b542d4..9aa9943fa5 100644 > --- a/lib/eventdev/eventdev_pmd.h > +++ b/lib/eventdev/eventdev_pmd.h > @@ -80,6 +80,9 @@ > #define RTE_EVENTDEV_DETACHED (0) > #define RTE_EVENTDEV_ATTACHED (1) >=20 > +#define RTE_EVENTDEV_NAME_MAX_LEN (64) > +/**< @internal Max length of name of event PMD */ > + > struct rte_eth_dev; >=20 > /** Global structure used for maintaining state of allocated event devic= es */ > @@ -87,6 +90,95 @@ struct rte_eventdev_global { > uint8_t nb_devs; /**< Number of devices found */ > }; >=20 > +/** > + * @internal > + * The data part, with no function pointers, associated with each device= . > + * > + * This structure is safe to place in shared memory to be common among > + * different processes in a multi-process configuration. > + */ > +struct rte_eventdev_data { > + int socket_id; > + /**< Socket ID where memory is allocated */ > + uint8_t dev_id; > + /**< Device ID for this instance */ > + uint8_t nb_queues; > + /**< Number of event queues. */ > + uint8_t nb_ports; > + /**< Number of event ports. */ > + void *ports[RTE_EVENT_MAX_PORTS_PER_DEV]; > + /**< Array of pointers to ports. */ > + struct rte_event_port_conf > ports_cfg[RTE_EVENT_MAX_PORTS_PER_DEV]; > + /**< Array of port configuration structures. */ > + struct rte_event_queue_conf > queues_cfg[RTE_EVENT_MAX_QUEUES_PER_DEV]; > + /**< Array of queue configuration structures. */ > + uint16_t links_map[RTE_EVENT_MAX_PORTS_PER_DEV * > + RTE_EVENT_MAX_QUEUES_PER_DEV]; > + /**< Memory to store queues to port connections. */ > + void *dev_private; > + /**< PMD-specific private data */ > + uint32_t event_dev_cap; > + /**< Event device capabilities(RTE_EVENT_DEV_CAP_)*/ > + struct rte_event_dev_config dev_conf; > + /**< Configuration applied to device. */ > + uint8_t service_inited; > + /* Service initialization state */ > + uint32_t service_id; > + /* Service ID*/ > + void *dev_stop_flush_arg; > + /**< User-provided argument for event flush function */ > + > + RTE_STD_C11 > + uint8_t dev_started : 1; > + /**< Device state: STARTED(1)/STOPPED(0) */ > + > + char name[RTE_EVENTDEV_NAME_MAX_LEN]; > + /**< Unique identifier name */ > + > + uint64_t reserved_64s[4]; /**< Reserved for future fields */ > + void *reserved_ptrs[4]; /**< Reserved for future fields */ > +} __rte_cache_aligned; > + > +/** @internal The data structure associated with each event device. */ > +struct rte_eventdev { > + struct rte_eventdev_data *data; > + /**< Pointer to device data */ > + struct eventdev_ops *dev_ops; > + /**< Functions exported by PMD */ > + struct rte_device *dev; > + /**< Device info. supplied by probing */ > + > + RTE_STD_C11 > + uint8_t attached : 1; > + /**< Flag indicating the device is attached */ > + > + event_enqueue_t enqueue; > + /**< Pointer to PMD enqueue function. */ > + event_enqueue_burst_t enqueue_burst; > + /**< Pointer to PMD enqueue burst function. */ > + event_enqueue_burst_t enqueue_new_burst; > + /**< Pointer to PMD enqueue burst function(op new variant) */ > + event_enqueue_burst_t enqueue_forward_burst; > + /**< Pointer to PMD enqueue burst function(op forward variant) */ > + event_dequeue_t dequeue; > + /**< Pointer to PMD dequeue function. */ > + event_dequeue_burst_t dequeue_burst; > + /**< Pointer to PMD dequeue burst function. */ > + event_tx_adapter_enqueue_t txa_enqueue_same_dest; > + /**< Pointer to PMD eth Tx adapter burst enqueue function with > + * events destined to same Eth port & Tx queue. > + */ > + event_tx_adapter_enqueue_t txa_enqueue; > + /**< Pointer to PMD eth Tx adapter enqueue function. */ > + event_crypto_adapter_enqueue_t ca_enqueue; > + > + uint64_t reserved_64s[4]; /**< Reserved for future fields */ > + void *reserved_ptrs[3]; /**< Reserved for future fields */ > +} __rte_cache_aligned; > + > +extern struct rte_eventdev *rte_eventdevs; > +/** @internal The pool of rte_eventdev structures. */ > + > /** > * Get the rte_eventdev structure device pointer for the named device. > * > diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c in= dex > 4c30a37831..e55241defd 100644 > --- a/lib/eventdev/rte_eventdev.c > +++ b/lib/eventdev/rte_eventdev.c > @@ -1365,24 +1365,6 @@ eventdev_find_free_device_index(void) > return RTE_EVENT_MAX_DEVS; > } >=20 > -static uint16_t > -rte_event_tx_adapter_enqueue(__rte_unused void *port, > - __rte_unused struct rte_event ev[], > - __rte_unused uint16_t nb_events) > -{ > - rte_errno =3D ENOTSUP; > - return 0; > -} > - > -static uint16_t > -rte_event_crypto_adapter_enqueue(__rte_unused void *port, > - __rte_unused struct rte_event ev[], > - __rte_unused uint16_t nb_events) > -{ > - rte_errno =3D ENOTSUP; > - return 0; > -} > - > struct rte_eventdev * > rte_event_pmd_allocate(const char *name, int socket_id) { @@ -1403,10 > +1385,6 @@ rte_event_pmd_allocate(const char *name, int socket_id) >=20 > eventdev =3D &rte_eventdevs[dev_id]; >=20 > - eventdev->txa_enqueue =3D rte_event_tx_adapter_enqueue; > - eventdev->txa_enqueue_same_dest =3D > rte_event_tx_adapter_enqueue; > - eventdev->ca_enqueue =3D rte_event_crypto_adapter_enqueue; > - > if (eventdev->data =3D=3D NULL) { > struct rte_eventdev_data *eventdev_data =3D NULL; >=20 > diff --git a/lib/eventdev/rte_eventdev_core.h > b/lib/eventdev/rte_eventdev_core.h > index 916023f71f..61d5ebdc44 100644 > --- a/lib/eventdev/rte_eventdev_core.h > +++ b/lib/eventdev/rte_eventdev_core.h > @@ -65,99 +65,6 @@ struct rte_event_fp_ops { >=20 > extern struct rte_event_fp_ops rte_event_fp_ops[RTE_EVENT_MAX_DEVS]; >=20 > -#define RTE_EVENTDEV_NAME_MAX_LEN (64) > -/**< @internal Max length of name of event PMD */ > - > -/** > - * @internal > - * The data part, with no function pointers, associated with each device= . > - * > - * This structure is safe to place in shared memory to be common among > - * different processes in a multi-process configuration. > - */ > -struct rte_eventdev_data { > - int socket_id; > - /**< Socket ID where memory is allocated */ > - uint8_t dev_id; > - /**< Device ID for this instance */ > - uint8_t nb_queues; > - /**< Number of event queues. */ > - uint8_t nb_ports; > - /**< Number of event ports. */ > - void *ports[RTE_EVENT_MAX_PORTS_PER_DEV]; > - /**< Array of pointers to ports. */ > - struct rte_event_port_conf > ports_cfg[RTE_EVENT_MAX_PORTS_PER_DEV]; > - /**< Array of port configuration structures. */ > - struct rte_event_queue_conf > queues_cfg[RTE_EVENT_MAX_QUEUES_PER_DEV]; > - /**< Array of queue configuration structures. */ > - uint16_t links_map[RTE_EVENT_MAX_PORTS_PER_DEV * > - RTE_EVENT_MAX_QUEUES_PER_DEV]; > - /**< Memory to store queues to port connections. */ > - void *dev_private; > - /**< PMD-specific private data */ > - uint32_t event_dev_cap; > - /**< Event device capabilities(RTE_EVENT_DEV_CAP_)*/ > - struct rte_event_dev_config dev_conf; > - /**< Configuration applied to device. */ > - uint8_t service_inited; > - /* Service initialization state */ > - uint32_t service_id; > - /* Service ID*/ > - void *dev_stop_flush_arg; > - /**< User-provided argument for event flush function */ > - > - RTE_STD_C11 > - uint8_t dev_started : 1; > - /**< Device state: STARTED(1)/STOPPED(0) */ > - > - char name[RTE_EVENTDEV_NAME_MAX_LEN]; > - /**< Unique identifier name */ > - > - uint64_t reserved_64s[4]; /**< Reserved for future fields */ > - void *reserved_ptrs[4]; /**< Reserved for future fields */ > -} __rte_cache_aligned; > - > -/** @internal The data structure associated with each event device. */ - > struct rte_eventdev { > - event_enqueue_t enqueue; > - /**< Pointer to PMD enqueue function. */ > - event_enqueue_burst_t enqueue_burst; > - /**< Pointer to PMD enqueue burst function. */ > - event_enqueue_burst_t enqueue_new_burst; > - /**< Pointer to PMD enqueue burst function(op new variant) */ > - event_enqueue_burst_t enqueue_forward_burst; > - /**< Pointer to PMD enqueue burst function(op forward variant) */ > - event_dequeue_t dequeue; > - /**< Pointer to PMD dequeue function. */ > - event_dequeue_burst_t dequeue_burst; > - /**< Pointer to PMD dequeue burst function. */ > - event_tx_adapter_enqueue_t txa_enqueue_same_dest; > - /**< Pointer to PMD eth Tx adapter burst enqueue function with > - * events destined to same Eth port & Tx queue. > - */ > - event_tx_adapter_enqueue_t txa_enqueue; > - /**< Pointer to PMD eth Tx adapter enqueue function. */ > - struct rte_eventdev_data *data; > - /**< Pointer to device data */ > - struct eventdev_ops *dev_ops; > - /**< Functions exported by PMD */ > - struct rte_device *dev; > - /**< Device info. supplied by probing */ > - > - RTE_STD_C11 > - uint8_t attached : 1; > - /**< Flag indicating the device is attached */ > - > - event_crypto_adapter_enqueue_t ca_enqueue; > - /**< Pointer to PMD crypto adapter enqueue function. */ > - > - uint64_t reserved_64s[4]; /**< Reserved for future fields */ > - void *reserved_ptrs[3]; /**< Reserved for future fields */ > -} __rte_cache_aligned; > - > -extern struct rte_eventdev *rte_eventdevs; > -/** @internal The pool of rte_eventdev structures. */ > - > #ifdef __cplusplus > } > #endif > diff --git a/lib/eventdev/version.map b/lib/eventdev/version.map index > e684154bf9..9f6eb4ba3c 100644 > --- a/lib/eventdev/version.map > +++ b/lib/eventdev/version.map > @@ -83,7 +83,6 @@ DPDK_22 { > rte_event_timer_arm_burst; > rte_event_timer_arm_tmo_tick_burst; > rte_event_timer_cancel_burst; > - rte_eventdevs; >=20 > #added in 21.11 > rte_event_fp_ops; > @@ -159,4 +158,5 @@ INTERNAL { > rte_event_pmd_release; > rte_event_pmd_vdev_init; > rte_event_pmd_vdev_uninit; > + rte_eventdevs; > }; > -- > 2.17.1