DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Xing, Beilei" <beilei.xing@intel.com>
To: "Liu, Mingxia" <mingxia.liu@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: "Wu, Jingjing" <jingjing.wu@intel.com>
Subject: RE: [PATCH v2] net/idpf: add hw stats ierrors
Date: Fri, 24 Feb 2023 03:52:35 +0000	[thread overview]
Message-ID: <LV2PR11MB5997F623D4B533D391DD0E44F7A89@LV2PR11MB5997.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20230224024329.183378-1-mingxia.liu@intel.com>



> -----Original Message-----
> From: Liu, Mingxia <mingxia.liu@intel.com>
> Sent: Friday, February 24, 2023 10:43 AM
> To: dev@dpdk.org
> Cc: Wu, Jingjing <jingjing.wu@intel.com>; Xing, Beilei <beilei.xing@intel.com>;
> Liu, Mingxia <mingxia.liu@intel.com>
> Subject: [PATCH v2] net/idpf: add hw stats ierrors
> 
> This patch adds hw stats ierrors, when receiving packets with bad csum, ierrors
> value will increase.
> 
> Signed-off-by: Mingxia Liu <mingxia.liu@intel.com>
> ---
>  drivers/net/idpf/idpf_ethdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/idpf/idpf_ethdev.c b/drivers/net/idpf/idpf_ethdev.c
> index 38cbbf369d..5b4f4fd82b 100644
> --- a/drivers/net/idpf/idpf_ethdev.c
> +++ b/drivers/net/idpf/idpf_ethdev.c
> @@ -291,6 +291,7 @@ idpf_dev_stats_get(struct rte_eth_dev *dev, struct
> rte_eth_stats *stats)
>  				pstats->rx_broadcast - pstats->rx_discards;
>  		stats->opackets = pstats->tx_broadcast + pstats->tx_multicast
> +
>  						pstats->tx_unicast;
> +		stats->ierrors = pstats->rx_errors;
>  		stats->imissed = pstats->rx_discards;
>  		stats->oerrors = pstats->tx_errors + pstats->tx_discards;
>  		stats->ibytes = pstats->rx_bytes;
> --
> 2.25.1

Acked-by: Beilei Xing <beilei.xing@intel.com>


      reply	other threads:[~2023-02-24  3:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21  1:40 [PATCH] " Mingxia Liu
2023-02-24  2:41 ` Mingxia Liu
2023-02-24  2:43 ` [PATCH v2] " Mingxia Liu
2023-02-24  3:52   ` Xing, Beilei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LV2PR11MB5997F623D4B533D391DD0E44F7A89@LV2PR11MB5997.namprd11.prod.outlook.com \
    --to=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=mingxia.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).