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=1796183335; b=GOneKDqz8+C711EqHy/W3yqGvxzxj0aG4IfU9vmdkjYJeHs5CCUoUo6mfAbn+VfbGg4S 5mde7jAYDUhu6ZWrwetaLPPtCc2BQHHgCq/xAPNzrdvbH+Y1JsM449Ct8UrHGAHD/KfTC 6G+Vx0T3fcEb7rtdqD0fpbq5/0i9JWmFf1jylxozVG+8LL+vOoGeFaY6LSDB7G9cWloze /vBCrW+WQyFKaov4URbJqWRLlpAQEeiRdpixcEegEtI5F+RR5sHhiLVDM1n9+RaiAPJzb XikZtsKJHG7QbCtrhr54NjwMduiOo8IODRtTRik+5sdVXEgx72xdON8uKK0B5LRmmKA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796183335; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=YZijqWxpbmfW7LjBc+sIjBrt/KixxaUO2VdcWHcSphY=; b=OhMyR4j5E6bNQBCzkNPLCVVxKoR8C78jTotoaftV5T6ffPK0h5+w+GmvzKueiaD4MXjz Y2DNArdtpWYDwTMH4J2vQ8sgGbBJlRsBH4Caq353lPaEAEGA+XGv3GGLfxrEO39nY0fGZ u/ChmV7mazWd+zaCFDCSS/76feluNmdhQX3nDCOtF55djSSgj1/StGztSWPoY3mzC2kEy cAlBS3M9Y+lMnNAsle2HD7tJ8bNF0ZUJ0AC26lwZOEz/SPmkTGq3YvUJQ/3L3gmJMwO+/ Kho0ZHQdoR0y47R3Lv1JnVJ3aUFj6wR8VBFY71Mj9PVr5Oer6RfrStoYCUT9C6hOdIA== 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=K4tZW97U; 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 81347606A31A for ; Wed, 2 Dec 2026 03:48:55 +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=K4tZW97U Received: by smtp.kernel.org (Postfix) with ESMTPSA id 609171F00893; Wed, 2 Dec 2026 03:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796183334; bh=YZijqWxpbmfW7LjBc+sIjBrt/KixxaUO2VdcWHcSphY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=K4tZW97UTnm+6KXGQ65f8y7rIzdXXG6Cd+TEz1A5JqSK/QrZ2BAyqNNY5o+NnUI5N uPfJA3iCojxX8jEV9yELJh1TtBVXo42dDcbvlypHi18bC6zg5KM7orb39xLzDxXO+E NYLXyp7N8xBWIxZ+L/nQALECctdJcTvyjl863RRHUf1Rcar99RRWe2ylbpg5OSMfaS /qYeGLsw6Rb2lPWmhzi0/b5BQ4MNROSzsKb2r6Lrqf83nHNHQeUfY8mnDMfv7OWrWk nLB5JMplmB7Lne0s93fo9syRgxCSnOfEdALV4EvdbkzY4MiUNCgN+08DQMnhUQ3nfi 15IfwwddXUJdA== Subject: Re: [PATCH can-next v3 06/23] can: isotp: add the frame transmission time to the CF broadcast gap From: netdev-bot+sashiko@kernel.org To: socketcan@hartkopp.net Cc: linux-can@vger.kernel.org, mkl@pengutronix.de, kuba@kernel.org Date: Wed, 02 Dec 2026 03:48:53 +0000 Message-ID: <179618333394.3142.11462126950162474305@kernel.org> In-Reply-To: <20261130-getsockopt-memcg-isotp-v3-6-21d72c15ad1d@hartkopp.net> References: <20261130-getsockopt-memcg-isotp-v3-6-21d72c15ad1d@hartkopp.net> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-can@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] Commit "can: isotp: add the frame transmission time to the CF broadcast gap" changes how the CF gap is computed in isotp_sendmsg()… -- can: isotp: add the frame transmission time to the CF broadcast gap This patch changes the consecutive frame gap in CAN_ISOTP_CF_BROADCAST mode. When CAN_ISOTP_FORCE_TXSTMIN is set, the gap is now frame_txtime plus force_tx_stmin, which matches the flow control path. It also fixes the documented unit of the CAN_ISOTP_TX_STMIN and CAN_ISOTP_RX_STMIN socket options in iso15765-2.rst, from microseconds to nanoseconds. [ ... ] > diff --git a/net/can/isotp.c b/net/can/isotp.c > index 8817f0ef7fd9e..7b88b3ace919e 100644 > --- a/net/can/isotp.c > +++ b/net/can/isotp.c > @@ -1292,11 +1292,11 @@ static int isotp_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) > isotp_create_fframe(cf, so, ae); > > if (isotp_bc_flags(so) == CAN_ISOTP_CF_BROADCAST) { > - /* set timer for FC-less operation (STmin = 0) */ > + /* set timer for FC-less operation (N_As + N_Cs) */ > + so->tx_gap = ktime_set(0, so->frame_txtime); > if (so->opt.flags & CAN_ISOTP_FORCE_TXSTMIN) > - so->tx_gap = ktime_set(0, so->force_tx_stmin); > - else > - so->tx_gap = ktime_set(0, so->frame_txtime); > + so->tx_gap = ktime_add_ns(so->tx_gap, > + so->force_tx_stmin); [Severity: Low] This isn't a bug in the code, but should this change carry a Fixes: tag? The code now matches what isotp_rcv_fc() already does in flow control mode: net/can/isotp.c:isotp_rcv_fc() { ... so->tx_gap = ktime_add_ns(so->tx_gap, so->frame_txtime); /* add waiting time for consecutive frames N_Cs */ if (so->opt.flags & CAN_ISOTP_FORCE_TXSTMIN) so->tx_gap = ktime_add_ns(so->tx_gap, so->force_tx_stmin); ... } The commit message calls the missing frame transmission time a defect. However, it only explains why the documentation part has no Fixes tag: "As the uAPI header isotp.h has always documented the stmin values in nanoseconds, there is no Fixes tag for the documentation." The old broadcast gap logic in isotp_sendmsg() came from commit 9f39d36530e5 ("can: isotp: add support for transmission without flow control"). With CF_BROADCAST and CAN_ISOTP_FORCE_TXSTMIN, this patch changes the CF spacing on the bus. Without a Fixes: tag, or a note on why there isn't one, stable backporters can't tell whether to treat this as a fix or as a behaviour change. Would it make sense to add: Fixes: 9f39d36530e5 ("can: isotp: add support for transmission without flow control") or to say in the commit message why it is left out? > > /* disable wait for FCs due to activated block size */ > so->txfc.bs = 0; -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130-getsockopt-memcg-isotp-v3-0-21d72c15ad1d%40hartkopp.net