Thread (4 messages) 4 messages, 4 authors, 2024-08-02

RE: [PATCH net v1] net: wan: fsl_qmc_hdlc: Discard received CRC

From: David Laight via Linuxppc-dev <hidden>
Date: 2024-08-02 08:10:50
Also in: lkml, netdev, stable

From: Simon Horman
Sent: 31 July 2024 09:45

On Tue, Jul 30, 2024 at 08:31:33AM +0200, Herve Codina wrote:
quoted
Received frame from QMC contains the CRC.
Upper layers don't need this CRC and tcpdump mentioned trailing junk
data due to this CRC presence.

As some other HDLC driver, simply discard this CRC.
It might be nice to specifically site an example.
But yes, I see this pattern in hdlc_rx_done().
Pretty much the only reason you'd want the received CRC is to do
error recovery assuming a single short error burst.
Not that I've ever seen a driver contain the required code.
'Back of envelope' calculation: 32bit crc, 2kbyte frame, so 18bits
of crc per data bit, sqrt for 'birthday paradox' - I bet you can
recover 8-bit error bursts.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help