From: Ahmed Zaki <anzaki@gmail.com>
To: netfilter-devel@vger.kernel.org, pablo@netfilter.org, fw@strlen.de
Cc: coreteam@netfilter.org, netdev@vger.kernel.org
Subject: [PATCH nf-next 0/2] Update netdev stats with offloaded flows
Date: Tue, 17 Mar 2026 17:48:49 -0600 [thread overview]
Message-ID: <20260317234851.234466-1-anzaki@gmail.com> (raw)
Let's allow SNMP-based tools to accurately report the Tx/Rx stats
on devices implementing hardware flow offloads. Without this, its is very
confusing since these devices are reporting very-low stats compared to
others that do not do hardware-offloading.
First patch is prep work, change the prototype of dev_sw_netstats_rx_add()
to pass "packets" instead of the implied "1". Second patch updates the
netdev stats.
Ahmed Zaki (2):
net: treewide: pass number of pkts to dev_sw_netstats_rx_add()
netfilter: flowtable: update netdev stats with HW_OFFLOAD flows
drivers/infiniband/hw/hfi1/driver.c | 2 +-
drivers/net/amt.c | 6 +-
.../net/ethernet/hisilicon/hibmcge/hbg_txrx.c | 2 +-
drivers/net/ethernet/litex/litex_liteeth.c | 2 +-
drivers/net/ethernet/realtek/r8169_main.c | 2 +-
.../net/ethernet/realtek/rtase/rtase_main.c | 2 +-
drivers/net/ethernet/ti/am65-cpsw-nuss.c | 6 +-
drivers/net/ethernet/ti/icssg/icssg_common.c | 4 +-
drivers/net/gtp.c | 2 +-
drivers/net/macsec.c | 2 +-
drivers/net/netkit.c | 2 +-
drivers/net/ppp/ppp_generic.c | 2 +-
drivers/net/tun.c | 8 +--
drivers/net/usb/qmi_wwan.c | 2 +-
drivers/net/wireguard/receive.c | 2 +-
.../quantenna/qtnfmac/pcie/pearl_pcie.c | 2 +-
.../quantenna/qtnfmac/pcie/topaz_pcie.c | 2 +-
include/linux/netdevice.h | 6 +-
net/bridge/br_input.c | 2 +-
net/core/filter.c | 2 +-
net/dsa/tag.c | 2 +-
net/ipv4/ip_tunnel.c | 2 +-
net/ipv4/ip_vti.c | 2 +-
net/ipv6/ip6_tunnel.c | 2 +-
net/ipv6/ip6_vti.c | 2 +-
net/ipv6/sit.c | 2 +-
net/mac80211/rx.c | 8 +--
net/netfilter/nf_flow_table_offload.c | 59 +++++++++++++++++--
net/openvswitch/vport-internal_dev.c | 2 +-
net/xfrm/xfrm_interface_core.c | 2 +-
30 files changed, 96 insertions(+), 47 deletions(-)
--
2.43.0
next reply other threads:[~2026-03-17 23:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-17 23:48 Ahmed Zaki [this message]
2026-03-17 23:48 ` [PATCH nf-next 1/2] net: treewide: pass number of pkts to dev_sw_netstats_rx_add() Ahmed Zaki
2026-03-19 2:12 ` Jakub Kicinski
2026-03-17 23:48 ` [PATCH nf-next 2/2] netfilter: flowtable: update netdev stats with HW_OFFLOAD flows Ahmed Zaki
2026-03-18 0:32 ` bot+bpf-ci
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=20260317234851.234466-1-anzaki@gmail.com \
--to=anzaki@gmail.com \
--cc=coreteam@netfilter.org \
--cc=fw@strlen.de \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/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 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.