DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] event/cnxk: fix missing xstats ops registration
@ 2022-09-27 15:31 pbhagavatula
  2022-09-30  7:16 ` Jerin Jacob
  0 siblings, 1 reply; 2+ messages in thread
From: pbhagavatula @ 2022-09-27 15:31 UTC (permalink / raw)
  To: jerinj, Pavan Nikhilesh, Shijith Thotton; +Cc: dev

From: Pavan Nikhilesh <pbhagavatula@marvell.com>

Fix missing xstats ops registration when initializing event device.

Fixes: b5a52c9d97e2 ("event/cnxk: add event port and queue xstats")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
 drivers/event/cnxk/cn10k_eventdev.c | 4 ++++
 drivers/event/cnxk/cn9k_eventdev.c  | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c
index fc55bda503..4ba5314fda 100644
--- a/drivers/event/cnxk/cn10k_eventdev.c
+++ b/drivers/event/cnxk/cn10k_eventdev.c
@@ -1110,6 +1110,10 @@ static struct eventdev_ops cn10k_sso_dev_ops = {
 	.crypto_adapter_queue_pair_add = cn10k_crypto_adapter_qp_add,
 	.crypto_adapter_queue_pair_del = cn10k_crypto_adapter_qp_del,
 
+	.xstats_get = cnxk_sso_xstats_get,
+	.xstats_reset = cnxk_sso_xstats_reset,
+	.xstats_get_names = cnxk_sso_xstats_get_names,
+
 	.dump = cnxk_sso_dump,
 	.dev_start = cn10k_sso_start,
 	.dev_stop = cn10k_sso_stop,
diff --git a/drivers/event/cnxk/cn9k_eventdev.c b/drivers/event/cnxk/cn9k_eventdev.c
index 29c952c791..764963db85 100644
--- a/drivers/event/cnxk/cn9k_eventdev.c
+++ b/drivers/event/cnxk/cn9k_eventdev.c
@@ -1199,6 +1199,10 @@ static struct eventdev_ops cn9k_sso_dev_ops = {
 	.crypto_adapter_queue_pair_add = cn9k_crypto_adapter_qp_add,
 	.crypto_adapter_queue_pair_del = cn9k_crypto_adapter_qp_del,
 
+	.xstats_get = cnxk_sso_xstats_get,
+	.xstats_reset = cnxk_sso_xstats_reset,
+	.xstats_get_names = cnxk_sso_xstats_get_names,
+
 	.dump = cnxk_sso_dump,
 	.dev_start = cn9k_sso_start,
 	.dev_stop = cn9k_sso_stop,
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] event/cnxk: fix missing xstats ops registration
  2022-09-27 15:31 [PATCH] event/cnxk: fix missing xstats ops registration pbhagavatula
@ 2022-09-30  7:16 ` Jerin Jacob
  0 siblings, 0 replies; 2+ messages in thread
From: Jerin Jacob @ 2022-09-30  7:16 UTC (permalink / raw)
  To: pbhagavatula; +Cc: jerinj, Shijith Thotton, dev

On Tue, Sep 27, 2022 at 9:02 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> Fix missing xstats ops registration when initializing event device.
>
> Fixes: b5a52c9d97e2 ("event/cnxk: add event port and queue xstats")
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>

Applied to dpdk-next-net-eventdev/for-main. Thanks


> ---
>  drivers/event/cnxk/cn10k_eventdev.c | 4 ++++
>  drivers/event/cnxk/cn9k_eventdev.c  | 4 ++++
>  2 files changed, 8 insertions(+)
>
> diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c
> index fc55bda503..4ba5314fda 100644
> --- a/drivers/event/cnxk/cn10k_eventdev.c
> +++ b/drivers/event/cnxk/cn10k_eventdev.c
> @@ -1110,6 +1110,10 @@ static struct eventdev_ops cn10k_sso_dev_ops = {
>         .crypto_adapter_queue_pair_add = cn10k_crypto_adapter_qp_add,
>         .crypto_adapter_queue_pair_del = cn10k_crypto_adapter_qp_del,
>
> +       .xstats_get = cnxk_sso_xstats_get,
> +       .xstats_reset = cnxk_sso_xstats_reset,
> +       .xstats_get_names = cnxk_sso_xstats_get_names,
> +
>         .dump = cnxk_sso_dump,
>         .dev_start = cn10k_sso_start,
>         .dev_stop = cn10k_sso_stop,
> diff --git a/drivers/event/cnxk/cn9k_eventdev.c b/drivers/event/cnxk/cn9k_eventdev.c
> index 29c952c791..764963db85 100644
> --- a/drivers/event/cnxk/cn9k_eventdev.c
> +++ b/drivers/event/cnxk/cn9k_eventdev.c
> @@ -1199,6 +1199,10 @@ static struct eventdev_ops cn9k_sso_dev_ops = {
>         .crypto_adapter_queue_pair_add = cn9k_crypto_adapter_qp_add,
>         .crypto_adapter_queue_pair_del = cn9k_crypto_adapter_qp_del,
>
> +       .xstats_get = cnxk_sso_xstats_get,
> +       .xstats_reset = cnxk_sso_xstats_reset,
> +       .xstats_get_names = cnxk_sso_xstats_get_names,
> +
>         .dump = cnxk_sso_dump,
>         .dev_start = cn9k_sso_start,
>         .dev_stop = cn9k_sso_stop,
> --
> 2.25.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-30  7:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 15:31 [PATCH] event/cnxk: fix missing xstats ops registration pbhagavatula
2022-09-30  7:16 ` Jerin Jacob

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).