Netdev List
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: "mengyuanlou@net-swift.com" <mengyuanlou@net-swift.com>
Cc: netdev@vger.kernel.org, jiawenwu@trustnetic.com,
	 duanqiangwen@net-swift.com, linglingzhang@net-swift.com,
	andrew+netdev@lunn.ch,  davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com
Subject: Re: [PATCH net-next 5/5] net: wangxun: add ndo_get_stats64 support
Date: Fri, 31 Jul 2026 06:14:10 -0700	[thread overview]
Message-ID: <amyfgDYpSwj1cyQf@gmail.com> (raw)
In-Reply-To: <3F8CB138-3F3C-42A2-986E-36E33B0B4F3A@net-swift.com>

On Fri, Jul 31, 2026 at 05:41:33PM +0800, mengyuanlou@net-swift.com wrote:
> 
> 
> > 2026年7月31日 16:52,Breno Leitao <leitao@debian.org> 写道:
> > 
> > On Fri, Jul 31, 2026 at 03:49:58PM +0800, Mengyuan Lou wrote:
> >> Expose network statistics for Wangxun VF drivers by registering the
> >>  callback.
> >> 
> >> Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
> >> ---
> >> drivers/net/ethernet/wangxun/libwx/wx_lib.c         | 2 ++
> >> drivers/net/ethernet/wangxun/ngbevf/ngbevf_main.c   | 1 +
> >> drivers/net/ethernet/wangxun/txgbevf/txgbevf_main.c | 1 +
> >> 3 files changed, 4 insertions(+)
> >> 
> >> diff --git a/drivers/net/ethernet/wangxun/libwx/wx_lib.c b/drivers/net/ethernet/wangxun/libwx/wx_lib.c
> >> index ae20733c703d..a4ca01c18c6a 100644
> >> --- a/drivers/net/ethernet/wangxun/libwx/wx_lib.c
> >> +++ b/drivers/net/ethernet/wangxun/libwx/wx_lib.c
> >> @@ -3092,6 +3092,8 @@ void wx_get_stats64(struct net_device *netdev,
> >> }
> >> 
> >> rcu_read_unlock();
> >> + if (wx->pdev->is_virtfn)
> >> + return;
> > 
> > Why you don't want to populate the other entries?
> 
> The hardware does not provide the err counts on the vf.

Right, but hwstats fields will be zero, right?

Does this early return buys us anything?

      reply	other threads:[~2026-07-31 13:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31  7:49 [PATCH net-next 0/5] net: wangxun: improve statistics support Mengyuan Lou
2026-07-31  7:49 ` [PATCH net-next 1/5] net: libwx: fix suspend/resume for wxvf Mengyuan Lou
2026-07-31  8:54   ` Breno Leitao
2026-07-31  7:49 ` [PATCH net-next 2/5] net: libwx: enable wx_update_stats for VF drivers Mengyuan Lou
2026-07-31  7:49 ` [PATCH net-next 3/5] net: libwx: Add per queue netdev-genl stats apis Mengyuan Lou
2026-07-31  7:49 ` [PATCH net-next 4/5] net: Wangxun: add support for basic qstats Mengyuan Lou
2026-07-31  7:49 ` [PATCH net-next 5/5] net: wangxun: add ndo_get_stats64 support Mengyuan Lou
2026-07-31  8:52   ` Breno Leitao
2026-07-31  9:41     ` mengyuanlou
2026-07-31 13:14       ` Breno Leitao [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=amyfgDYpSwj1cyQf@gmail.com \
    --to=leitao@debian.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=duanqiangwen@net-swift.com \
    --cc=edumazet@google.com \
    --cc=jiawenwu@trustnetic.com \
    --cc=kuba@kernel.org \
    --cc=linglingzhang@net-swift.com \
    --cc=mengyuanlou@net-swift.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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