Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp16347lqb; Thu, 14 Mar 2024 04:20:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1aoYkbmZCDvBGKlIYN740/Ho0wOaTpb+cnVjYYaXAkMvTdhMIwN4xkRIpC9G0gElxvn1AAhFnuMfNr/uEirgSL7AQfgc5z0SaPEv6kw== X-Google-Smtp-Source: AGHT+IES2BRzq+SJBB9vsXH2Px5vIKOPmwAkXvXg7uZzRrhobELBJXAMVq6dHYYRR7apbHPZFlH1 X-Received: by 2002:a05:620a:1791:b0:788:cf7:63ad with SMTP id ay17-20020a05620a179100b007880cf763admr379428qkb.78.1710415230943; Thu, 14 Mar 2024 04:20:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710415230; cv=pass; d=google.com; s=arc-20160816; b=MfwyO0yTWzjDm2CEI8HwFAk8RVv0bPVPthwTNpW7z3TPtkh3ou9IWLdRzDQDum7XVM NnzGz9ETq+bMGwPDRosxOZL7MdfwCc05fPdIYSnWEJwQgmIHR6c4Ao6N+4LR66+kcHXT oJxZwJDsRDryfwbNHhc7uGZQdAMDa9lr9UpWqpiBXihhsWUsxr2P0bJoqK/ufa7rtgFW YaM1jJasSGIlTYBH2tRweQjNPmB8TIaKSfmir/nP1MZLU9nFgsmRHaIWxKSTX1Fn7AYE 7ynTpYo05PYoH5CweZMYDN+8Wv+Ulu1iDUiN9tvomxBBNvhjP3iICxaWnqpWu7Gb4L6S fY+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=4WYNg8qW0HZjLQNjCTgfY1qObHaIT1GjHYu3yNoMihA=; fh=MiJISaSMwHg/Zqqh2/l/OHKAjGroPtylhpTU5YosA9g=; b=QnMdZdWBmEE8VRg9/b2OIEiLk8pvb/VnnZ+3uD7hW8K9VGlkfjHSkdbZFA5fBaQv6K s24dMYzaoNNITdN/iWkBNzmbLu710sDS/wcDEERCH94jGVD4xxARGcSlC5tm1/UQmV5M TgjiWZuCRuL2Jpqq65gWoLCPSPq10Vjj2wX2FHQkk/5aZ3mQTk9IVgFnz31Thw5QlAxE HIbWOW4rrSqxyO0e/mQXxX9KtmXVhb9cb5wZzjH/B61R3/iBkkvs9frrPfWIzLXve5Pl i8AmPEsJMzaUmIYz5aAWzvClkJhhEGLJdkHz+CU1AJzzfQ37dfNVEzOcDyitzZCXlI+t 0jcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-103166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103166-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m26-20020a05620a221a00b0078822dfd5afsi1325639qkh.312.2024.03.14.04.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 04:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-103166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103166-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A99B31C2203C for ; Thu, 14 Mar 2024 11:20:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 063806EB60; Thu, 14 Mar 2024 11:20:25 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0E4F96E610 for ; Thu, 14 Mar 2024 11:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710415224; cv=none; b=jrbQNVbp2ka2m0bOuR55vrJuUHeqsKBe3R9k0+mnqDQcfHZcaLjmG9UYiOtP/nwDPfqC36stuvNj5CTtI/UM4U+fs46O2V3XEJdAEJPTKMPYf3+tr3sOn5a9Q6+pi4CAIohOc/VcvAYqixFetNmiuX4rRrNPN9o1MyJ0cymn6Xs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710415224; c=relaxed/simple; bh=l2HLYYn4UeEUpgV+L5wQ37S45Vthf/ftyRXt+AAR1fA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bTS33x7NGdQ7eQ808XQXYfJk7AFl0iQE9EVJyx3MPYXAw/hYBQ5p5TkILbAFyBKbeiDI4ml5lNAQP9Od6le1mi7Ci8h0CowQehni3HiPmTz8l7gyzlbYtF+x3UrQV1Th9PbtrLD/Y11/3gCV5Zi5B0HUcyIQCo8WY5f+5+e7etI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rkj89-0004J1-22; Thu, 14 Mar 2024 12:20:13 +0100 Received: from [2a0a:edc0:0:b01:1d::7b] (helo=bjornoya.blackshift.org) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rkj87-006Ihj-Ay; Thu, 14 Mar 2024 12:20:11 +0100 Received: from pengutronix.de (unknown [172.20.34.65]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id EE8582A50C4; Thu, 14 Mar 2024 11:20:10 +0000 (UTC) Date: Thu, 14 Mar 2024 12:20:10 +0100 From: Marc Kleine-Budde To: Francesco Valla Cc: Oliver Hartkopp , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , fabio@redaril.me, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] Documentation: networking: document CAN ISO-TP Message-ID: <20240314-nurture-apricot-d4707bc77a00-mkl@pengutronix.de> References: <20240313223445.87170-1-valla.francesco@gmail.com> <20240313223445.87170-2-valla.francesco@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="23lpoqgne2axyrjj" Content-Disposition: inline In-Reply-To: <20240313223445.87170-2-valla.francesco@gmail.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --23lpoqgne2axyrjj Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Francesco, thanks for your contribution! I've some remarks to make it a valid rst file. On 13.03.2024 23:34:31, Francesco Valla wrote: > Document basic concepts, APIs and behaviour of the CAN ISO-TP (ISO > 15765-2) stack. >=20 > Signed-off-by: Francesco Valla > --- > Documentation/networking/index.rst | 1 + > Documentation/networking/isotp.rst | 347 +++++++++++++++++++++++++++++ > 2 files changed, 348 insertions(+) > create mode 100644 Documentation/networking/isotp.rst >=20 > diff --git a/Documentation/networking/index.rst b/Documentation/networkin= g/index.rst > index 473d72c36d61..ba22acfae389 100644 > --- a/Documentation/networking/index.rst > +++ b/Documentation/networking/index.rst > @@ -19,6 +19,7 @@ Contents: > caif/index > ethtool-netlink > ieee802154 > + isotp > j1939 > kapi > msg_zerocopy > diff --git a/Documentation/networking/isotp.rst b/Documentation/networkin= g/isotp.rst > new file mode 100644 > index 000000000000..d0c49fd1f5c9 > --- /dev/null > +++ b/Documentation/networking/isotp.rst > @@ -0,0 +1,347 @@ > +.. SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +ISO-TP (ISO 15765-2) Transport Protocol > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Please make the "=3D" as long as the text it encloses. > + > +Overview > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Same here [...] > +Reception stmin > +~~~~~~~~~~~~~~~ > + > +The reception minimum separaton time (stmin) can be forced using the > +``CAN_ISOTP_RX_STMIN`` optname and providing an stmin value in microseco= nds as > +a 32bit unsigned integer; received Consecutive Frames (CF) which timesta= mps > +differ less than this value will be ignored: > + > +.. code-block:: C > + > + uint32_t stmin; > + ret =3D setsockopt(s, SOL_CAN_ISOTP, CAN_ISOTP_RX_STMIN, &stmin, siz= eof(stmin)); > + > +Multi-frame transport support > +-------------------------- same here regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung N=C3=BCrnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | --23lpoqgne2axyrjj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEUEC6huC2BN0pvD5fKDiiPnotvG8FAmXy3WcACgkQKDiiPnot vG8lzQgAjaKShUuD1SFxYlmma7i0p2rGshpvscLbncWKuBmBQN65xPJAYZ7JOFzC szKLUoekrIZmvAu519OYEq9uEqAwPg2SLtgjferHxwSLs3h+ovhyvlrXkYVDXuor vwXpM362eJOIGf8b/LkqkMtrTPmwvZ2QLewJbyf8MUVpCYlYjfkrywZS701hvdok RetPkO0jKVV5x9+5KJ4F3APspGgZ/rXikZhV2XBMxTshg0OeS1o/+iiZIF1YspYB xCgS1UmVtx/8nrJeAIwWd3DFOffbccWDM87hj4+egf2uIuBFe/91CxGsGavgpzBB +qKs9Fw+bAslSu+U0wZ7a/QQUpEUmA== =K/bN -----END PGP SIGNATURE----- --23lpoqgne2axyrjj--