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 4910EA0032; Fri, 16 Sep 2022 13:36:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 292224021D; Fri, 16 Sep 2022 13:36:53 +0200 (CEST) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com [209.85.222.175]) by mails.dpdk.org (Postfix) with ESMTP id BDB6840156 for ; Fri, 16 Sep 2022 13:36:51 +0200 (CEST) Received: by mail-qk1-f175.google.com with SMTP id c19so13527630qkm.7 for ; Fri, 16 Sep 2022 04:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=MrrQaJnVpt/inZ9P/Vr1vWFy2I487xNDuUX0hVq+QLU=; b=jYqn9SScwjdIa8lb9wKTVqXJw1iNl4EJPA/FhjzSc7wtAvUx+3aBfngW7ub+TVDmaA 8bva26B3kuyI822s7cwR2hYUEbd3z1Y+fItssrbfAtbBVgq0Cue1eIJctxjilyU5kEi0 CQtPvdXIUzT3V1IN7Pm/aVckFKSau7Bibg/ITDw/cx2OwIQyxpmQBE81+dpZ3fcaIkn8 L0jBMC9je9pXjp+lmXRoV4eFMuHd2cClqaPIE0gNgHDvhvT8IRyWzmlz0iWu561Z5fXn asqFZsvrF4TB6DVhYcSKxLuc2IbKsYySp15gzsghj1W+yTrPutwdzTlicR0ypmio07Oo OYlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=MrrQaJnVpt/inZ9P/Vr1vWFy2I487xNDuUX0hVq+QLU=; b=X7X4KQLxDN7fQFJx9LO0MKR2TbfFsmQ8LlzlkVi33Pjt7Z6WucungovCu9LlcSjXQp KN/Wk/wyX0rri0bN3332LptyYU7VL9XqBz0QoCZ+kOEcHvA+y+OMOCgyiqDgQPxMRw2G emzUPGBncOsLLyJvQX83to7z/lIer80ft12y9LgpRCSAr++cbPkLhM4+J0Fie9XBHPRQ iBLJIsvODpHahw9qJVViC19poNLPxX7CZ0nJcsawNrUEPfeqTLtWTEE+uMXxU6vzBWjz KMre2vEn7tQXZ24gN+sB0lc86vzuGB2sS9mkhygWeQxAwmDfMOz+cUJjHU1XkiySfmEg w96A== X-Gm-Message-State: ACrzQf3Nl+w9qcuiB0zqHDSddgx76rPLMPXWgxi4ZplNHSLG5bONP7yu TbvNiSly+iTJ9VjNQLz+viO7FByE4Z2EYgs1kAs= X-Google-Smtp-Source: AMsMyM7ttQDUHlizCMtj7wfXyWNCFlmqLVTB6RtHjlGWyL9GD0FoCkLqS+lqCSS4wENYMlHT3D1uW1F7brc9U4IAHMo= X-Received: by 2002:a05:620a:1214:b0:6cd:f5da:f1b9 with SMTP id u20-20020a05620a121400b006cdf5daf1b9mr3462009qkj.283.1663328211057; Fri, 16 Sep 2022 04:36:51 -0700 (PDT) MIME-Version: 1.0 References: <20220809184908.24030-1-ndabilpuram@marvell.com> <20220912131425.1973415-1-ndabilpuram@marvell.com> <20220912131425.1973415-32-ndabilpuram@marvell.com> In-Reply-To: <20220912131425.1973415-32-ndabilpuram@marvell.com> From: Jerin Jacob Date: Fri, 16 Sep 2022 17:06:25 +0530 Message-ID: Subject: Re: [PATCH v3 32/32] net/cnxk: dumps device private information To: Nithin Dabilpuram Cc: Kiran Kumar K , Sunil Kumar Kori , Satha Rao , jerinj@marvell.com, dev@dpdk.org, Rakesh Kudurumalla Content-Type: text/plain; charset="UTF-8" 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 On Mon, Sep 12, 2022 at 6:48 PM Nithin Dabilpuram wrote: > > From: Rakesh Kudurumalla > > Add support for ethdev private data dump callback for > debugging purposes. > > Signed-off-by: Rakesh Kudurumalla Updated the git commits in the series as needed and applied series to dpdk-next-net-mrvl/for-next-net. Thanks > --- > drivers/net/cnxk/cnxk_ethdev.c | 1 + > drivers/net/cnxk/cnxk_ethdev.h | 1 + > drivers/net/cnxk/cnxk_ethdev_ops.c | 29 +++++++++++++++++++++++++++++ > 3 files changed, 31 insertions(+) > > diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c > index 89f8cc107d..48d6bedb89 100644 > --- a/drivers/net/cnxk/cnxk_ethdev.c > +++ b/drivers/net/cnxk/cnxk_ethdev.c > @@ -1682,6 +1682,7 @@ struct eth_dev_ops cnxk_eth_dev_ops = { > .set_queue_rate_limit = cnxk_nix_tm_set_queue_rate_limit, > .tm_ops_get = cnxk_nix_tm_ops_get, > .mtr_ops_get = cnxk_nix_mtr_ops_get, > + .eth_dev_priv_dump = cnxk_nix_eth_dev_priv_dump, > }; > > static int > diff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h > index bed0e0eada..c09e9bff8e 100644 > --- a/drivers/net/cnxk/cnxk_ethdev.h > +++ b/drivers/net/cnxk/cnxk_ethdev.h > @@ -585,6 +585,7 @@ int cnxk_nix_rss_hash_update(struct rte_eth_dev *eth_dev, > struct rte_eth_rss_conf *rss_conf); > int cnxk_nix_rss_hash_conf_get(struct rte_eth_dev *eth_dev, > struct rte_eth_rss_conf *rss_conf); > +int cnxk_nix_eth_dev_priv_dump(struct rte_eth_dev *eth_dev, FILE *file); > > /* Link */ > void cnxk_nix_toggle_flag_link_cfg(struct cnxk_eth_dev *dev, bool set); > diff --git a/drivers/net/cnxk/cnxk_ethdev_ops.c b/drivers/net/cnxk/cnxk_ethdev_ops.c > index 64beabdd12..0a8b36342a 100644 > --- a/drivers/net/cnxk/cnxk_ethdev_ops.c > +++ b/drivers/net/cnxk/cnxk_ethdev_ops.c > @@ -931,6 +931,35 @@ cnxk_nix_reta_query(struct rte_eth_dev *eth_dev, > return rc; > } > > +int > +cnxk_nix_eth_dev_priv_dump(struct rte_eth_dev *eth_dev, FILE *file) > +{ > + struct cnxk_eth_dev *dev = cnxk_eth_pmd_priv(eth_dev); > + struct roc_nix *roc_nix = &dev->nix; > + int i; > + > + roc_nix_dump(roc_nix, file); > + > + for (i = 0; i < eth_dev->data->nb_rx_queues; i++) > + roc_nix_rq_dump(&dev->rqs[i], file); > + > + for (i = 0; i < eth_dev->data->nb_rx_queues; i++) > + roc_nix_cq_dump(&dev->cqs[i], file); > + > + for (i = 0; i < eth_dev->data->nb_tx_queues; i++) > + roc_nix_sq_dump(&dev->sqs[i], file); > + > + roc_nix_queues_ctx_dump(roc_nix, file); > + > + roc_nix_tm_dump(roc_nix, file); > + > + roc_nix_inl_dev_dump(NULL, file); > + > + roc_nix_inl_outb_cpt_lfs_dump(roc_nix, file); > + > + return 0; > +} > + > int > cnxk_nix_rss_hash_update(struct rte_eth_dev *eth_dev, > struct rte_eth_rss_conf *rss_conf) > -- > 2.25.1 >