On Tue, Sep 27, 2022 at 9:02 PM <pbhagavat...@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavat...@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 <pbhagavat...@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
>

Reply via email to