DPDK patches and discussions
 help / color / mirror / Atom feed
From: Long Li <longli@microsoft.com>
To: Wei Hu <weh@microsoft.com>,
	"longli@linuxonhyperv.com" <longli@linuxonhyperv.com>,
	Stephen Hemminger <stephen@networkplumber.org>
Cc: "dev@dpdk.org" <dev@dpdk.org>, "stable@dpdk.org" <stable@dpdk.org>
Subject: RE: [EXTERNAL] [PATCH] net/netvsc: add stats counters from VF
Date: Fri, 7 Mar 2025 17:22:09 +0000	[thread overview]
Message-ID: <SA6PR21MB4231D4FF5AA7380EF4581D79CED52@SA6PR21MB4231.namprd21.prod.outlook.com> (raw)
In-Reply-To: <OSQP153MB13079AEE64F785EE8EB9F75CBBC52@OSQP153MB1307.APCP153.PROD.OUTLOOK.COM>



> -----Original Message-----
> From: Wei Hu <weh@microsoft.com>
> Sent: Tuesday, February 18, 2025 10:12 PM
> To: longli@linuxonhyperv.com; Stephen Hemminger
> <stephen@networkplumber.org>
> Cc: dev@dpdk.org; Long Li <longli@microsoft.com>; stable@dpdk.org
> Subject: RE: [EXTERNAL] [PATCH] net/netvsc: add stats counters from VF
> 
> 
> 
> > -----Original Message-----
> > From: longli@linuxonhyperv.com <longli@linuxonhyperv.com>
> > Sent: Wednesday, February 19, 2025 5:13 AM
> > To: Stephen Hemminger <stephen@networkplumber.org>; Wei Hu
> > <weh@microsoft.com>
> > Cc: dev@dpdk.org; Long Li <longli@microsoft.com>; stable@dpdk.org
> > Subject: [EXTERNAL] [PATCH] net/netvsc: add stats counters from VF
> >
> > From: Long Li <longli@microsoft.com>
> >
> > The netvsc driver should add per-queue and rx_nombuf counters from VF.
> >
> > Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")
> > Cc: stable@dpdk.org
> > Signed-off-by: Long Li <longli@microsoft.com>
> > ---
> >  drivers/net/netvsc/hn_ethdev.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/net/netvsc/hn_ethdev.c
> > b/drivers/net/netvsc/hn_ethdev.c index 988c51928d..069d603d90 100644
> > --- a/drivers/net/netvsc/hn_ethdev.c
> > +++ b/drivers/net/netvsc/hn_ethdev.c
> > @@ -824,8 +824,8 @@ static int hn_dev_stats_get(struct rte_eth_dev *dev,
> >  		stats->oerrors += txq->stats.errors;
> >
> >  		if (i < RTE_ETHDEV_QUEUE_STAT_CNTRS) {
> > -			stats->q_opackets[i] = txq->stats.packets;
> > -			stats->q_obytes[i] = txq->stats.bytes;
> > +			stats->q_opackets[i] += txq->stats.packets;
> > +			stats->q_obytes[i] += txq->stats.bytes;
> >  		}
> >  	}
> >
> > @@ -841,12 +841,12 @@ static int hn_dev_stats_get(struct rte_eth_dev
> > *dev,
> >  		stats->imissed += rxq->stats.ring_full;
> >
> >  		if (i < RTE_ETHDEV_QUEUE_STAT_CNTRS) {
> > -			stats->q_ipackets[i] = rxq->stats.packets;
> > -			stats->q_ibytes[i] = rxq->stats.bytes;
> > +			stats->q_ipackets[i] += rxq->stats.packets;
> > +			stats->q_ibytes[i] += rxq->stats.bytes;
> >  		}
> >  	}
> >
> > -	stats->rx_nombuf = dev->data->rx_mbuf_alloc_failed;
> > +	stats->rx_nombuf += dev->data->rx_mbuf_alloc_failed;
> >  	return 0;
> >  }
> >
> > --
> > 2.34.1
> 
> Reviewed-by: Wei Hu <weh@linux.microsoft.com>

Hi Stephen,

Is it okay to merge this patch?

Thanks,
Long

      reply	other threads:[~2025-03-07 17:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-18 21:13 longli
2025-02-19  6:12 ` [EXTERNAL] " Wei Hu
2025-03-07 17:22   ` Long Li [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=SA6PR21MB4231D4FF5AA7380EF4581D79CED52@SA6PR21MB4231.namprd21.prod.outlook.com \
    --to=longli@microsoft.com \
    --cc=dev@dpdk.org \
    --cc=longli@linuxonhyperv.com \
    --cc=stable@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=weh@microsoft.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).