From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: wei.fang@nxp.com
Cc: claudiu.manoil@nxp.com, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, ast@kernel.org,
daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net 2/2] net: enetc: correct rx_bytes statistics of XDP
Date: Fri, 2 Jun 2023 13:32:14 +0300 [thread overview]
Message-ID: <20230602103214.6uzugiwjrhjcs7wk@skbuf> (raw)
In-Reply-To: <20230602094659.965523-3-wei.fang@nxp.com>
On Fri, Jun 02, 2023 at 05:46:59PM +0800, wei.fang@nxp.com wrote:
> From: Wei Fang <wei.fang@nxp.com>
>
> The rx_bytes statistics of XDP are always zero, because rx_byte_cnt
> is not updated after it is initialized to 0. So fix it.
>
> Fixes: d1b15102dd16 ("net: enetc: add support for XDP_DROP and XDP_PASS")
> Signed-off-by: Wei Fang <wei.fang@nxp.com>
> ---
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Thanks!
next prev parent reply other threads:[~2023-06-02 10:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-02 9:46 [PATCH net 0/2] net: enetc: correct the statistics of rx bytes wei.fang
2023-06-02 9:46 ` [PATCH net 1/2] " wei.fang
2023-06-02 10:27 ` Vladimir Oltean
2023-06-02 10:30 ` Vladimir Oltean
2023-06-02 10:31 ` Vladimir Oltean
2023-06-02 10:35 ` Wei Fang
2023-06-02 9:46 ` [PATCH net 2/2] net: enetc: correct rx_bytes statistics of XDP wei.fang
2023-06-02 10:32 ` Vladimir Oltean [this message]
2023-06-04 16:58 ` [PATCH net 0/2] net: enetc: correct the statistics of rx bytes patchwork-bot+netdevbpf
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=20230602103214.6uzugiwjrhjcs7wk@skbuf \
--to=vladimir.oltean@nxp.com \
--cc=ast@kernel.org \
--cc=claudiu.manoil@nxp.com \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=wei.fang@nxp.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;
as well as URLs for NNTP newsgroup(s).