From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796438371; b=zfINhcNHlkePYX3j5jmLmOX3rRMa7B62AHnj8N4JU2vD5kRomHlMOWqsX4bV+wHgFp3u KWyOp4+3AS7y+2ynpj+e5Inz6J6tinml9YfohfIb+A1Ji68WmXIPsi6ly2aKrQr6lG8Gz 5xjjErqd4xaK6INKqjmrHoKYLAdCwczyoKh2Kxcl0KyF7iXTib6vb9qmIUIJx6LtbeYWV ggzumNdHS7dgV1fBYaHxPDC9VsHjRRSKaNqnwwTPAg8pFD/ckL2vic+wOvlASPXzKAlCG KyzR6nGVZPgl1+wg5yaWz8Gabu/GrUzs4JitL+CnPTU2hpvuS/YXC28ihNn16BvI/9w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796438371; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=n61jVuKE5jsMeKDRAq+JQwnnUSvZUsMY1dxT+3o98tE=; b=HWLFv1WWSiUTqioo3KVEfhvtyO+Qd260tf/RcTKV2yRqE+DdQ/BL+dM0HTxaYnoIrDDF uF/0sQJWEgeu9TPlTn6rLLCeUZrl+c2qz/rer29EHVRyKtvoe0A7K5noiCViq8khhCx5E C0fCF2zMxWFGxqoB3/7ZvDDM4uyfdYnz7ak52CCAG40JQjcHPPIdYglCy3qFnS/4EfkP3 YDHzmj230Z0vjE4/xoECmXn4KNPknMgUmAA3AeQ4BRnX8Ar9AvljDTeLuZRdJXcemIzUJ EKgmgStw1oJbNHsNpSiyEe02MDyrjDauS40tOy+xztg2dfLEZcnNkZDx3g4q8nDa1Ug== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d1Ozbv+y; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D28A5606A322 for ; Sat, 5 Dec 2026 02:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=d1Ozbv+y Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B0D31F0092B; Sat, 5 Dec 2026 02:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796438371; bh=n61jVuKE5jsMeKDRAq+JQwnnUSvZUsMY1dxT+3o98tE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=d1Ozbv+yiYV/G4+nKJptbEX+loJ7Mh4Gs4PfV66Vj6+eXfuD8OrOSpTAXpRtVwscA 0odcq2yybOtVkdyUGA12NiNXhs11YC1v7/c3361W+/Pa0lL4B1h2r6Gv2Fl/5J7cXx O2iOWVn8v50RYNUAj1VLu8Nd9FSf+DxxGUm/BQPYJnwN+D13aqpB2iwu74QuXX6oq/ QV0QKLP/8SKR4hHcuwZDl5DKN+lL7FgZg8k5CFJoxJE3vw4Kq6K8VtuW5ZNrZm8/Ng +IN1N1msdaAFwJHFUBerSyIVJT6ehv6obymi7il1FBYNf38ttIVB8EKLTa15yT0ohl hcRgbJzNqduvQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net-next v4 4/5] net: stmmac: add common RXALL handling Reply-To: sashiko-reviews@lists.linux.dev To: "James Hilliard" Cc: linux-sunxi@lists.linux.dev In-Reply-To: <20261203-submit-sun8i-rxall-v1-v4-4-af22aec6ae13@gmail.com> References: <20261203-submit-sun8i-rxall-v1-v4-0-af22aec6ae13@gmail.com> <20261203-submit-sun8i-rxall-v1-v4-4-af22aec6ae13@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 02:39:31 +0000 X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net: stmmac: common RXALL path omits rx_error_frame from checksum check -- commit ee13ca5b9e68fc92b4d71ee0677c37773ad41461 Author: James Hilliard net: stmmac: add common RXALL handling This commit adds common NETIF_F_RXALL support to stmmac by introducing the rx_error_frame status flag, a set_rx_all MAC callback, and shared discard and packet-accounting logic in the page-pool and zero-copy RX paths. > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/= net/ethernet/stmicro/stmmac/stmmac_main.c > index 99252fb836750..842d6d7f82a44 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > @@ -5652,10 +5652,12 @@ static void stmmac_dispatch_skb_zc(struct stmmac_= priv *priv, u32 queue, > skb_record_rx_queue(skb, queue); > napi_gro_receive(&ch->rxtx_napi, skb); > =20 > - u64_stats_update_begin(&rxq_stats->napi_syncp); > - u64_stats_inc(&rxq_stats->napi.rx_packets); > - u64_stats_add(&rxq_stats->napi.rx_bytes, len); > - u64_stats_update_end(&rxq_stats->napi_syncp); > + if (likely(!(status & rx_error_frame))) { > + u64_stats_update_begin(&rxq_stats->napi_syncp); > + u64_stats_inc(&rxq_stats->napi.rx_packets); > + u64_stats_add(&rxq_stats->napi.rx_bytes, len); > + u64_stats_update_end(&rxq_stats->napi_syncp); > + } > } [Severity: Low] Should the checksum offload check in stmmac_dispatch_skb_zc() and stmmac_rx= () also exclude rx_error_frame? The commit message says rx_error_frame packets are delivered without trusti= ng their checksum, yet both functions only test (status & csum_none) before setting CHECKSUM_UNNECESSARY, and common.h does not document a requirement for rx_status() callbacks to set csum_none alongside rx_error_frame. Commit "net: stmmac: dwmac-sun8i: support ethtool rx-all" avoids this by returning rx_error_frame | csum_none, but another MAC relying on the common path could deliver errored frames with CHECKSUM_UNNECESSARY. Testing status & (csum_none | rx_error_frame) in both RX paths enforces the policy. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-submit-sun= 8i-rxall-v1-v4-0-af22aec6ae13@gmail.com?part=3D4