From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796492019; b=Sdeu9UEFszQnwXLo96EAwv+ZATnX29smswnKfG168XXXfPEw/qHMhVD8PRqX2Z8jdXBM ptWY52pLRmpalmKEEDl6hjBXREYi/3VqWfzh46PQVx12x4Y9NNsyMh5ajFHRg4tvbd4Mg 9Kiq2rf4Q216ePPpu3zPRHwX1Ath6GOQtKf1BlvROx9a26tM13J5AiOk6Dvsh2v9pzOYO mgYO2qrVflsNHl0JYLpIqfqrLYYecvkDjVelWtkXkZMXYMR+tTwCg7iF6aCZPPiN4DPE0 CDLZlEUebM/wAynjCG+GHlqiKh/p6oD4WhcFqD72Zh4cxshJFZ1wn7qt0MYGGEEmkZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796492019; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:Date:From: To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-Proofpoint-ORIG-GUID: X-Proofpoint-Spam-Info:X-Authority-Analysis:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=3AooT7mZeE6kND4TBy3ryyK1JmCJVj99P2qydDLjtak=; b=MoYroKyZVphZjMeyuXOn1ENH42CdyPCE8q7BrIwDCEkpDcpkG6/976gs8UZ/DOKHAY/1 Zf5MfIN6BV+JM8IFAp5s5HOd4Tgr1Qy7550Vvy2UTNaKs2TsXA3fmFor6r3E1B/lT3Z0v c4xtn4xBIX68V5mTsq3empkifcEfjlJo/hKRhhUd6/vwzcByLk5j/+JP5JhUXGK70RC4B OZd/2epZyMkqH/E+SrYScvFLvvbMz3JzQoRs8TYYtFHHt6gVC6yoMhM2NIDrOugtcteld sPpTnKWLJK+hqdbVVBq/EY7tdFna+7chwrMvLPW8qMQUJ5bsXLmEwPwi3EFwSCJ7yUg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Nx9kMAyc; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b="bTMPP/5F"; arc=none smtp.remote-ip=205.220.168.131 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65D6D606A31F for ; Sat, 5 Dec 2026 17:33:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65D6D606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=Nx9kMAyc; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=bTMPP/5F Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B5GmvdJ2654363 for ; Sat, 5 Dec 2026 17:33:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=3AooT7mZeE6kND4TBy3ryyK1 JmCJVj99P2qydDLjtak=; b=Nx9kMAycXrIVfSknc+U8l1/O04s2XkKmWB3q457u upvlJFGtZ+IJWmJzPR4NQRjvMfcGbNsVb4Snd1DEP5Iq2o9zSmBK9126s6HLbYl4 MmAxJkxsXNOmlPeFmr2MkBfWRVDZYnotgeZx0Dsf87Kl1VqjEOmpSorW3Rf+9wMo sDbzFKaj1wc8Ey13QUqllaWOeg4z6ZjnKmFh/5moo5aLfdibfOAli532Bl1jLAT8 DBoyYf9nc8a1KxzYxSkFwx5FeddW0d+/YdEzbyQTfeaAVhv8gztFG5H8vHBK0osp 7STG0VHWJ/eQuMkc6/tCLRoXa3L9K9+GuAfn+pHSeAwmaA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jcbn4shx7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 05 Dec 2026 17:33:38 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-94a37bdbae0so288716385a.0 for ; Sat, 05 Dec 2026 09:33:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796492018; x=1797096818; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=3AooT7mZeE6kND4TBy3ryyK1JmCJVj99P2qydDLjtak=; b=bTMPP/5FyBm9IM5jdHJak1N5GpqTxv5nz322nTBPfgqrCaTpxO3J9BDeDcBws++wT5 Bx+uiI+3AZu+zevXTYrwGKkV+9o/aETZ3PtOjUpKi4TUeAI32ZNO+wP74fA94suUGQUw hib456IC5D4YfvcOHUF+O1B3i2IB+dbeL1PltzJoAqUmXWxVcQiu7eigzWxVy6IKifZ+ MLBUmFpoZX9s+ZAuNkWEBFuJ8HXjOiXwMOcakmPoR24loQn0jyc6hBCF9R6TFtVdGJMl D7z6oipT/dhZbz1ex88Fv6yC8HV1RxbwToL6bYhlkxpJtvDXyjxFCrm+TnuEKq4E3yeR 8GLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796492018; x=1797096818; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3AooT7mZeE6kND4TBy3ryyK1JmCJVj99P2qydDLjtak=; b=mH4sPNfd2+tU2PXZ+FirqWEHNtS3HJsMF6F5w1gv/EcHb5foCY2hW3DSKpqjaA7YNf 9mJNl4xowmoxPeLbUMpk7S4N6gVyKoKPK0T2303hJGFJuj4OsIl36MDByf4WcNrSR0HG e2hRth7t0OzeVCasSsNqsuHFthjjAGnmRKiX618mBlb9FhSWJhhvqnxgMEZ+Uar9AnrJ 6Uube0shAKsxH0dCxxTGfBcgDSWCvPzFukXpY2FQzPz9qMC2IFFxEWcbv3V2hT/t28Rm pveALreRdXCJdp0OLedWpJnpm/Vg1E8RBpgBb7/x3zjyvwxz/4WBo0uTwn7nuxxY2mAg JnoA== X-Forwarded-Encrypted: i=1; AL+hErFgGjO5/XAje1f5fap2l3dPiw641JALSpgCSkMj2jMvYirDUwhRjFa0FjvxklXb30447T8=@vger.kernel.org X-Gm-Message-State: APuU4Z+34Jyro6CaPEH0lEaRKTQVGGWROvkJcEGtNmlZ0MoXh1dTW/dJ wFxWThnRgIxAJyzF7FkQn5Tfn3LJw8avfDi7OOxpsyCIz1au2A08SSH9YlPcUd6iDT3cIE6nFxQ ClOtAQF57VLZmOuBDWDzRCRajO/SfEZeDjy7/AjPEa6iFSMfVB39jy4E= X-Gm-Gg: AZFdTZcEoviKnQjPuMGgnx6w2ppxP3XZdOR7diLUNo5A/lHef6Bo6x7sIumS4RnlCdA tY1FxWyeP/p6UsOk56VkbZ1/AAPuixj3UUoHieLjuhqIQrArRu7uveOf5FGknGXptAHa3GpdjVw POblH+0TVvZKD0oe88dol1BZCmKf+mfIFpMv75+Jed+ct2JY3j2CmiSGW+/7S5Xk7CAM0hKn7xG qQ6CmcuVqu9DHITuVUZNmt2UBX2DH2gqZWvVONjL/QgxwmkBvApGFO2kQimZkSrwmAhbAwt4bVS K8rzDmlf/VyYXxLTT/VmeWfORxKPyEUH+q3tCyqI+0H6/FU56oxG+QU0AktYr1vd9OYFAhvFwK2 RwF7NRFsd+Im2O9zOUWxLvvq81szLFQBH2Emldv/6xnBRGw7lyOuDRSSslu7Qxw== X-Received: by 2002:a05:620a:472b:b0:94a:5dbf:ce63 with SMTP id af79cd13be357-94a827e33d6mr856319585a.19.1796492017319; Sat, 05 Dec 2026 09:33:37 -0800 (PST) X-Received: by 2002:a05:620a:472b:b0:94a:5dbf:ce63 with SMTP id af79cd13be357-94a827e33d6mr856315285a.19.1796492016638; Sat, 05 Dec 2026 09:33:36 -0800 (PST) Received: from localhost ([130.25.105.85]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea25ce51sm141863295e9.5.2026.12.05.09.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 09:33:35 -0800 (PST) Date: Sat, 5 Dec 2026 18:33:35 +0100 From: Lorenzo Bianconi To: netdev-bot+sashiko@kernel.org Cc: maxime.chevallier@bootlin.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, sdf@fomichev.me, Jose.Abreu@synopsys.com, boon.leong.ong@intel.com, horms@kernel.org, andrii@kernel.org, eddyz87@gmail.com, memxor@gmail.com, martin.lau@linux.dev, song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org, emil@etsalapatis.com, ihor.solodrai@linux.dev, matthew.gerlach@altera.com, boon.khai.ng@altera.com, linux@armlinux.org.uk, willemb@google.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org, nb@tipi-net.de Subject: Re: [PATCH net-next v14 2/5] net: stmmac: remove software VLAN tag stripping Message-ID: References: <20261204-stmmac-rx-mb-v14-2-5506796fd39e@oss.qualcomm.com> <179646788129.3146.10432733850677593398@kernel.org> X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tEWd5N3u6r7noC3W" Content-Disposition: inline In-Reply-To: X-Proofpoint-ORIG-GUID: 1s5JKY2ZB4QOk2MNa92xKYJxgu8X7fnu X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA1MDA2OSBTYWx0ZWRfXzKFQQF0YlP+Z Iac2xev2nzNvgwABDQvrJhyGE7+N1zRGKi9eDrioxA8c99F+E4T4ehZENttQ2WApFgBZJ0Que4w qtR2gCHH3Z+hJTNZvenI5JG4wR+FKTo= X-Authority-Analysis: v=2.4 cv=QvLLTlyd c=1 sm=1 tr=0 ts=6b144af2 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=RcFDq6c+avmIvxkL9iwlxA==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=9R54UkLUAAAA:8 a=pTaj4p7zGUc7cznuJIgA:9 a=wPNLvfGTeEIA:10 a=-462kB91QjH2YZg2cuYA:9 a=IoWCM6iH3mJn3m4BftBB:22 a=YTcpBFlVQWkNscrzJ_Dz:22 X-Proofpoint-GUID: 1s5JKY2ZB4QOk2MNa92xKYJxgu8X7fnu X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA1MDA2OSBTYWx0ZWRfX8OkzmElfxUwp 3XpFtoDKdKcGpDt2+ghRwYUuyCPpNNqPug5KaId+fJ58DqM8K+50xNRnIZXtyTajwh2ZfCcoZS6 JeaJ93WlWb9NT1PzdzJfNBLb3NBFtLxan8UIAbpFeD7f+Hqz8pbOrVHZdLhaDAi39gGxxCqraCI 6nua9E4F0RBGomPVMHH8jxGZxfGiPVEWtElkWn4DtxuenAWBokIcLr0V2x5dibTI1U4umEV3JEt l7X9HzjoryTI7lRrteM4y7k6YuorN9zfH1RtRUOXkgz01b2PVzw0ACJ/AxN/gwOu9kY3N2uzRwd EGuX2vcJDvjglAm9pFdnsT0kWmcWEW8G7E5wkL5IIA2mBQNPatQEzANVcSShe4cbFIDznbzOdLL fjQ6yFQrjRx9VVhBE8LTzAg9dvxptGNBebfqYX1KWyr/eQJXDE5/VwSZiJNeMuC08q2FbvZiNXm u7pKYvnanZky2XpPAFQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-05_05,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 suspectscore=0 phishscore=0 spamscore=0 impostorscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612040000 definitions=main-2612050069 --tEWd5N3u6r7noC3W Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 05, Lorenzo Bianconi wrote: > On Dec 05, netdev-bot+sashiko@kernel.org wrote: > > Thank you for your contribution! Sashiko AI review found 1 potential > > issue(s) to consider. > >=20 > > Critical: 0 =B7 High: 0 =B7 Medium: 1 =B7 Low: 0 > >=20 > > If you believe none of the issues are legitimate, please reply to each > > issue of Medium severity or higher and explain why the AI is wrong. > > If any of them are legitimate and you plan to respin, please let patchw= ork > > know by including "pw-bot: cr" as a separate line at the end of your re= ply > > (one such reply per series is enough). > >=20 > > - [Medium] With this patch, the PHY is allowed to stop RXC in LPI on > > dwmac100/dwmac1000 and on DWXLGMAC builds that have no vlhash/vlins. > >=20 > > -- > >=20 > > net: stmmac: remove software VLAN tag stripping > >=20 > > This removes the software VLAN stripping fallback in stmmac_rx_vlan(). > > stmmac_has_ip_ethertype() is reworked so it still recognises IPv4/IPv6 > > behind a single in-payload C-tag on RX. NETIF_F_HW_VLAN_CTAG_RX and > > NETIF_F_HW_VLAN_STAG_RX are now advertised only on cores that actually > > provide hardware RX VLAN offload. > >=20 > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/driv= ers/net/ethernet/stmicro/stmmac/stmmac_main.c > > > index b3524d46863da..c429cb9e1ccbe 100644 > > > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > >=20 > > [ ... ] > >=20 > > > @@ -8282,15 +8255,15 @@ static int __stmmac_dvr_probe(struct device *= device, > > > ndev->features |=3D ndev->hw_features | NETIF_F_HIGHDMA; > > > ndev->watchdog_timeo =3D msecs_to_jiffies(watchdog); > > > #ifdef STMMAC_VLAN_TAG_USED > > > - /* Both mac100 and gmac support receive VLAN tag detection */ > > > - ndev->features |=3D NETIF_F_HW_VLAN_CTAG_RX; > > > - if (priv->plat->core_type =3D=3D DWMAC_CORE_XGMAC) > > > - ndev->features |=3D NETIF_F_HW_VLAN_STAG_RX; > > > - > > > - if (dwmac_is_xmac(priv->plat->core_type)) { > > > + if (stmmac_rx_8021q_offload(priv)) { > > > + ndev->features |=3D NETIF_F_HW_VLAN_CTAG_RX; > > > ndev->hw_features |=3D NETIF_F_HW_VLAN_CTAG_RX; > > > priv->hw->hw_vlan_en =3D true; > > > } > > > + > > > + if (stmmac_rx_8021ad_offload(priv)) > > > + ndev->features |=3D NETIF_F_HW_VLAN_STAG_RX; > > > + > >=20 > > [Severity: Medium] > > Can this change let the PHY stop RXC in LPI on cores where it never cou= ld > > before, with CONFIG_VLAN_8021Q=3Dy? > >=20 > > Before this patch, NETIF_F_HW_VLAN_CTAG_RX was set on every core. Now > > dwmac100/dwmac1000 have no .vlan ops, and dwxlgmac2_vlan_ops has no > > .rx_hw_vlan. On those cores without vlhash/vlins, NETIF_F_VLAN_FEATURES > > is therefore empty by the time stmmac_phylink_setup() runs: > >=20 > > stmmac_phylink_setup() { > > ... > > if (!(priv->plat->flags & STMMAC_FLAG_RX_CLK_RUNS_IN_LPI) && > > !(priv->dev->features & NETIF_F_VLAN_FEATURES)) > > config->eee_rx_clk_stop_enable =3D true; > > ... > > } > >=20 > > Because of that, RX clock stop is now on by default for dwmac1000 with = EEE > > and for DWXLGMAC without vlhash/vlins. > >=20 > > stmmac_set_rx_mode() still writes the MAC address, hash and frame filter > > registers through stmmac_set_filter() with BH disabled. It does not call > > phylink_rx_clk_stop_block(): > >=20 > > * FIXME: This may need RXC to be running, but it may be called with BH > > * disabled, which means we can't call phylink_rx_clk_stop*(). > > */ > > static void stmmac_set_rx_mode(struct net_device *dev) > >=20 > > If a multicast join, unicast address change or promisc toggle arrives > > while the link is idle in LPI and RXC is stopped, can the hardware filt= er > > end up out of sync with the software lists? One example is a missed IPv6 > > solicited-node multicast address, which would break ND until the next > > set_rx_mode call. > >=20 > > The commit message acknowledges this window and says a dedicated > > follow-up will fix it. That follow-up does not seem to be part of this > > series. At the last commit of the series ("net: stmmac: rework stmmac_rx > > to support XDP rx multi-buff"), stmmac_phylink_setup() still uses the > > same NETIF_F_VLAN_FEATURES gate. > >=20 > > The patch also carries "Fixes: 534df0c1724b", so stable could pick it up > > without the decoupling change. Could eee_rx_clk_stop_enable be decoupled > > from NETIF_F_VLAN_FEATURES before this patch, or in the same series? >=20 > As previously pointed out this issue is not introduced by this patch > (CONFIG_VLAN_8021Q=3Dn) so I think it should be fixed with a dedicated pa= tch. I posted a dedicated fix for this issue here: https://lore.kernel.org/netdev/20261205-stmmac-keep-rxc-running-v1-1-35f8cb= 71cb98@oss.qualcomm.com/T/#u Regards, Lorenzo >=20 > Regards, > Lorenzo >=20 > >=20 > > --=20 > > Sashiko AI review =B7 https://netdev-ai.bots.linux.dev/sashiko/#/patchs= et/20261204-stmmac-rx-mb-v14-0-5506796fd39e%40oss.qualcomm.com --tEWd5N3u6r7noC3W Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaxRK7wAKCRA6cBh0uS2t rDXsAP4l/kNSRuF0iYSbNZBRSnxkqvW7D+5VLnDklstojVBvfwEAk6tRT+I5UEUT dgtoxgkYj8BsrRD+aNxTZJYVBJ8cqAQ= =aPs5 -----END PGP SIGNATURE----- --tEWd5N3u6r7noC3W--