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 A6CE9A034F; Mon, 11 Oct 2021 11:51:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8AEEE40E01; Mon, 11 Oct 2021 11:51:23 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id D185840142 for ; Mon, 11 Oct 2021 11:51:21 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10133"; a="250224315" X-IronPort-AV: E=Sophos;i="5.85,364,1624345200"; d="scan'208";a="250224315" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2021 02:51:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,364,1624345200"; d="scan'208";a="658585308" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga005.jf.intel.com with ESMTP; 11 Oct 2021 02:51:20 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Mon, 11 Oct 2021 02:51:20 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Mon, 11 Oct 2021 02:51:20 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.43) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Mon, 11 Oct 2021 02:51:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Uv8e8cgjRE9v3j9RJWrRvqtaED5wGJia8y21UbFnjndTVgnR71NYyPa3it8c+7DH4wWLeGHglKCO/pZ5vLGb01AI2pgntojXLb9W9XIIlkF0xFFD09j1/RraQq/TrLr12JldmRyDUv4QWYT23mG+ixtB4ZlwMBWwvKWCSE0ZMeghXZekaXMEA6dt2RZO8kbDHUELdBtKeTYBg4LwO6O1T0kNQ8fuHGAKCt/esdpm5/3xlq9t6u0LHis/ZKzIBASqObl8o0+3KU4sngIfw40M63lTED9BgjhM9tD35VagNzZt+9jffc1/6C/e5RjpbdL0Vm0gDj687n9ous1kgKatPg== 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=9EtzhxYDNVgKdTYSE+HbLzoMoc8gPA/quWqyafwCE4Q=; b=BeirXuDUfGCZAqIqWMqkZwH4iRmfyLYS5Tw8oeWzcB6JJ8UtwHJydi3RaUAIJQQRqM8SGn3EsvcSjj3YiDMnmA/s1ZhUlqnmmozzhnkoevbD9d5O2DG13f3VcyM7eXTBiTAI3ouAAAKww+msE4qzlkJAjsTxpB78ryG1JLzamY+C7j+5adN1GnRnMJTl3Xa6CYrc7wMBp2PUmOfyP/fNP48d3yC+tMeNLl9HxWQDrIDgyFE6HYedVL91FILNnrVQ1P73cTQKw56IUp4IrV6OlG2kIINFUYjFY3O/N6kTZedqiPGNRZXf0VlIiYmmfPCFUIYAEQpYfNDdasTghwNS6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9EtzhxYDNVgKdTYSE+HbLzoMoc8gPA/quWqyafwCE4Q=; b=CruL0X8pusppUh8dITMCcbeFshb/3XrVSKh4bGeKs8yw5CF9VFO4ozJanakz/9rW2x2VbSJeYXz6XhHZRROPETSCHLigfLQ/ib7hMfMYrYZ6nM0brQ3sxKsX5b3FVgiSiLw9LRpXSEWk31Z5vRGr8hfO90PoLbHfocm/Mw44WRs= Received: from PH0PR11MB4824.namprd11.prod.outlook.com (2603:10b6:510:38::13) by PH0PR11MB4966.namprd11.prod.outlook.com (2603:10b6:510:42::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.19; Mon, 11 Oct 2021 09:51:18 +0000 Received: from PH0PR11MB4824.namprd11.prod.outlook.com ([fe80::5d01:114c:73be:1a19]) by PH0PR11MB4824.namprd11.prod.outlook.com ([fe80::5d01:114c:73be:1a19%8]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 09:51:18 +0000 From: "Gujjar, Abhinandan S" To: "pbhagavatula@marvell.com" , "jerinj@marvell.com" , "Jayatheerthan, Jay" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 06/14] eventdev: use new API for inline functions Thread-Index: AQHXun6WPDp/dAuV/Uyxi+n/TjbMk6vNlepg Date: Mon, 11 Oct 2021 09:51:18 +0000 Message-ID: References: <20211003082710.8398-1-pbhagavatula@marvell.com> <20211006065012.16508-1-pbhagavatula@marvell.com> <20211006065012.16508-6-pbhagavatula@marvell.com> In-Reply-To: <20211006065012.16508-6-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 authentication-results: marvell.com; dkim=none (message not signed) header.d=none;marvell.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a57a9f01-d582-4fe1-11c5-08d98c9cac62 x-ms-traffictypediagnostic: PH0PR11MB4966: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +TZz6Xf8LwX/Ap/aMj2yCxJx4q14ShIuMOTzgA/qONMEJ/gtsapo6oXtA23MPkGzn1G2ESb4TRCZ5U0kFYH7rTj+YvMYHFPNyJag0fzNOy067fkCIf0h24WS15HmQXrHt65xNQAwvINFEkkfJoXrQWn05SEQB8NOBmDO3ZZgh82K4NKHe1X8PU2TdgYnzEMTpZv7SVY2hmcYNyg8GYOlfMOJ7PB3QxeIirXN41p8p5l8zhqF/xgWM/oiF7eW+RTdRNSN5BtYLhpLIw6/ZfiPzn47ToeILeXpwvVe4aOsXax1HMxGse6b5F2oTJkMTC2ezO8n2hhpp+TW8hvuJ+bzEC7dIikhSqK1sKBk9iBNTIltuKPvTyeJcDhOmR8fGwMJOE5LDDinMQKr4yjCy0lu/Rkl+0LgjbRZpcuAIhD52dS7yhbzCnYHb2b99FWX35JAFdR4L/EQpNov/D/azOBIVTO+r50VaTrd7Ndvc7aLd4jYs3rmA6e5uWIkkyD5sBHJ3EzUayvnN6EdBbyqtfwjVr7j1SRl05BrOzXDr+jG23VkuI7VNnKVq8X8lV5FlYsuZ2oHSZ9E0/6nvHe2vOvikWrvNEvCFZPOnA2Z9c52u4ReVHgaPPG2yVAFo0VTzmM/qVeqm7oCH1a/vuFHtXTG4oiTJQaCIrLyqQ8AJiq/fP9BILbaD64//rvOrn45TT9LmDnuPGW4dTdOE776KpOgWw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB4824.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(186003)(5660300002)(52536014)(6636002)(8936002)(66446008)(64756008)(66556008)(508600001)(110136005)(38100700002)(33656002)(26005)(122000001)(71200400001)(66946007)(66476007)(7696005)(9686003)(8676002)(55016002)(316002)(53546011)(6506007)(4326008)(83380400001)(38070700005)(2906002)(86362001)(76116006); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rg4TGUfRqW14XfytsgXBi+wETviakoRKAyV8QdrIZrcmp308egVYZQFKtCg7?= =?us-ascii?Q?0XoBObIjnsfvQUZqGRF3sutP6vgOsDsZerq/OexPZHAEmlnHhaOlRu1EaPO8?= =?us-ascii?Q?Ww1WTXXejBohOwmLvPKprhIR4+5VV0QC8R0lv3AmveBiwrqJO3AYIGUoWfg9?= =?us-ascii?Q?Hztg9ph0VVvp9+ldP1oVbv/VLax27lkIyRoeblr0PxmB7/rXIw1So7MsVnLc?= =?us-ascii?Q?zbJflwhfEUhaJXYFdjlC77AtqYCgDINDsKS5gkP+UygHtj7UBZdmwM2+erC7?= =?us-ascii?Q?ksxdZjhU6R/eIy3BGGz7yOzuHcG1LjL3+plA2cL3ghMngrLyUbdwNmOQUFRm?= =?us-ascii?Q?ddZTQ7r4od4/QP4YFWAMT+SuWjwu+H49LdjQxPEXf8AbSta4lhQBThukaGV5?= =?us-ascii?Q?X1xl+/sOK81drS4Ox1N/nYkggn6YapN0yWtDM/JEE02J1fXnJHozNnpwJ6cq?= =?us-ascii?Q?7+ZPOTspr+RR/gS90H5ZyoAh1QBHjUQ0Z2JfiCD4Qja3a41RHBES8jlH1RgA?= =?us-ascii?Q?W7BpFdAeCV/PfIukuM3wyLNOdFQ2UrMmTt2BooZErmIzIEX9ZYe3s2TKiu+O?= =?us-ascii?Q?URwvoEGlU7ZCFVXKR7IG6pEo47DBXq9hiroT6FGllmejI3+96N8UXWVEi2Fe?= =?us-ascii?Q?iJvVanQdQP62rtFp1BXviRoLne74TOn8reWT2rwVfh3eq2kIVqsvfZ6sW+wv?= =?us-ascii?Q?TJNDgfchoik9EVCNEKk6VStNVJTtQkincPp528Ea3YCuFsF4aDStrKVHSPQ1?= =?us-ascii?Q?XU5GEj5gIge3Rr87CGS2SNV9QbC0i3x1z1kcoYfkjI6B6M7INk/zb8ZHnn1n?= =?us-ascii?Q?72vczAXE/1mHwjMFde5qclVLVPqPKAxAegcfzHKlAl7JLqdQGx6a3Ijh8VF4?= =?us-ascii?Q?D6SzSu8TltuTQ4/8x6BB10/7nD7yASb+LCnyChRcGxu3KXKY06roRr08W42h?= =?us-ascii?Q?Ac8w/aBN1e9f/kU3CxFGJt3vmAjym++wpkyuKJF8HlDcEi1QtvNHWnjhFyEk?= =?us-ascii?Q?nMPsPInJCobbV3F3Iw3fjD6fN4UfN+OWoYhTy+mxUn4jC2YtU2FL6MooqjHA?= =?us-ascii?Q?L+51TzADamVhzIbjaMeoD4KiTXKiBUxa/9i6Vektj8Nn5wBYJkM/xTX5MOit?= =?us-ascii?Q?t15yr1F9of2bjevL/3hCY8iPYFRV5HPI4EnikStQRu4VnOwFn8wlL4++k6+f?= =?us-ascii?Q?gEhCjRgo08L89nrIdp4Dkf/+E3nA5wLcvY0dn2e0NgP1Uq8iUadg7ooayFc4?= =?us-ascii?Q?IRDcqP9TV4N0F9d/4szBZRNTQTRl6njP5KT2rtiPN8XvhuLE92haOEAChUrV?= =?us-ascii?Q?Yot0ImbzGh3tTtxcbLOVFXWY?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4824.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a57a9f01-d582-4fe1-11c5-08d98c9cac62 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2021 09:51:18.2927 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dsnlEuLaEAwfesx4F3vNN9R5a3I4thOsVUoxOq6YNt2dU0d0Y1ESAT8lC6pfHmwFjnMYNON7EQenQqXO2VtePQz1l21bIup7LSc2SKrIIw8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4966 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3 06/14] eventdev: use new API for inline functions 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" Acked-by: Abhinandan Gujjar > -----Original Message----- > From: pbhagavatula@marvell.com > Sent: Wednesday, October 6, 2021 12:20 PM > To: jerinj@marvell.com; Gujjar, Abhinandan S > ; Jayatheerthan, Jay > > Cc: dev@dpdk.org; Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH v3 06/14] eventdev: use new API for inline > functions >=20 > From: Pavan Nikhilesh >=20 > Use new driver interface for the fastpath enqueue/dequeue inline > functions. >=20 > Signed-off-by: Pavan Nikhilesh > Acked-by: Jay Jayatheerthan > --- > lib/eventdev/rte_event_crypto_adapter.h | 15 +++++--- > lib/eventdev/rte_event_eth_tx_adapter.h | 15 ++++---- > lib/eventdev/rte_eventdev.h | 46 +++++++++++++++---------- > 3 files changed, 47 insertions(+), 29 deletions(-) >=20 > diff --git a/lib/eventdev/rte_event_crypto_adapter.h > b/lib/eventdev/rte_event_crypto_adapter.h > index 431d05b6ed..eb82818d05 100644 > --- a/lib/eventdev/rte_event_crypto_adapter.h > +++ b/lib/eventdev/rte_event_crypto_adapter.h > @@ -568,12 +568,19 @@ rte_event_crypto_adapter_enqueue(uint8_t > dev_id, > struct rte_event ev[], > uint16_t nb_events) > { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; > + void *port; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > + port =3D fp_ops->data[port_id]; > #ifdef RTE_LIBRTE_EVENTDEV_DEBUG > - RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -EINVAL); > + if (dev_id >=3D RTE_EVENT_MAX_DEVS || > + port_id >=3D RTE_EVENT_MAX_PORTS_PER_DEV) { > + rte_errno =3D EINVAL; > + return 0; > + } >=20 > - if (port_id >=3D dev->data->nb_ports) { > + if (port =3D=3D NULL) { > rte_errno =3D EINVAL; > return 0; > } > @@ -581,7 +588,7 @@ rte_event_crypto_adapter_enqueue(uint8_t dev_id, > rte_eventdev_trace_crypto_adapter_enqueue(dev_id, port_id, ev, > nb_events); >=20 > - return dev->ca_enqueue(dev->data->ports[port_id], ev, > nb_events); > + return fp_ops->ca_enqueue(port, ev, nb_events); > } >=20 > #ifdef __cplusplus > diff --git a/lib/eventdev/rte_event_eth_tx_adapter.h > b/lib/eventdev/rte_event_eth_tx_adapter.h > index 8c59547165..3908c2ded5 100644 > --- a/lib/eventdev/rte_event_eth_tx_adapter.h > +++ b/lib/eventdev/rte_event_eth_tx_adapter.h > @@ -355,16 +355,19 @@ rte_event_eth_tx_adapter_enqueue(uint8_t > dev_id, > uint16_t nb_events, > const uint8_t flags) > { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; > + void *port; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > + port =3D fp_ops->data[port_id]; > #ifdef RTE_LIBRTE_EVENTDEV_DEBUG > if (dev_id >=3D RTE_EVENT_MAX_DEVS || > - !rte_eventdevs[dev_id].attached) { > + port_id >=3D RTE_EVENT_MAX_PORTS_PER_DEV) { > rte_errno =3D EINVAL; > return 0; > } >=20 > - if (port_id >=3D dev->data->nb_ports) { > + if (port =3D=3D NULL) { > rte_errno =3D EINVAL; > return 0; > } > @@ -372,11 +375,9 @@ rte_event_eth_tx_adapter_enqueue(uint8_t > dev_id, > rte_eventdev_trace_eth_tx_adapter_enqueue(dev_id, port_id, ev, > nb_events, flags); > if (flags) > - return dev->txa_enqueue_same_dest(dev->data- > >ports[port_id], > - ev, nb_events); > + return fp_ops->txa_enqueue_same_dest(port, ev, > nb_events); > else > - return dev->txa_enqueue(dev->data->ports[port_id], ev, > - nb_events); > + return fp_ops->txa_enqueue(port, ev, nb_events); > } >=20 > /** > diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h > index 1b11d4576d..31fa9ac4b8 100644 > --- a/lib/eventdev/rte_eventdev.h > +++ b/lib/eventdev/rte_eventdev.h > @@ -1747,15 +1747,19 @@ __rte_event_enqueue_burst(uint8_t dev_id, > uint8_t port_id, > const struct rte_event ev[], uint16_t nb_events, > const event_enqueue_burst_t fn) > { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; > + void *port; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > + port =3D fp_ops->data[port_id]; > #ifdef RTE_LIBRTE_EVENTDEV_DEBUG > - if (dev_id >=3D RTE_EVENT_MAX_DEVS || > !rte_eventdevs[dev_id].attached) { > + if (dev_id >=3D RTE_EVENT_MAX_DEVS || > + port_id >=3D RTE_EVENT_MAX_PORTS_PER_DEV) { > rte_errno =3D EINVAL; > return 0; > } >=20 > - if (port_id >=3D dev->data->nb_ports) { > + if (port =3D=3D NULL) { > rte_errno =3D EINVAL; > return 0; > } > @@ -1766,9 +1770,9 @@ __rte_event_enqueue_burst(uint8_t dev_id, > uint8_t port_id, > * requests nb_events as const one > */ > if (nb_events =3D=3D 1) > - return (*dev->enqueue)(dev->data->ports[port_id], ev); > + return (fp_ops->enqueue)(port, ev); > else > - return fn(dev->data->ports[port_id], ev, nb_events); > + return fn(port, ev, nb_events); > } >=20 > /** > @@ -1818,10 +1822,11 @@ static inline uint16_t > rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id, > const struct rte_event ev[], uint16_t nb_events) { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events, > - dev->enqueue_burst); > + fp_ops->enqueue_burst); > } >=20 > /** > @@ -1869,10 +1874,11 @@ static inline uint16_t > rte_event_enqueue_new_burst(uint8_t dev_id, uint8_t port_id, > const struct rte_event ev[], uint16_t nb_events) { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events, > - dev->enqueue_new_burst); > + fp_ops->enqueue_new_burst); > } >=20 > /** > @@ -1920,10 +1926,11 @@ static inline uint16_t > rte_event_enqueue_forward_burst(uint8_t dev_id, uint8_t port_id, > const struct rte_event ev[], uint16_t > nb_events) { > - const struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > return __rte_event_enqueue_burst(dev_id, port_id, ev, nb_events, > - dev->enqueue_forward_burst); > + fp_ops->enqueue_forward_burst); > } >=20 > /** > @@ -1996,15 +2003,19 @@ static inline uint16_t > rte_event_dequeue_burst(uint8_t dev_id, uint8_t port_id, struct rte_event > ev[], > uint16_t nb_events, uint64_t timeout_ticks) { > - struct rte_eventdev *dev =3D &rte_eventdevs[dev_id]; > + const struct rte_event_fp_ops *fp_ops; > + void *port; >=20 > + fp_ops =3D &rte_event_fp_ops[dev_id]; > + port =3D fp_ops->data[port_id]; > #ifdef RTE_LIBRTE_EVENTDEV_DEBUG > - if (dev_id >=3D RTE_EVENT_MAX_DEVS || > !rte_eventdevs[dev_id].attached) { > + if (dev_id >=3D RTE_EVENT_MAX_DEVS || > + port_id >=3D RTE_EVENT_MAX_PORTS_PER_DEV) { > rte_errno =3D EINVAL; > return 0; > } >=20 > - if (port_id >=3D dev->data->nb_ports) { > + if (port =3D=3D NULL) { > rte_errno =3D EINVAL; > return 0; > } > @@ -2015,11 +2026,10 @@ rte_event_dequeue_burst(uint8_t dev_id, > uint8_t port_id, struct rte_event ev[], > * requests nb_events as const one > */ > if (nb_events =3D=3D 1) > - return (*dev->dequeue)(dev->data->ports[port_id], ev, > - timeout_ticks); > + return (fp_ops->dequeue)(port, ev, timeout_ticks); > else > - return (*dev->dequeue_burst)(dev->data->ports[port_id], > ev, > - nb_events, timeout_ticks); > + return (fp_ops->dequeue_burst)(port, ev, nb_events, > + timeout_ticks); > } >=20 > #ifdef __cplusplus > -- > 2.17.1