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=1796471323; b=b0ilO+U8GV1F9atfltbI1lmzuspvSwR7MqVK8dopNjm05MupByB3U9sE1yVsIYcEkUx7 JUjyWMZL3oOWXD4glweGMuKX1/OQ7DfQp9K1Fa/Ou9+tmP7JGwPd7o7DOuVhLjOcKtGjU 7i2j77BCTjkVH7/71lsGwsZf3p3Fun7E5WgUY7RVDaRADmm1PABZwcdyb3A70IZHoTJPf tdCg+ihYijb6+R31FrNGB5eoPPIWRom7Avl2cuyywriZy/qa+isS5b/JP4Jtn/aVbGdoe bwTJV1sJ6U4dW7nVjrEzq4BabS32i+rf3yyU6SidTtpjuKR+IKmn5VERUcNiRHwss9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796471323; 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-Spam-Info: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=XiEEZBU43t62vcE91luiVW3iuG0oBaEFkPZ6ESIuXjU=; b=Z2zsmjCSil+lw0CRLFrqlsezYWk+U1xnCk9Yu1k5fYMFHaucxlHC5z/tDsKlzLLysusW lG9py5A9clLMQXNsAmouSgQD42GTxg5zmayUF0mENSoq62LITSOy52YH9O9Lc8TP9cIZi 0vSAUBJiu3G6NiiHt6fPjCB8XN/RWCynCPZDF/b0I5FkNMsL5YZI5ExMH8drqBZwD3h6c bWTJjW7xmbnIO0uh8kiATPuXwWDELbRSkUqdgIF4CrWx1DoYV0i0iq3RQvABGIwa8vZ/b qOZL2IyM0eHj6jWcU08oEudkvNSyH3QOwJBGmb8ahbQ0ImkQtOgmNkhh10+tlDk8Dbg== 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=ZVFqDWl7; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ITS5JT19; 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 195A8606A322 for ; Sat, 5 Dec 2026 11:48:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 195A8606A322 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, unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=ZVFqDWl7; dkim=pass (2048-bit key, unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=ITS5JT19 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B596Aw3427135 for ; Sat, 5 Dec 2026 11:48:36 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=XiEEZBU43t62vcE91luiVW3i uG0oBaEFkPZ6ESIuXjU=; b=ZVFqDWl7cLJTVonNs9qpDWDwAtqzkxLK/iVl0YzQ FtHryKxAaM8ovj4PccyjHcMO+ayAkcMG8uFNoMWANJYtuBUCh/1GQaWpflRpZBmq 1A3q5d8ZlpBELpnB46zLVwadk48CH54oz1w6I9mXtTphnGnCRMTKRSatiqo6ytFT l5uFxoM4YHRwAV7T4KGmyXSyrY5zzTfya6rgLx55IB/voWZhQrlSzIiAVFdmFRZE QW6OEsOiQDUahjLORwsXm6ltz/AfBNjWx7/ZriWCeHrkNE+C7Yydj/ax0h6VwS3l F1AZWEWGP6Uzg2gu05cF08ZyRunb74EwnRV69Y6B832PHg== Received: from mail-vk1-f199.google.com (mail-vk1-f199.google.com [209.85.221.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4jcbw88sbe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 05 Dec 2026 11:48:35 +0000 (GMT) Received: by mail-vk1-f199.google.com with SMTP id 71dfb90a1353d-5f02370d352so291244e0c.2 for ; Sat, 05 Dec 2026 03:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796471315; x=1797076115; 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=XiEEZBU43t62vcE91luiVW3iuG0oBaEFkPZ6ESIuXjU=; b=ITS5JT198xijzaQf+IEDjoi3CEDPeXchhH1sqEg6OFWwuWNhyytcIpYUYy5UfdVNtW bs0KnKGKsBK5uN+Nk6rpHTEf7op7f8TNZkfgdD591SP7UMsevgL+3SRDWhnzR0aRu44C G2vP3ybeiczOWeF5dqugO/Lr8oGdR4DPr9aNQ48Sdad6n57zX2musaq0PT43EUH2hwVv sHN+mbfG/Ci/7COchPfuK9xx51nLldTuRXfJipKrVnOic15hCp+6RQBnw2ifPkrFvFST 9EE1/VGgbAThu9e95tXCZBV5nDTRjeL7jd2Zcxs3XCJGGywzuopwBdSyOtKxdyNL1gIH Rf9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796471315; x=1797076115; 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=XiEEZBU43t62vcE91luiVW3iuG0oBaEFkPZ6ESIuXjU=; b=lUE0URQUdpULNox9TU1tNz3cMGDZiBDRvtkTsSN26Odq5wTzkFWw/1d7fG9eBGUFiT MCfJZcFt50MXFNccAZpB8YniiVocnjsitZs0/DLX8IW3SbrrqmIe3NdzvTpxxEH0FVB8 1tCcKzzVhRI2ZEVFkhpCbfZ5+Mqmy8RM6vysvPQkgGiw2UgADs3QcHiv5QArkCjfzGNv dVLEIudisZmy5zHNAsJ5RtsldzQNpOR3gwhbS51r5+RcDhfnmhLR9Y+nnnx5EyPOrRgi qXXb2jI0emGosr41JSPf12TX5KnjPbdnya81JGlGe5+/dPmzc7Cuj0VPDHotxxLWpst8 bvCQ== X-Forwarded-Encrypted: i=1; AL+hErG+/XK4rW4DL4pcVNLjYESW4CxQt9uzXUDWoMCOyaU8xBYKgvEN6uBNP140G3HFyBz9zQw=@vger.kernel.org X-Gm-Message-State: AB4q+uHeDu1+ydr2mDTlNgc1C1AMWoHZbIrkK+z/iN2Z7xd31eb9ZQ6G umzjNN1xXQeBWo+YQ4fcbQ5Uh1m7RLwP2op2lHcm4Zw5kT3QrnZUCBbk4L+tKlr5k7h46E3Rmsu zzSR/Lb9Ha4eG74j9hVAixxF+Nzfi4N2lmVbur2faMTsR0DUOcKxlY24= X-Gm-Gg: AZFdTZe8pBQ3sCQRRg0hueEqGoCmJNzl88XI+pZIidl04cq8kiWaTtQiKpr05ZZrDuQ xbp3d9u2qR8z8sP367Wg4MnuKzKVr07qODhDIeqkBWLBl4M/7fDXUBh5RAndvimWb6+prfvkm2K VTkYLrTCgtYoaDVMmKAlcmw/WjG25c/APOjNYKz2Ccjcclc6ttfusj2fZWU0wcCviyWThjKEJtS MMrFNHJHB5YGMP52FP5Dje4A5hNnscq5hSrDvZxOEacSOIUlKFVyJA0Gh5q/7a590KiQzTFyASE 460qg5Dg7tbsjXF9CUKaAr+CRmF+JCkTY90HogjQJ4DpudKB1kYzFIRgSbHa7ZDGiV1Cp320gMz WZqurOhtbg/79NpoTCrw7i9AH4lqA78eZMakfhlkuGL3iR/8UHiCtMgL+KNOndA== X-Received: by 2002:a05:6102:3ec9:b0:7d0:6db8:dc43 with SMTP id ada2fe7eead31-7daec867f55mr4151903137.24.1796471314618; Sat, 05 Dec 2026 03:48:34 -0800 (PST) X-Received: by 2002:a05:6102:3ec9:b0:7d0:6db8:dc43 with SMTP id ada2fe7eead31-7daec867f55mr4151882137.24.1796471313953; Sat, 05 Dec 2026 03:48:33 -0800 (PST) Received: from localhost ([130.25.105.85]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d1738cfa05sm11474884f8f.35.2026.12.05.03.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 03:48:32 -0800 (PST) Date: Sat, 5 Dec 2026 12:48:31 +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="77XUscDjRDU+qUOK" Content-Disposition: inline In-Reply-To: <179646788129.3146.10432733850677593398@kernel.org> X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA1MDA0NiBTYWx0ZWRfX7Es5AHRziIkO AbEGsjRrNG+WtvzHLj5sugCF1rh+kj5FCi6k1Q8xBzeFNB1cCnemxT9cq30ZddIWCPMnEVh9EVt hzajWQVCkS9PZneTRzDd6UJvGrNLs+k= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA1MDA0NiBTYWx0ZWRfXwdINXZxyKT3L zs8uUZ2MX8wB7B+bUcizjNn6MGQe2vIxx6AoVZ3/VvEPbXAnWsNrM5qM+rcTYwIttieqsEbR9U/ wK9647BMwTy7+ZFxwIY7Qg5pYKu+Lyjr0IY7TbZ27P6z9Zq0EXJ9pgBY2VcEmJ2kdJQVQIOC/9M FhgJGDbvf6OV+ZoH9e0BpvxM27DFSWtiAKHvi0Zgn9h/78DI5XAWMxNMygW4uPvLf26oy268Qfh jJ/7sHkLnAfW1MZ7pwPCLPeEkaoQ3TIXqI+NP4mCD6TLzusaQODZiCJ10B8107dFa5Sl1Bxyq0u X6wAxienaoV61ofg0S4cEvVROikjAT319fVUxoFupGb9Lc5TUU/z8l/VDLzeBkTSmfVH7NVwBeP Mch8NFVIKY6jY2tdmvjr94PrjWKM5svxUNCE76kHmZmDbrQd7epVwrgEPQoom6Fj+zj0OZbWbnY Q5Qt+99rSiWRZnD7mng== X-Proofpoint-GUID: PEUfc8J-cjTsD-HjNQ2Z02-JgE8xZeJB X-Authority-Analysis: v=2.4 cv=b7cncdGx c=1 sm=1 tr=0 ts=6b13fa13 cx=c_pps a=+D9SDfe9YZWTjADjLiQY5g==:117 a=RcFDq6c+avmIvxkL9iwlxA==:17 a=pUM-KoujPXoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=9R54UkLUAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=yYRB35bOVUg2bXbUDdYA:9 a=wPNLvfGTeEIA:10 a=JzKZBT1h1_UQ6mc5CisA:9 a=vmgOmaN-Xu0dpDh8OwbV:22 a=YTcpBFlVQWkNscrzJ_Dz:22 X-Proofpoint-ORIG-GUID: PEUfc8J-cjTsD-HjNQ2Z02-JgE8xZeJB 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_03,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 spamscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612040000 definitions=main-2612050046 --77XUscDjRDU+qUOK Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 patchwork > know by including "pw-bot: cr" as a separate line at the end of your reply > (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/driver= s/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 *de= vice, > > 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 could > 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 filter > 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? 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 patc= h. Regards, Lorenzo >=20 > --=20 > Sashiko AI review =B7 https://netdev-ai.bots.linux.dev/sashiko/#/patchset= /20261204-stmmac-rx-mb-v14-0-5506796fd39e%40oss.qualcomm.com --77XUscDjRDU+qUOK Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCaxP6DwAKCRA6cBh0uS2t rA0lAQC3jtqrB74JSCSdl5H4Yyf/cV2apCHmY9VfJ7JHt4BsGQD/bd969MIZF3BM +p6DXr+2a23eeHjeLjFKzxFc95IEaAU= =SJCx -----END PGP SIGNATURE----- --77XUscDjRDU+qUOK--