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 64893A0C47; Tue, 12 Oct 2021 15:37:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D1A244067C; Tue, 12 Oct 2021 15:37:01 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 3F0E840151 for ; Tue, 12 Oct 2021 15:37:00 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10134"; a="214087262" X-IronPort-AV: E=Sophos;i="5.85,367,1624345200"; d="scan'208";a="214087262" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2021 06:09:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,367,1624345200"; d="scan'208";a="591742695" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga004.jf.intel.com with ESMTP; 12 Oct 2021 06:09:26 -0700 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 12 Oct 2021 06:09:25 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 12 Oct 2021 06:09:25 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 12 Oct 2021 06:09:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kdIHp8deoJChWqHTvnuM296mqwIlkK3DjJwqOUNmfjhO/FPnovrx7hMV19dlxFNmraM5TBVcZWfsRzQDqTsVXEfmM9PY14k52em2p2MmlhAUU2B03vBa8XycNqo4YOcMJHh8faLSGxs8zunvbrKcEzmK3QGjm8bNP9PdUHd95NOv7oHoeFVkuKelcYfa12UKDeGqhA50Ga1t9d50A75SE2/htGGETYV6tLBWnKoqoLzm2nqh5DEeKm68NiR0kR32SMqtGGf9thUY3mHpULHrZnQbUvVngXZI4WA+DSOgvmoqhMkN9fU/DDSjY9Fsofw5EsFsZsKTmi74OczcnimTMQ== 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=Eag/sWzNw8PMmd17bHbqam6oAICQgHL66CsvE4ZUVig=; b=F2Td7IiAAFid+I6DlX7Bk6XicXEu3fmMPvquXoOdtuu/Ff2YhfXNXHklnA34sJYjsehnlbSZeNzVxN1Pr7mr1yKDAxURGbvP4u1TCL/NqOnEL5+9Ml3T2SAaWsFbcd8F+JvYI53tJWaEI1KeuMb5qYP2Mg+1wK/omlRZ614pclE626IjkEW+sh9nKOsgPJe7fwVKlYMQKyiLKr3ShxqD/iKO1TmLa6X+GeN1obLrX/h5FZDqta2jYFAtJ+/5VV1A2GW++2OxoJDgXrvpUburQC1qtLNM5zBHSMyV2qq/Urs4SvTNr07pik1/TfZa75TXCZROFjUByeR5c0u4mq/CHQ== 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=Eag/sWzNw8PMmd17bHbqam6oAICQgHL66CsvE4ZUVig=; b=hmqYP2RMEuYQ5bwEWDXrrmF1fGjH1BvDJp4pgiDpif5j6EzX47u33lW/V9V6WBhdw03ySf9hlQgmng99W/oDnL4gb9SheZJCoULmF5FClP4EaNPbURhMRXIAu6klCmL4a4QjJXjl95CXPd70j6dNtgDJRO+Kyhx1xsW1TkQQLPg= Received: from MWHPR1101MB2253.namprd11.prod.outlook.com (2603:10b6:301:52::17) by CO1PR11MB5124.namprd11.prod.outlook.com (2603:10b6:303:94::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.24; Tue, 12 Oct 2021 13:09:09 +0000 Received: from MWHPR1101MB2253.namprd11.prod.outlook.com ([fe80::d56:f55:5cb9:1b28]) by MWHPR1101MB2253.namprd11.prod.outlook.com ([fe80::d56:f55:5cb9:1b28%3]) with mapi id 15.20.4587.026; Tue, 12 Oct 2021 13:09:09 +0000 From: "Jayatheerthan, Jay" To: "Kundapura, Ganapati" , "jerinjacobk@gmail.com" , "dev@dpdk.org" CC: "Kinsella, Ray" , Thomas Monjalon , David Marchand Thread-Topic: [PATCH v3] eventdev/rx_adapter: add telemetry callbacks Thread-Index: AQHXv1N9LiQWIJcmVk2wXDxJ0ft+vqvPVXnw Date: Tue, 12 Oct 2021 13:09:09 +0000 Message-ID: References: <20211007134607.2351243-1-ganapati.kundapura@intel.com> <20211012102526.361419-1-ganapati.kundapura@intel.com> In-Reply-To: <20211012102526.361419-1-ganapati.kundapura@intel.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: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5bece12d-0c70-4485-aec6-08d98d817a84 x-ms-traffictypediagnostic: CO1PR11MB5124: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:27; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3zSUFUyZVahEfkWn/GphnbusuNNSX5nlflJNcIwSaIKpDyCMrElTV9weHO1kgKQNjHMLvlucSlxDDkutYrs6ZdN18hiflb2jGyYP5CLDSY/cAZ3f0mMgSpUszxsC/5zxMbFGNVE5tKTmu5mU42kVXCjUpwJi66N9oCivRXVXkssxOwfhWFIm7/tY72rchvhd/j7iZpubOllRo0tK8rc309jiXU9T0vijg3Pjv5BUuDLreEUz+NpVsu5GKZP7hUSiXTnbgkVvbMn9sgV2vzKoG8r37i+oliLNmrO1wg7mRoA2Qq7VyJ7yLKquKCnxaijc+HSTHuCvZWYb2p1mIk+P2C0COAEn0sftLsL2MAOtyTGpytAv7vWb8hIBB45z54KYx2lBAagfZd0PVQzRBmv2QVAJ2bsbp0MZvREdOReDnNdLuBQogzsTEmkF8Oy1krWgT2snC+Etcv4WZZ9exXl3EpdzaPCDa2mEeo4CKff4S7Y88bNtzTAB8fuYHkinWdg5doRobwH7c5odBLo9ZuRBvcVdTEN6ddYoIRX+CvXW83QFwJW/D2MiVejF0uR44eosrbU8GwrBASJNJRZp5Snqac64jLOhnO8ohwXR8EdsQ7/TVv37tpXtZe5qKPwqbcM9HsKiVKxFItfALq6li0nzsoHk3MTkono2nHZ6NUyGkQYiJzHtdLj/fiHTmB886jiWCs0kiDW5TmXUQduxISESxw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1101MB2253.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(7696005)(8676002)(26005)(76116006)(9686003)(54906003)(110136005)(86362001)(83380400001)(38100700002)(55016002)(186003)(122000001)(316002)(33656002)(5660300002)(2906002)(6506007)(64756008)(66476007)(4326008)(52536014)(66556008)(66946007)(53546011)(38070700005)(66446008)(508600001)(71200400001)(8936002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3IKBwue/FauCHUS5S1lJYnn2zlcEw1AmfM4dSwQy448SptooeMFN8I1jQQeG?= =?us-ascii?Q?cQnTBo1nby7/JmKtagEcqtw5QKGnWAuOPBxb2A3baW0GMmIb0danOKyFb8p7?= =?us-ascii?Q?7nJShPgUPqucgd2adVMgkN5O5ZxU5Shq7VpH8jXlZxnrwNVcPev09ygmWl6g?= =?us-ascii?Q?1g3+cAmio/uXY1Kdaya7u+rJgaqhsiKDRAlyjfzMip+FZcQuEGjNW5CFTj9B?= =?us-ascii?Q?/BAAUtWm09eM/1ntCcTdjq+ToVIaNclDcOn6/cYX9OQRq/+o6ScLBGaLDGLf?= =?us-ascii?Q?2Agi3j2sgW/4/5WR2l8ZjqginIbEGQ65vHIl/D7U89Vu6ZjQ8Lon9tUdsYw1?= =?us-ascii?Q?5iNz5htj/NgacZrfsfrW0WlX6OC1Vsq7/nLcOyyrJC39xFKZeJMlFvDVoIwJ?= =?us-ascii?Q?e/981GfzGzufhZiepVP0Ou6hUcqAbUGCJ4V4+mtusL7xdAqodZL7n+aVWBeh?= =?us-ascii?Q?9ckasS/AG5bWVRo1MTTKz1vjDITQz5Jyz57Jx9vB9k6+8kA6U+w5Iz01c+a1?= =?us-ascii?Q?28mUOY3aUdreJ5/Gb9ePwMK9haZrqA4RQHsdo9GFB/BNmd/b+hMmGCF/mb04?= =?us-ascii?Q?VymvNMKOGmbpQGyxsk7CpwqfKYHH4gA7FsVFk1zSb7egrvjhMRM4xFsoDh5Q?= =?us-ascii?Q?jQwx8vQJmWLKXolyC3PoysasDacnln2eG+83cJxdxa3O74dgLS5eQXceOZnD?= =?us-ascii?Q?vfhcyWSK1KvpplWMc31DgrV021vV2/lVaEIZb9HiILJS+hoGj29Xp9L4lB15?= =?us-ascii?Q?frWaDrWNfO/LGDARUVVah3rbxfA78gDbjCkk1Y26E4S5BW0JgOTKZbAqlFwD?= =?us-ascii?Q?Mn9byQZ2lsbZIdbqEyrPZLvq9GiBrmrpb3gzca8EaEuUjf2mAl3cRuMHOgrA?= =?us-ascii?Q?joV6lRCWkj6ut20n7veubutIuKzdtLTsjFBbBQnZOtw5U0ldrxDQ5CwdQRJU?= =?us-ascii?Q?3cEQl1ZVR33Y3c+OXkjPQlXzhP57m/RDqFO+yof6s8Bw1CyduekSM5pp5DhB?= =?us-ascii?Q?B4slU1LA2BrxbbNtqH7YdD2MDyvxtJ2Lnj22Kv8n4g8ddoY1ek+izsnxfuYE?= =?us-ascii?Q?gV1rLQLZCmqJ3tpz5kW1cQDGp0xNTcFsWMUy1WWEbIUSnlnx45cUE78y9MPK?= =?us-ascii?Q?hDQDs/FLIu9AS0GD27pTQxOt3ieE+VkWTC9pG+kDLTi3B/BXJGOMOP4PpQM3?= =?us-ascii?Q?SpVUHnNeR6BZ3DrGNM8eLLU6IpDqjS9lqpym5vHY6X6wjVZl0+pT8vigb0nx?= =?us-ascii?Q?93wHc4pwZXIc7kjAI3C9YM68hVU8U6JJ2DRtDsuy/XVzUHYSLGmSmR70sE6N?= =?us-ascii?Q?zfCRj4zVPUl7w3ilp7VAJwhE?= 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: MWHPR1101MB2253.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5bece12d-0c70-4485-aec6-08d98d817a84 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Oct 2021 13:09:09.2080 (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: wfv/L0X3kYULzhdx82WJ4Ip3b4jGNKb4XINM6dFw+cQHVYZD89r0unD6wyxa+WM/f+1HbzEzt6FqPEX3RqwXExlXrdDaVOLfLeBrIYDVqpI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR11MB5124 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v3] eventdev/rx_adapter: add telemetry callbacks 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: Jay Jayatheerthan + @Ray Kinsella @Thomas Monjalon @David Marchand > -----Original Message----- > From: Kundapura, Ganapati > Sent: Tuesday, October 12, 2021 3:55 PM > To: jerinjacobk@gmail.com; dev@dpdk.org > Cc: Jayatheerthan, Jay > Subject: [PATCH v3] eventdev/rx_adapter: add telemetry callbacks >=20 > Added telemetry callbacks to get Rx adapter stats, reset stats and > to get Rx queue config information. >=20 > Signed-off-by: Ganapati Kundapura > --- > v3: > * Updated release notes > * Addressed review comments >=20 > v2: > * Fixed checkpatch warning > --- >=20 > diff --git a/doc/guides/rel_notes/release_21_11.rst b/doc/guides/rel_note= s/release_21_11.rst > index dfc2cbd..9955e52 100644 > --- a/doc/guides/rel_notes/release_21_11.rst > +++ b/doc/guides/rel_notes/release_21_11.rst > @@ -130,6 +130,10 @@ New Features > * Added tests to validate packets hard expiry. > * Added tests to verify tunnel header verification in IPsec inbound. >=20 > +* **Updated rte_event_eth_rx_adapter_stats structure > + * Added 'uint64_t rx_event_buf_count' > + * Added 'uint64_t rx_event_buf_size' > + >=20 > Removed Items > ------------- > diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_e= vent_eth_rx_adapter.c > index 9ac976c..7e3bf62 100644 > --- a/lib/eventdev/rte_event_eth_rx_adapter.c > +++ b/lib/eventdev/rte_event_eth_rx_adapter.c > @@ -18,6 +18,7 @@ > #include > #include > #include > +#include >=20 > #include "rte_eventdev.h" > #include "eventdev_pmd.h" > @@ -2852,6 +2853,7 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id, > struct rte_event_eth_rx_adapter_stats *stats) > { > struct rte_event_eth_rx_adapter *rx_adapter; > + struct rte_eth_event_enqueue_buffer *buf; > struct rte_event_eth_rx_adapter_stats dev_stats_sum =3D { 0 }; > struct rte_event_eth_rx_adapter_stats dev_stats; > struct rte_eventdev *dev; > @@ -2887,8 +2889,11 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id, > if (rx_adapter->service_inited) > *stats =3D rx_adapter->stats; >=20 > + buf =3D &rx_adapter->event_enqueue_buffer; > stats->rx_packets +=3D dev_stats_sum.rx_packets; > stats->rx_enq_count +=3D dev_stats_sum.rx_enq_count; > + stats->rx_event_buf_count =3D buf->count; > + stats->rx_event_buf_size =3D buf->events_size; >=20 > return 0; > } > @@ -3052,3 +3057,146 @@ rte_event_eth_rx_adapter_queue_conf_get(uint8_t i= d, >=20 > return 0; > } > + > +#define RXA_ADD_DICT(stats, s) rte_tel_data_add_dict_u64(d, #s, stats.s) > + > +static int > +handle_rxa_stats(const char *cmd __rte_unused, > + const char *params, > + struct rte_tel_data *d) > +{ > + uint8_t rx_adapter_id; > + struct rte_event_eth_rx_adapter_stats rx_adptr_stats; > + > + if (params =3D=3D NULL || strlen(params) =3D=3D 0 || !isdigit(*params)) > + return -1; > + > + /* Get Rx adapter ID from parameter string */ > + rx_adapter_id =3D atoi(params); > + RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(rx_adapter_id, -EINVAL); > + > + /* Get Rx adapter stats */ > + if (rte_event_eth_rx_adapter_stats_get(rx_adapter_id, > + &rx_adptr_stats)) { > + RTE_EDEV_LOG_ERR("Failed to get Rx adapter stats\n"); > + return -1; > + } > + > + rte_tel_data_start_dict(d); > + rte_tel_data_add_dict_u64(d, "rx_adapter_id", rx_adapter_id); > + RXA_ADD_DICT(rx_adptr_stats, rx_packets); > + RXA_ADD_DICT(rx_adptr_stats, rx_poll_count); > + RXA_ADD_DICT(rx_adptr_stats, rx_dropped); > + RXA_ADD_DICT(rx_adptr_stats, rx_enq_retry); > + RXA_ADD_DICT(rx_adptr_stats, rx_event_buf_count); > + RXA_ADD_DICT(rx_adptr_stats, rx_event_buf_size); > + RXA_ADD_DICT(rx_adptr_stats, rx_enq_count); > + RXA_ADD_DICT(rx_adptr_stats, rx_enq_start_ts); > + RXA_ADD_DICT(rx_adptr_stats, rx_enq_block_cycles); > + RXA_ADD_DICT(rx_adptr_stats, rx_enq_end_ts); > + RXA_ADD_DICT(rx_adptr_stats, rx_intr_packets); > + > + return 0; > +} > + > +static int > +handle_rxa_stats_reset(const char *cmd __rte_unused, > + const char *params, > + struct rte_tel_data *d __rte_unused) > +{ > + uint8_t rx_adapter_id; > + > + if (params =3D=3D NULL || strlen(params) =3D=3D 0 || ~isdigit(*params)) > + return -1; > + > + /* Get Rx adapter ID from parameter string */ > + rx_adapter_id =3D atoi(params); > + RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(rx_adapter_id, -EINVAL); > + > + /* Reset Rx adapter stats */ > + if (rte_event_eth_rx_adapter_stats_reset(rx_adapter_id)) { > + RTE_EDEV_LOG_ERR("Failed to reset Rx adapter stats\n"); > + return -1; > + } > + > + return 0; > +} > + > +static int > +handle_rxa_get_queue_conf(const char *cmd __rte_unused, > + const char *params, > + struct rte_tel_data *d) > +{ > + uint8_t rx_adapter_id; > + uint16_t rx_queue_id; > + int eth_dev_id; > + char *token, *l_params; > + struct rte_event_eth_rx_adapter_queue_conf queue_conf; > + > + if (params =3D=3D NULL || strlen(params) =3D=3D 0 || !isdigit(*params)) > + return -1; > + > + /* Get Rx adapter ID from parameter string */ > + l_params =3D strdup(params); > + token =3D strtok(l_params, ","); > + rx_adapter_id =3D strtoul(token, NULL, 10); > + RTE_EVENT_ETH_RX_ADAPTER_ID_VALID_OR_ERR_RET(rx_adapter_id, -EINVAL); > + > + token =3D strtok(NULL, ","); > + if (token =3D=3D NULL || strlen(token) =3D=3D 0 || !isdigit(*token)) > + return -1; > + > + /* Get device ID from parameter string */ > + eth_dev_id =3D strtoul(token, NULL, 10); > + RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(eth_dev_id, -EINVAL); > + > + token =3D strtok(NULL, ","); > + if (token =3D=3D NULL || strlen(token) =3D=3D 0 || !isdigit(*token)) > + return -1; > + > + /* Get Rx queue ID from parameter string */ > + rx_queue_id =3D strtoul(token, NULL, 10); > + if (rx_queue_id >=3D rte_eth_devices[eth_dev_id].data->nb_rx_queues) { > + RTE_EDEV_LOG_ERR("Invalid rx queue_id %u", rx_queue_id); > + return -EINVAL; > + } > + > + token =3D strtok(NULL, "\0"); > + if (token !=3D NULL) > + RTE_EDEV_LOG_ERR("Extra parameters passed to eventdev" > + " telemetry command, igrnoring"); > + > + if (rte_event_eth_rx_adapter_queue_conf_get(rx_adapter_id, eth_dev_id, > + rx_queue_id, &queue_conf)) { > + RTE_EDEV_LOG_ERR("Failed to get Rx adapter queue config"); > + return -1; > + } > + > + rte_tel_data_start_dict(d); > + rte_tel_data_add_dict_u64(d, "rx_adapter_id", rx_adapter_id); > + rte_tel_data_add_dict_u64(d, "eth_dev_id", eth_dev_id); > + rte_tel_data_add_dict_u64(d, "rx_queue_id", rx_queue_id); > + RXA_ADD_DICT(queue_conf, rx_queue_flags); > + RXA_ADD_DICT(queue_conf, servicing_weight); > + RXA_ADD_DICT(queue_conf.ev, queue_id); > + RXA_ADD_DICT(queue_conf.ev, sched_type); > + RXA_ADD_DICT(queue_conf.ev, priority); > + RXA_ADD_DICT(queue_conf.ev, flow_id); > + > + return 0; > +} > + > +RTE_INIT(rxa_init_telemetry) > +{ > + rte_telemetry_register_cmd("/eventdev/rxa_stats", > + handle_rxa_stats, > + "Returns Rx adapter stats. Parameter: rxa_id"); > + > + rte_telemetry_register_cmd("/eventdev/rxa_stats_reset", > + handle_rxa_stats_reset, > + "Reset Rx adapter stats. Parameter: rxa_id"); > + > + rte_telemetry_register_cmd("/eventdev/rxa_queue_conf", > + handle_rxa_get_queue_conf, > + "Returns Rx queue config. Parameter: rxa_id, dev_id, queue_id"); > +} > diff --git a/lib/eventdev/rte_event_eth_rx_adapter.h b/lib/eventdev/rte_e= vent_eth_rx_adapter.h > index 70ca427..c4257e7 100644 > --- a/lib/eventdev/rte_event_eth_rx_adapter.h > +++ b/lib/eventdev/rte_event_eth_rx_adapter.h > @@ -232,6 +232,10 @@ struct rte_event_eth_rx_adapter_stats { > */ > uint64_t rx_intr_packets; > /**< Received packet count for interrupt mode Rx queues */ > + uint64_t rx_event_buf_count; > + /**< Rx event buffered count */ > + uint64_t rx_event_buf_size; > + /**< Rx event buffer size */ > }; >=20 > /** > -- > 2.6.4