Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: usb: ax88179: Support NETIF_F_RXFCS and NETIF_F_RXALL on AX88179A
@ 2026-11-27  6:36 Birger Koblitz
  2026-11-27  6:36 ` [PATCH net-next 1/2] net: usb: ax88179: Make receiving FCS on AX88179A configurable Birger Koblitz
  2026-11-27  6:36 ` [PATCH net-next 2/2] net: usb: ax88179: Support NETIF_F_RXFCS and NETIF_F_RXALL on AX88179A Birger Koblitz
  0 siblings, 2 replies; 7+ messages in thread
From: Birger Koblitz @ 2026-11-27  6:36 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni
  Cc: netdev, linux-usb, Benjamin Larsson, Birger Koblitz

The AX88179A-Chip family supports reception of the FCS
at the host. This is configured by enabling the AX_RX_CTL_DROPCRCERR
flag in the USB-adapters RX-controls. For AX88279-based adapters,
the flag has already been always set in order to receive
complete frames, however, the FCS is not necessarily usable, as it
is only part of the transferred up-to 8-byte padding area, and for
some frame-lengths only 2 of the 4 bytes of the FCS are transferred
to the host.
    
Note, that the AX_RX_CTL_DROPCRCERR flag has no influence on dropping
of corrupt frames already by the USB adapter, even corrupt frames
are always transferred to the host.

Add Add NETIF_F_RXFCS and NETIF_F_RXALL features for
the AX88179A and take a trailing FCS into account for MTU
verification when checking packet length in rx_fixup().

Also add code rx_fixup() in order to Count dropped packets and those
with incorrect checksum.
    

Suggested-by: Benjamin Larsson <benjamin.larsson@genexis.eu>
Signed-off-by: Birger Koblitz <mail@birger-koblitz.de>
---
Birger Koblitz (2):
      net: usb: ax88179: Make receiving FCS on AX88179A configurable
      net: usb: ax88179: Support NETIF_F_RXFCS and NETIF_F_RXALL on AX88179A

 drivers/net/usb/ax88179_lib.c      |  6 +++--
 drivers/net/usb/ax88179a_devices.c | 46 +++++++++++++++++++++++++++++++++-----
 2 files changed, 44 insertions(+), 8 deletions(-)
---
base-commit: eb6d6c80d35449c27471b1874f13066c09a8964d
change-id: 20261126-fcs-afccb4a76dd1

Best regards,
-- 
Birger Koblitz <mail@birger-koblitz.de>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-28 18:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  6:36 [PATCH net-next 0/2] net: usb: ax88179: Support NETIF_F_RXFCS and NETIF_F_RXALL on AX88179A Birger Koblitz
2026-11-27  6:36 ` [PATCH net-next 1/2] net: usb: ax88179: Make receiving FCS on AX88179A configurable Birger Koblitz
2026-11-28  6:42   ` netdev-bot+sashiko
2026-11-28 17:54   ` Andrew Lunn
2026-11-28 18:41     ` Birger Koblitz
2026-11-27  6:36 ` [PATCH net-next 2/2] net: usb: ax88179: Support NETIF_F_RXFCS and NETIF_F_RXALL on AX88179A Birger Koblitz
2026-11-28  6:42   ` netdev-bot+sashiko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox