From: Ahmed Zaki <anzaki@gmail.com>
To: netfilter-devel@vger.kernel.org, andrew@lunn.ch,
olteanv@gmail.com, pablo@netfilter.org, fw@strlen.de,
kuba@kernel.org, pabeni@redhat.com, edumazet@google.com
Cc: coreteam@netfilter.org, netdev@vger.kernel.org
Subject: [PATCH nf-next v2 2/2] net: dsa: update net_device stats with HW offloaded flows stats
Date: Tue, 24 Mar 2026 14:40:16 -0600 [thread overview]
Message-ID: <20260324204016.2089193-3-anzaki@gmail.com> (raw)
In-Reply-To: <20260324204016.2089193-1-anzaki@gmail.com>
Set the new net_device flag flow_offload_via_parent to update the
user net_device TX/RX stats with the HW offloaded traffic.
Signed-off-by: Ahmed Zaki <anzaki@gmail.com>
---
net/dsa/user.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/dsa/user.c b/net/dsa/user.c
index c4bd6fe90b45..331bc581bce7 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -2807,6 +2807,7 @@ int dsa_user_create(struct dsa_port *port)
p = netdev_priv(user_dev);
user_dev->pcpu_stat_type = NETDEV_PCPU_STAT_TSTATS;
+ user_dev->flow_offload_via_parent = true;
ret = gro_cells_init(&p->gcells, user_dev);
if (ret)
--
2.43.0
next prev parent reply other threads:[~2026-03-24 20:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-24 20:40 [PATCH nf-next v2 0/2] Update (DSA) netdev stats with offloaded flows Ahmed Zaki
2026-03-24 20:40 ` [PATCH nf-next v2 1/2] netfilter: flowtable: update netdev stats with HW_OFFLOAD flows Ahmed Zaki
2026-03-24 21:28 ` Pablo Neira Ayuso
2026-03-24 23:27 ` Ahmed Zaki
2026-03-24 20:40 ` Ahmed Zaki [this message]
2026-05-04 11:18 ` [PATCH nf-next v2 0/2] Update (DSA) netdev stats with offloaded flows Ahmed Zaki
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=20260324204016.2089193-3-anzaki@gmail.com \
--to=anzaki@gmail.com \
--cc=andrew@lunn.ch \
--cc=coreteam@netfilter.org \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.com \
--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.