* [PATCH v1] stmmac: mmc: dwmac4: Add ip payload error statistics
@ 2024-09-16 9:48 Minda Chen
2024-09-16 15:23 ` Simon Horman
0 siblings, 1 reply; 3+ messages in thread
From: Minda Chen @ 2024-09-16 9:48 UTC (permalink / raw)
To: Alexandre Torgue, Jose Abreu, David S . Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, netdev
Cc: linux-kernel, linux-stm32
Add dwmac4 ip payload error statistics, and rename discripter bit macro
because latest version descriptor IPCE bit claims include ip checksum
error and l4 segment length error.
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 2 ++
drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
index 1c5802e0d7f4..14d9ad146241 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c
@@ -118,6 +118,8 @@ static int dwmac4_wrback_get_rx_status(struct stmmac_extra_stats *x,
x->ipv4_pkt_rcvd++;
if (rdes1 & RDES1_IPV6_HEADER)
x->ipv6_pkt_rcvd++;
+ if (rdes1 & RDES1_IP_PAYLOAD_ERROR)
+ x->ip_payload_err++;
if (message_type == RDES_EXT_NO_PTP)
x->no_ptp_rx_msg_type_ext++;
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h
index 6da070ccd737..1ce6f43d545a 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.h
@@ -95,7 +95,7 @@
#define RDES1_IPV4_HEADER BIT(4)
#define RDES1_IPV6_HEADER BIT(5)
#define RDES1_IP_CSUM_BYPASSED BIT(6)
-#define RDES1_IP_CSUM_ERROR BIT(7)
+#define RDES1_IP_PAYLOAD_ERROR BIT(7)
#define RDES1_PTP_MSG_TYPE_MASK GENMASK(11, 8)
#define RDES1_PTP_PACKET_TYPE BIT(12)
#define RDES1_PTP_VER BIT(13)
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] stmmac: mmc: dwmac4: Add ip payload error statistics
2024-09-16 9:48 [PATCH v1] stmmac: mmc: dwmac4: Add ip payload error statistics Minda Chen
@ 2024-09-16 15:23 ` Simon Horman
2024-09-18 1:15 ` Minda Chen
0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2024-09-16 15:23 UTC (permalink / raw)
To: Minda Chen
Cc: Alexandre Torgue, Jose Abreu, David S . Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin, netdev,
linux-kernel, linux-stm32
On Mon, Sep 16, 2024 at 05:48:12PM +0800, Minda Chen wrote:
> Add dwmac4 ip payload error statistics, and rename discripter bit macro
> because latest version descriptor IPCE bit claims include ip checksum
> error and l4 segment length error.
>
> Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Hi Minda,
Some feedback on process.
net-next is currently closed for the v6.12 merge window.
Please consider reposting this patch once it re-opens,
after v6.12-rc1 is released, likely about two weeks from now.
RFC patches, and fixes for net are, OTOH, welcome any time.
Also, when posting patches for net-next, please explicitly
target them as such.
Subject: [PATCH net-next] ...
Link: https://docs.kernel.org/process/maintainer-netdev.html
And lastly, I don't think 'mmc: ' belongs in the patch prefix.
This is an Ethernet driver, right? Looking over git history,
it seems that 'net: stmmac: ' is appropriate here.
Subject: [PATCH net-next] net: stmmac: ...
--
pw-bot: defer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] stmmac: mmc: dwmac4: Add ip payload error statistics
2024-09-16 15:23 ` Simon Horman
@ 2024-09-18 1:15 ` Minda Chen
0 siblings, 0 replies; 3+ messages in thread
From: Minda Chen @ 2024-09-18 1:15 UTC (permalink / raw)
To: Simon Horman
Cc: Alexandre Torgue, Jose Abreu, David S . Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Maxime Coquelin,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com
>
> On Mon, Sep 16, 2024 at 05:48:12PM +0800, Minda Chen wrote:
> > Add dwmac4 ip payload error statistics, and rename discripter bit
> > macro because latest version descriptor IPCE bit claims include ip
> > checksum error and l4 segment length error.
> >
> > Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
>
> Hi Minda,
>
> Some feedback on process.
>
> net-next is currently closed for the v6.12 merge window.
> Please consider reposting this patch once it re-opens, after v6.12-rc1 is released,
> likely about two weeks from now.
>
> RFC patches, and fixes for net are, OTOH, welcome any time.
>
> Also, when posting patches for net-next, please explicitly target them as such.
>
> Subject: [PATCH net-next] ...
>
> Link: https://docs.kernel.org/process/maintainer-netdev.html
>
> And lastly, I don't think 'mmc: ' belongs in the patch prefix.
> This is an Ethernet driver, right? Looking over git history, it seems that 'net:
> stmmac: ' is appropriate here.
>
> Subject: [PATCH net-next] net: stmmac: ...
>
> --
> pw-bot: defer
Okay, I will resend this on 6.12-rc1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-18 1:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16 9:48 [PATCH v1] stmmac: mmc: dwmac4: Add ip payload error statistics Minda Chen
2024-09-16 15:23 ` Simon Horman
2024-09-18 1:15 ` Minda Chen
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).