[PATCH net-next 0/5] net: wangxun: improve statistics support
From: Mengyuan Lou <mengyuanlou@net-swift.com>
Date: 2026-07-31 07:51:02
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