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 59EC2A0C55; Wed, 13 Oct 2021 14:09:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE257410DA; Wed, 13 Oct 2021 14:09:18 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id CCA9A40E64 for ; Wed, 13 Oct 2021 14:09:16 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="224852547" X-IronPort-AV: E=Sophos;i="5.85,370,1624345200"; d="scan'208";a="224852547" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 05:09:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,370,1624345200"; d="scan'208";a="441622512" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga006.jf.intel.com with ESMTP; 13 Oct 2021 05:09:15 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 13 Oct 2021 05:09:15 -0700 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 13 Oct 2021 05:09:14 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 13 Oct 2021 05:09:14 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 13 Oct 2021 05:09:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MJ75EkClX0GPE13oZqhJiATDFbpmdgV1LzSTZWH8ytbg0PBA20pztBN7CTQqgxXNJJCbJxwSZWgLvcqXnEZQQNrlKFBbw9W0TiZ8bQtGnGHHS6RfMar96LRNVOIKupvwoPKt0QS+Y3MVMzfyknIwtnWRZ5Iqk6Boc+rL5vi9Y37bA0EamIMxlLEzFgAYXHR4xZfKClZCHnTIZ5WylAFRzx2XJd4TgjdHubsxNyjDtLX+s6mppk+s+eqsYJaLQbvqCsT+JIMwT//5unGizY5pL4HCNiVEydAXkw19dSVQu+srnuF4UJTEkUw5F6hjk6ydzmPOwIptpCCEIY3RIqcB5w== 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=gSKjhyT6n95/ZQDKZ967jSVi4SiJUfWlzHJVGVtrvj4=; b=Cea08Ct9QfzTDlzoIgGuwdjE3b1XkEQZ+nUc4q7u+Pk+CYOq+8lZu9RqsrabqU5cBUEZIr9B5C9/y2DWQCfKQXbJqFaoda2uBkx2EFyH0uENDJQGTc/6Zf7FHtguuJ9m8fuDBpA5IZ9GT1+9+8daNHDZoUgUR2sQn9D+CPSHcJ1xL96G92I8uU8kbWtOtxf+ErbVwXW8TXKyu3Iq2BKitv2i5hpniPaibBLCoCrunf9ebZSBkPcoFq0ykpbnh2Ck5iiqFqtPGVFxcMomP8rBIER6b1hWdVcOplly8qK7XkiYPhtoK6TJQOjvUWEhbrzfWI6Oip9dnfL6NUnacXBLTQ== 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=gSKjhyT6n95/ZQDKZ967jSVi4SiJUfWlzHJVGVtrvj4=; b=sm8G6fiMbzcmpj5aNjE0zhRzuk+4FOZCAlkzzCQbSgWTBFuVUHCkpYxNyq8hgakjn0qBu776kPH2QYHOqCJaM2/oqHX1kVwxVOZugq52XRfD86qY94YTkWr4p6T0VD9xVlZ/g00iqLzE3fVsOuo99m7hIUTDAh+P1vO9in8p6zo= Received: from DM6PR11MB3868.namprd11.prod.outlook.com (2603:10b6:5:19f::13) by DM6PR11MB3692.namprd11.prod.outlook.com (2603:10b6:5:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25; Wed, 13 Oct 2021 12:09:06 +0000 Received: from DM6PR11MB3868.namprd11.prod.outlook.com ([fe80::89fd:9564:349a:c59e]) by DM6PR11MB3868.namprd11.prod.outlook.com ([fe80::89fd:9564:349a:c59e%4]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 12:09:06 +0000 From: "Naga Harish K, S V" To: "Kundapura, Ganapati" , "jerinjacobk@gmail.com" , "dev@dpdk.org" CC: "Jayatheerthan, Jay" Thread-Topic: [dpdk-dev] [PATCH v4] eventdev/rx_adapter: add telemetry callbacks Thread-Index: AQHXwAf7B4FWMucwQ0iz7pYuC3cve6vQ0x8w Date: Wed, 13 Oct 2021 12:09:05 +0000 Message-ID: References: <20211012102526.361419-1-ganapati.kundapura@intel.com> <20211013075703.1000980-1-ganapati.kundapura@intel.com> In-Reply-To: <20211013075703.1000980-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: c10efc41-62c6-4f5f-f98f-08d98e42411d x-ms-traffictypediagnostic: DM6PR11MB3692: 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: URRXrvKxjF/0Tox4MGbuqTbsFlpeApYLxzT7fyrGzoBu5hBFFv6B8bShhBg/85Wx8+1gCtJluEBrU4k8FSp1pbDAKfESgmsGenbkaSisoKJC1tP1MdK7KmmW8EuS55bTyI0FbOKzZGwk2/78k3FsQBLRSayl2GaAzfau0YJhDKqj2uviLPqLqH92D9VjEU4M6aFJdcHwLmw342VMTt8ayUbGyDYrZ/NJulJUf5NgD5R2uAsxP0qKRRZAxRi+Cd9AwTkTs606tksfvXAW/WDCb9Jkqp4xQrLLmBDUgjlK/IaPcBHbI1eO9bzWMaQgtBrkYD4PbPdusES4XBEBcMfu3LVheazTFpx9/4wedaZu+i5P8alfjvjoZGJETYln4P428mNxAJDuiL3Ijos+QVnwWksZl5lqQxuucpPcGK130iw6EBUPzunaudE8R+wHFnzlPbMJQT7KRJnllTjuY+Od2i4Bweg6i6pJ0Qgo3SHUdNraGLWn1SouRx+nPjyn3a4jWpqnxj5QbzUyi4an+EAKIYaw4dWiHbFTbWjd11eiefRtddRLU0Cegp8IFvkBGQ8zkpTuAlMEXrWY7e4jQ5g7ucfNWN72AhBW1+KcYFaQnTb+jgohexfg/E4uUNqUOep7AA5xWl3ZORpNB5/TxpllmCoZXJYnQymS+zq2TNDeL2gXViHqpn4VkNkfxvsOetJdgg7HmaLeXHJXbZgX51M8Cg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3868.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(71200400001)(9686003)(86362001)(8676002)(5660300002)(4326008)(316002)(53546011)(82960400001)(508600001)(55236004)(55016002)(110136005)(186003)(26005)(52536014)(66556008)(66946007)(33656002)(2906002)(83380400001)(107886003)(122000001)(64756008)(7696005)(8936002)(76116006)(66446008)(66476007)(38100700002)(38070700005)(6506007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?asLpEnMtNGX/OhI2W1F5yC7xO8Ck9Vw+o6UwxsWdHKybcaAqvWPgCqx4BC+5?= =?us-ascii?Q?0ZAeTDLC9o9Q7fVWJVZsEnOOicwh6dZL3FAqa+EsYl5ZKb4nOguauIg48x2q?= =?us-ascii?Q?IBbekmR4K1Wb1fiH+9+l0Rkpf9Yym1+4ihK4MVXge7cHlGBR9V/rcCawnejb?= =?us-ascii?Q?bpE8srVDFxn8C/nHWacCjTEtu8vB777AikOMIdF5TFwMq5/rUYJdd5ESf8CO?= =?us-ascii?Q?4SNRdXt6HZPDi1e/KHGVTi6g4ltQu3eiHWjkewxeunt3SvoixY73N/f3Eqdm?= =?us-ascii?Q?9NBiKfNa4bU0cmlcvnjL+mfL88BubkkPSTs7iqZy3lzfQubcvfpybBltCV8n?= =?us-ascii?Q?JiJ/9H4GSgM2nVkZV18X8g6uM3vd6t3p6KujqgQITfm5gwnGuVzs/eaXhN82?= =?us-ascii?Q?SE1Ys4ghHG95DCTEUpaZVj40qe/Mqd3d1m1UEMYCpmgxLQTuNe0x9ZJHvHTV?= =?us-ascii?Q?AOIDkBZltyGpghSLZUlT2x3rEHiPDiuAbcXjqNOfwiWAJOOeGuVf0slorkJ+?= =?us-ascii?Q?DiuDKp8WISgn27Izs73zZa8zjg2KSdn5R7NZUtz7JOWjoII2xEXCm06bjCDS?= =?us-ascii?Q?4hmmK9/0xfh+9Qa6pUnbh1rJK4GRX0WBO8zP/nAgtmESLQ6ZJCmTOhc4uwxV?= =?us-ascii?Q?o4Y86PSeliGIeJ02JdyN7c4QCY4WPrEdX5H2vI2xu0fUG2aESNEQppYXkJ1R?= =?us-ascii?Q?Aa9htGUuK1i2RxOai96gZ1YNuTRbFTEefjUXEBwlO8FN4UeqH29psQ2YlWSV?= =?us-ascii?Q?BFTfoTAUWSqUFzSWKC68Zd1as2I3wHnCwtoVKsue9b28NqRsuT1/XAl5Wfcy?= =?us-ascii?Q?031lPzjsGrix4R4TtUL8tPvxRddUK9+2vD4mIwYDoyKJ4tOnmEArZMcS6GFg?= =?us-ascii?Q?tnaQAbCaDw6bM5mXQ4n8jok6S+pVjnRLnxQQWrj5UHkDhGWc3cbAj7bLfDnd?= =?us-ascii?Q?+jnpWeudlozLG19OTr4zvAxreZQYMsu6BbQIonc4wPerD/tO+RbL23SfawPO?= =?us-ascii?Q?sfZOux65Tjh7Dypz1/zs2EjcrLnRTsjcMaX6MUr1htpCRQ8K/3VwumOVPugV?= =?us-ascii?Q?e5AKvW6ajvG4Hfoiro41mr9AjI2Hpf35aKNOoor1IHqGVtF3V/28umjPjuyw?= =?us-ascii?Q?fZ4iz+Cv/GH4ibupluDm3irBcl87uoysBMYmCjiapp9UEjC+X6tIp8PqenM+?= =?us-ascii?Q?QmA/a/Scx14Ysh6du0DnNwr35RVpoUUIp+q0lTaqwnFsx2DX3qwlZ6HNTuaG?= =?us-ascii?Q?xlQM+SF/E9RMCQCED06TULlYHfVe8+gXz0tbuQFsa6AAjrl0LWGGf83lHaRz?= =?us-ascii?Q?bOZpHQ5lCXFHwUSTpjumM1iF?= 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: DM6PR11MB3868.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c10efc41-62c6-4f5f-f98f-08d98e42411d X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2021 12:09:06.0425 (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: v/7lqsxd/9U+l/hRpySGQqkIkE7gveX84aEEwY2fxBPJo+EOBP6oy6tyEliF7mSzqQAsp/WqK3eOtgTXtY+R0Qo1UiWhq0Of5qK8azBH4q4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB3692 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v4] 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: Naga Harish K S V > -----Original Message----- > From: dev On Behalf Of Ganapati Kundapura > Sent: Wednesday, October 13, 2021 1:27 PM > To: jerinjacobk@gmail.com; dev@dpdk.org > Cc: Jayatheerthan, Jay > Subject: [dpdk-dev] [PATCH v4] 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 > Acked-by: Jay Jayatheerthan >=20 > Signed-off-by: Ganapati Kundapura > --- > v4: > * Addressed segfault when per Rx queue event buffer is used. >=20 > 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_notes/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_event_eth_rx_adapter.c > index 9ac976c..bd68b8e 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; > @@ -2890,6 +2892,15 @@ rte_event_eth_rx_adapter_stats_get(uint8_t id, > stats->rx_packets +=3D dev_stats_sum.rx_packets; > stats->rx_enq_count +=3D dev_stats_sum.rx_enq_count; >=20 > + if (!rx_adapter->use_queue_event_buf) { > + buf =3D &rx_adapter->event_enqueue_buffer; > + stats->rx_event_buf_count =3D buf->count; > + stats->rx_event_buf_size =3D buf->events_size; > + } else { > + stats->rx_event_buf_count =3D 0; > + stats->rx_event_buf_size =3D 0; > + } > + > return 0; > } >=20 > @@ -3052,3 +3063,146 @@ > rte_event_eth_rx_adapter_queue_conf_get(uint8_t id, >=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_event_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