Linux CAN drivers development
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: socketcan@hartkopp.net
Cc: linux-can@vger.kernel.org, mkl@pengutronix.de, kuba@kernel.org
Subject: Re: [PATCH can-next v2 06/22] can: isotp: add the frame transmission time to the CF broadcast gap
Date: Mon, 30 Nov 2026 20:25:04 +0000	[thread overview]
Message-ID: <179607030485.3142.1104190171984989017@kernel.org> (raw)
In-Reply-To: <20261128-getsockopt-memcg-isotp-v2-6-034ba95e17a4@hartkopp.net>

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] The patch fixes a real uAPI documentation error, but it carries
  no Fixes: tag and bundles that fix with an unrelated change to…

--

can: isotp: add the frame transmission time to the CF broadcast gap

In CAN_ISOTP_CF_BROADCAST mode, this commit adds the frame transmission
time (N_As) to the consecutive frame gap. It does so with and without the
CAN_ISOTP_FORCE_TXSTMIN flag, and documents the gap in iso15765-2.rst. It
also changes the documented unit of the CAN_ISOTP_TX_STMIN and
CAN_ISOTP_RX_STMIN socket options from microseconds to nanoseconds.

> diff --git a/Documentation/networking/iso15765-2.rst b/Documentation/networking/iso15765-2.rst
> index 37ebb2c417cb4..badcd16c070bb 100644
> --- a/Documentation/networking/iso15765-2.rst
> +++ b/Documentation/networking/iso15765-2.rst

[ ... ]

> @@ -286,7 +289,7 @@ Transmission stmin
>  ~~~~~~~~~~~~~~~~~~
>  
>  The transmission minimum separation time (stmin) can be forced using the
> -``CAN_ISOTP_TX_STMIN`` optname and providing an stmin value in microseconds as
> +``CAN_ISOTP_TX_STMIN`` optname and providing an stmin value in nanoseconds as
>  a 32bit unsigned integer; this will overwrite the value sent by the receiver in
>  flow control frames:
>  
> @@ -299,7 +302,7 @@ Reception stmin
>  ~~~~~~~~~~~~~~~
>  
>  The reception minimum separation time (stmin) can be forced using the
> -``CAN_ISOTP_RX_STMIN`` optname and providing an stmin value in microseconds as
> +``CAN_ISOTP_RX_STMIN`` optname and providing an stmin value in nanoseconds as
>  a 32bit unsigned integer; received Consecutive Frames (CF) which timestamps
>  differ less than this value will be ignored:

[Severity: Low]
This isn't a bug, but should this unit correction have a Fixes: tag and
go in its own patch?

The commit message says "Additionally fix the unit of the values of the
CAN_ISOTP_TX_STMIN and CAN_ISOTP_RX_STMIN socket options". The
microseconds wording came from:

  Fixes: 67711e04254c ("Documentation: networking: document ISO 15765-2")

The setsockopt handler stores the value without converting it. The value
is then used as nanoseconds in isotp_rcv_fc(), isotp_sendmsg() and
isotp_rcv_cf(). On a stable kernel, a user who follows the current text
and passes 1000 for CAN_ISOTP_TX_STMIN expects 1 ms but gets 1 us.

This patch also changes the CF broadcast gap in isotp_sendmsg(). Stable
trees can't take the documentation fix without that timing change too.

Other patches in this series explain why they leave out a Fixes: tag, for
example "can: isotp: drop frames without N_PCI" and "can: isotp: check
the minimum FF_DL". This commit doesn't give a reason.

-- 
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261128-getsockopt-memcg-isotp-v2-0-034ba95e17a4%40hartkopp.net

  reply	other threads:[~2026-11-30 20:25 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 17:48 [PATCH can-next v2 00/22] can: memcg accounting, CAN_ISOTP fixes and cleanups Oliver Hartkopp
2026-11-28 17:48 ` [PATCH can-next v2 01/22] can: raw: read socket options under conf_lock in raw_getsockopt() Oliver Hartkopp
2026-11-28 17:48 ` [PATCH can-next v2 02/22] can: isotp: read socket options under conf_lock in isotp_getsockopt() Oliver Hartkopp
2026-11-28 17:48 ` [PATCH can-next v2 03/22] can: enable memcg accounting for user triggered allocations Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:48 ` [PATCH can-next v2 04/22] can: isotp: do not send FC.OVFLW in listen mode Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:48 ` [PATCH can-next v2 05/22] can: isotp: check the CAN_ISOTP_OPTS values before applying them Oliver Hartkopp
2026-11-28 17:48 ` [PATCH can-next v2 06/22] can: isotp: add the frame transmission time to the CF broadcast gap Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko [this message]
2026-11-28 17:48 ` [PATCH can-next v2 07/22] can: isotp: add the frame transmission time to the protocol timeouts Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:49 ` [PATCH can-next v2 08/22] can: isotp: check the CAN FD tx_flags in CAN_ISOTP_LL_OPTS Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:49 ` [PATCH can-next v2 09/22] can: isotp: reject reserved STmin values in CAN_ISOTP_RECV_FC Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:49 ` [PATCH can-next v2 10/22] can: isotp: ignore CAN_ISOTP_CHK_PAD_DATA without CAN_ISOTP_RX_PADDING Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 11/22] can: isotp: drop frames without N_PCI Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:49 ` [PATCH can-next v2 12/22] can: isotp: drop FF frames with invalid length extension Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 13/22] can: isotp: check the minimum FF_DL Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 14/22] can: isotp: check the data length of the last CF Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 15/22] can: isotp: drop inline keyword, let the compiler decide Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 16/22] can: isotp: rename rx_lock as it has become state machine lock Oliver Hartkopp
2026-11-30 20:25   ` netdev-bot+sashiko
2026-11-28 17:49 ` [PATCH can-next v2 17/22] can: isotp: introduce isotp_invalid_canid() to verify proper CAN-IDs Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 18/22] can: isotp: rename variable for the required content length Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 19/22] can: isotp: rename checkpad functions returning bool values Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 20/22] can: isotp: change return type of functions to void Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 21/22] can: isotp: rename pointer in isotp_rcv() prototype Oliver Hartkopp
2026-11-28 17:49 ` [PATCH can-next v2 22/22] can: isotp: introduce CAN_ISOTP_MIN_TX_DL Oliver Hartkopp
2026-11-30  8:57 ` [PATCH can-next v2 00/22] can: memcg accounting, CAN_ISOTP fixes and cleanups Oliver Hartkopp

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=179607030485.3142.1104190171984989017@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=socketcan@hartkopp.net \
    /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