mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Birger Koblitz <mail@birger-koblitz.de>
To: netdev-bot+sashiko@kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk,
	andrew@lunn.ch, hkallweit1@gmail.com, linux-usb@vger.kernel.org,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	neuromoments@gmail.com
Subject: Re: [PATCH net-next v12 09/15] ax88179_178a: Add VLAN offload support for AX88179A
Date: Sun, 27 Sep 2026 11:24:52 +0200	[thread overview]
Message-ID: <289700c4-8569-4160-97c5-2fc37a901a9d@birger-koblitz.de> (raw)
In-Reply-To: <178968030096.22033.824447734953057557@kernel.org>

On 17/09/2026 11:25 pm, netdev-bot+sashiko@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 9 potential
> issue(s) to consider:
> 
> Critical: 0 · High: 4 · Medium: 5 · Low: 0
> 
> - [High] ax88179a_set_features()
>    (drivers/net/usb/ax88179a_devices.c:578-603) clobbers the persistent…
Will fix by moving conditionally setting AX_VLAN_CONTROL_VFE after the
loop over the VLAN-entries.

> - [High] This patch newly installs `.ndo_set_features =
>    ax88179a_set_features` on the AX88179A ops table…
Moved the rx_checksum tracing addition into the patch that adds the
AX88179A HW support. Made setting the checksumming feature on the device
dependent on NETIF_F_RXCSUM flag setting in ax88179a_reset().

> - [High] net: missing endianness conversion for subsequent Rx descriptors
>    in ax88179a_rx_fixup
Will add u64 pkt_desc = le64_to_cpu(*pkt_desc_ptr) within the loop
to account for endianness.

> - [High] net: unswapped read of rx_hdr yields garbage on big-endian
>    architectures
Duplicate of bug fixed in commit adding ax88179a_rx_fixup()

> - [Medium] The series is not bisectable: the VLAN feature bits are
>    advertised three commits earlier than the callbacks this patch adds,…
Will fix by moving the VLAN feature bits into the later patch that
also adds the netdev_ops.

> - [Medium] The new VLAN register sequences ignore every USB register-
>    access error and still report success.
Will fix by checking return codes in ax88179a_vlan_rx_add_vid(),
ax88179a_vlan_rx_kill_vid() and ax88179a_set_features

> - [Medium] All three new functions read AX88179A_VLAN_ID_CONTROL into an
>    uninitialised local u8 and ignore the result, then transmit a value…
Fixed by above checking of return values.

> - [Medium] The new `data->rx_checksum` write in ax88179_set_features()
>    (drivers/net/usb/ax88179_lib.c:369) races with, and is ordered wrongly…
  will clear rx_checksum before disabling the engine and only set the
   flag after the engine has been enabled.


> - [Medium] Enabling NETIF_F_HW_VLAN_CTAG_FILTER makes
>    ax88179a_set_features() (drivers/net/usb/ax88179a_devices.c:582-596)…
> 

You ask: On a busy bus, or when a transfer stalls and hits the timeout, 
this blocks
   all other network configuration in the system for a long time.  Could the
   clear be limited to rows actually in use, batched, or moved out of 
the RTNL
   section?

It is not possible to limit this to rows actually in use, because this is
clearing the rows _before_ use. These rows appear to contain garbage
on reset. Moving them out of RTNL scope would mean moving the clearing
elsewhere, but this also does not appear to solve the RTNL issue:
the logical place would be ax88179a_reset(), which however also runs 
under RTNL.
I do not see how batching could be done. Since the same issue is also
in aqc111, and this is not critical, I would like to push for a later
solution of the issue.

  reply	other threads:[~2026-09-27  9:24 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16  3:23 [PATCH net-next v12 00/15] ax88179_178a: Add support for AX88179A-based chips Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 01/15] phylink: Add phylink_mac_interrupt Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:03     ` Birger Koblitz
2026-09-27 14:18       ` Andrew Lunn
2026-09-28  4:48         ` Birger Koblitz
2026-09-28 15:27           ` Andrew Lunn
2026-09-16  3:24 ` [PATCH net-next v12 02/15] phylib: Add support for PHYs with broken forced mode Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:04     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 03/15] ax88179_178a: Fix endianness of pause watermark register Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:05     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 04/15] ax88179_178a: Split driver into library and device specific code Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-19 22:04     ` Jakub Kicinski
2026-09-27  9:01       ` Birger Koblitz
2026-09-27  9:08     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 05/15] ax88179_178a: Add netdev2data() convenience function Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:09     ` Birger Koblitz
2026-09-19 22:05   ` Jakub Kicinski
2026-09-27  8:17     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 06/15] ax88179_178a: Add HW support for AX179A-based chips Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-19 22:15     ` Jakub Kicinski
2026-09-19 23:22       ` Birger Koblitz
2026-09-19 23:32         ` Jakub Kicinski
2026-09-27  9:18     ` Birger Koblitz
2026-09-19 22:12   ` Jakub Kicinski
2026-09-27  8:20     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 07/15] ax88179_178a: Add EEE configuration support for AX88179A MACs Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:20     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 08/15] ax88179_178a: Add EEE configuration support for AX88179A PHYs Birger Koblitz
2026-09-17 21:24   ` netdev-bot+sashiko
2026-09-27  9:21     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 09/15] ax88179_178a: Add VLAN offload support for AX88179A Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:24     ` Birger Koblitz [this message]
2026-09-27 14:24       ` Andrew Lunn
2026-09-28  4:41         ` Birger Koblitz
2026-09-28 12:28           ` Andrew Lunn
2026-09-16  3:24 ` [PATCH net-next v12 10/15] ax88179_178a: Add AX179A/AX279 multicast configuration Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:25     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 11/15] ax88179_178a: Add Suspend/resume support for AX88179A/772D/279 Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:36     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 12/15] ax88179_178a: Add ethtool get_drvinfo Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:37     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 13/15] ax88179_178a: Update driver name and information Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:38     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 14/15] ax88179_178a: Add support for AX88179A/772D/279 EEPROM access Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:40     ` Birger Koblitz
2026-09-16  3:24 ` [PATCH net-next v12 15/15] ax88796b: Add support for AX88772D, AX88179A and AX88279 Birger Koblitz
2026-09-17 21:25   ` netdev-bot+sashiko
2026-09-27  9:42     ` Birger Koblitz
2026-09-19  5:28 ` [PATCH v12 0/15] ax88179_178a: Add support for AX88179A-based chips Jianhui Xu
2026-09-19 22:30 ` [PATCH net-next v12 00/15] " 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=289700c4-8569-4160-97c5-2fc37a901a9d@birger-koblitz.de \
    --to=mail@birger-koblitz.de \
    --cc=andrew+netdev@lunn.ch \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=neuromoments@gmail.com \
    --cc=pabeni@redhat.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

all inboxes | Powered by JetHome®