All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] net: wangxun: improve statistics support
@ 2026-07-31  7:49 Mengyuan Lou
  2026-07-31  7:49 ` [PATCH net-next 1/5] net: libwx: fix suspend/resume for wxvf Mengyuan Lou
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Mengyuan Lou @ 2026-07-31  7:49 UTC (permalink / raw)
  To: netdev
  Cc: jiawenwu, duanqiangwen, linglingzhang, andrew+netdev, davem,
	edumazet, kuba, pabeni, Mengyuan Lou

This series improves statistics support for Wangxun drivers.
Currently, VF drivers do not periodically refresh software statistics,
do not expose per-queue statistics through the generic netdev statistics
interface, and do not provide ndo_get_stats64().
The first patch fixes the suspend/resume flow for wxvf so the service
task and device lifecycle are handled correctly. The second patch makes
wx_update_stats() safe for VF drivers by allowing it to cope with
temporarily missing queue pointers during queue reconfiguration.
Once periodic statistics updates are available, libwx can implement
netdev_stat_ops, allowing Wangxun drivers to expose standard per-queue
statistics through the generic netdev qstats infrastructure.

Finally, VF drivers register ndo_get_stats64() so standard interface
statistics are also available.

Mengyuan Lou (5):
  net: libwx: fix suspend/resume for wxvf
  net: libwx: enable wx_update_stats for VF drivers
  net: libwx: Add per queue netdev-genl stats apis
  net: Wangxun: add support for basic qstats
  net: wangxun: add ndo_get_stats64 support

 drivers/net/ethernet/wangxun/libwx/wx_hw.c    |  8 +++
 drivers/net/ethernet/wangxun/libwx/wx_lib.c   | 51 +++++++++++++++++++
 drivers/net/ethernet/wangxun/libwx/wx_lib.h   |  1 +
 .../net/ethernet/wangxun/libwx/wx_vf_common.c | 23 ++++++++-
 drivers/net/ethernet/wangxun/ngbe/ngbe_main.c |  1 +
 .../net/ethernet/wangxun/ngbevf/ngbevf_main.c |  2 +
 .../net/ethernet/wangxun/txgbe/txgbe_main.c   |  1 +
 .../ethernet/wangxun/txgbevf/txgbevf_main.c   |  2 +
 8 files changed, 87 insertions(+), 2 deletions(-)

-- 
2.30.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-31 13:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.