[Linux-stm32] [PATCH net-next v2] net: stmmac: dwmac4: Add ip payload error statistics

Minda Chen minda.chen at starfivetech.com
Tue Oct 8 10:22:53 UTC 2024



> 
> Hi Jakub
> 
> On Wed, Oct 02, 2024 at 06:58:01AM GMT, Jakub Kicinski wrote:
> > On Mon, 30 Sep 2024 19:02:05 +0800 Minda Chen wrote:
> > > Add dwmac4 ip payload error statistics, and rename discripter bit
> > > macro
> >
> > descriptor
> >         ^
> >
> > > because latest version descriptor IPCE bit claims ip checksum error
> > > or
> > > l4 segment length error.
> >
> 
I will modify this.

> > What is an L4 segment length error on Rx?
> > Seems to me that reusing ip_payload_err here will be confusing
> 
> From the current "ip_payload_err" field semantics, Minda is correct to use it for
> the Rx IP-payload error statistics. Here is the definition of the IPCE flag (part of
> the RDES4 descriptor field) cited from the Synopsys DW QoS Eth v5 HW-manual:
> 
> Bit  Name  Description
>  7   IPCE  IP Payload Error
>            When this bit is set, it indicates either of the following:
>            ■ The 16-bit IP payload checksum (that is, the TCP, UDP, or ICMP
> checksum) calculated by the
>              MAC does not match the corresponding checksum field in the
> received segment.
>            ■ The TCP, UDP, or ICMP segment length does not match the
> payload length value in the IP Header
>              field.
>            ■ The TCP, UDP, or ICMP segment length is less than minimum
> allowed segment length for TCP,
>              UDP, or ICMP.
> 
 Thanks for adding description.. I will add the this to commit message.




More information about the Linux-stm32 mailing list