Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp111990lqp; Wed, 20 Mar 2024 15:35:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVPb5F8qIaeL/YDwMxsvnsgotLafnbN3bUauf/CnqUvia41XftfYMtvyARQOVcx36OsCmQgXlbSb3to4ga8fAUCsyUes78h+WT2SgZ+w== X-Google-Smtp-Source: AGHT+IG4BeG9PoZ00MDm+kJCAHKj4h8r6G0ceJOhNuFMZ72VyJrgCTp49ejqSEm/K2Ul8NOmuh+Z X-Received: by 2002:a25:abee:0:b0:dce:53c9:4d9f with SMTP id v101-20020a25abee000000b00dce53c94d9fmr17116426ybi.58.1710974121013; Wed, 20 Mar 2024 15:35:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710974121; cv=pass; d=google.com; s=arc-20160816; b=SOFYGAt512vyXJhryTysl7hmx9vV5m/bD2Rw8wc2gn30wbhLlLx06Cmocb1lZeWFMT BXmTm8DAYGR4Bfwktj2fnHii8N9tapK/ZHnHYuW+j4ISDGlefqkFEqJJ1bGbtYHfeX6q J5+bfEo3rKUqGtn9lx7+4WAP7Yner0sMxh+vFvsNZIPQmw+E5j8KUqZs0Cn2LwEJRwqm uB46m1xBR/rDmmsoopeq7RaSFsIz5OUbr9TT0eLx3N1JsW7e67HeKvFkOpvz03l7NbpE 6IHN36Ws0Lvgbh2IgV17ROFcEPXMvrbI7CmjIS+AoX9/m2w8iWRSDOVuVzcNLxzuV43M QAdw== 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:dkim-signature; bh=Y6uLkytCveodnbEWWcUmeLnZpizFS2D2Bpb03TRInaE=; fh=pjceKqpdPZy5/D9GZg2NVhU4LMTH4aNHN+Sox7wBMeY=; b=I8C8N2pdbW6xhFqy4jhFrZsGpEtlZyWuCX0E0YgkhvWKFP1kysyEDomAOjCX+OyS6p zGO3rRj/uGUlCcvGVQC+QLk3d6tgp3QucCMCdCDqLWM6TxldcwTau3KcyN1inWer7Cfk D7aereDXOsvUOdqWsZhz0e1G4Ka3LKj4/o97sqMfF3eQmkqznytuFypBaqnnC/04Xmcz oW9sfxnH6XxacklRG/0MrmvUsH2LOABfP1fNf+C0aNV/C5JeXssixa7mK/dUU3Y2vxL5 NvBzwg6hZqOC9UADBGwefikRauAve8AZ3qBRaKbUzbFyEKi4gg94HLWzAjftI5rjL+0X 4RXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TfC5lqXb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u13-20020ac858cd000000b0042f4de7ff23si3048294qta.274.2024.03.20.15.35.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:35:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TfC5lqXb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-109455-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109455-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 BC3751C21020 for ; Wed, 20 Mar 2024 22:35:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCFF338F99; Wed, 20 Mar 2024 22:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TfC5lqXb" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 232F312E52; Wed, 20 Mar 2024 22:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710974111; cv=none; b=mojlw9YvJiTXPlEAGUzN//kqvgs6uksa8q4HNk3hfEiV9LC/75igOkaQn5iu5mblbWjyFcS9d8DStg8UNdnWt8aU4E8QjhmL5BRsEbeXYvtNFQr5ftzs+Tsdg4tuYmry5KMc+mpqVvK0oO80hhKBy4a3DCbyyHWcodSPyFvLhDs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710974111; c=relaxed/simple; bh=/fsBbXw03619bUqlEGeLUsRsq6EMtANrA9Jhs5wFcvQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eXKUH4oZKCwia1AvbMUvVx1aiuyNuHiwncIUsLSYfAncrhlI+1Q3Q4czbtc9hPKt64CHwk4z8XSIVeV4LaCoERgrJjJrSf2GTAFU7BLzaOtETF8whGfJH6yykQtUSIR/ivMfdqNVx/MZfTJZxT6clDkbaVJxKjMuiBOYeNbNN+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TfC5lqXb; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-51381021af1so623929e87.0; Wed, 20 Mar 2024 15:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710974107; x=1711578907; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Y6uLkytCveodnbEWWcUmeLnZpizFS2D2Bpb03TRInaE=; b=TfC5lqXbdG75Cw1pRoBG1lxRBLQ4mCUhENBzaN593gWlGlAxL+kIGsij0FMpbRSo9M JbbNvj4OqXNoTGtd3VEwmFeUizojmVC4J0fzeOC5UYMlFR+SE/EJSn3B4p4WpDMTye2d HDh7xFinFC8rDlbJ2ALJO9P14tMsWEGxu7fVEQOb7Waw8LpxA0B7skQBxN5wF2sPd5S4 kgajKofxzxauzwppfc2QMD0B4WPlVQpK5v10iTigfoAU0fwHfjzlrJMp6XC0xxbKXS36 nsF/ppQgJRmJj2baKekZcnUePPN7F7v/qzcTK9UG/0sWutH6uI1YadaIBol1SnWrLFdC T1Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710974107; x=1711578907; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Y6uLkytCveodnbEWWcUmeLnZpizFS2D2Bpb03TRInaE=; b=sDZaLdST2SUTPqMZIbYtGyaajklRZ4PiWtRnAsTkgXbx3ZO39sggIoKTO6tZNk6E3F yajc5b+nWc4++IGfbbkG8G5qPM2SXwM5zlYOMkZ4RSZSg/quGI0QmWEbYYo758zCZ5gk 9xw7GGzXKgsOXbWZOcKYEY4E7jwtr/+83ef2ICUJFO1UHMUOG1jubtk0ZE+u7SEnYqhP 9/iuQKsGRsraKm3NSjHIgI3HQcNA0CIPTBiI5eTZ09DdbNwF1bpzfR29RZQHsSY6WeFl 40TT/uIewy7h2RIxw3bMHfHutKpRll12EDpYd8VI5iAO3VKodtlXgAo/qPK2uRkxNkQW LeSQ== X-Forwarded-Encrypted: i=1; AJvYcCVEYfcav2a7ZswySdgvSlYHcCJriFaSxZAHlAss1hgiUlJN5MD3kQjIHa6VQWuev0TemXGcFrU/sGca9W5dJnhFAoXa0VsCbKZXSSAKtuPdgi9rKwlvFJ9X44nldCHv9yCBDOAgG57qFXHfsVsUePl0uOzHlWdx9f91f1meCdMj X-Gm-Message-State: AOJu0YwtoKXbbv63cFASMgjw6UlXrXgqWaz6gm5FdSJFJWf02KTUmIZM GRXT0mhT5Mxm8lcOKeH8HaqOyURMHT1CCe0C6Bw79/6ndbkmkx6cExaHl/2qMetOdQ== X-Received: by 2002:ac2:46d6:0:b0:513:d372:20e5 with SMTP id p22-20020ac246d6000000b00513d37220e5mr290631lfo.16.1710974107030; Wed, 20 Mar 2024 15:35:07 -0700 (PDT) Received: from fedora (host-95-250-206-50.retail.telecomitalia.it. [95.250.206.50]) by smtp.gmail.com with ESMTPSA id an14-20020a17090656ce00b00a465b72a1f3sm5262273ejc.85.2024.03.20.15.35.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:35:06 -0700 (PDT) Date: Wed, 20 Mar 2024 23:35:05 +0100 From: Francesco Valla To: Simon Horman Cc: Oliver Hartkopp , Marc Kleine-Budde , "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: References: <20240313223445.87170-1-valla.francesco@gmail.com> <20240313223445.87170-2-valla.francesco@gmail.com> <20240319120625.GI185808@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240319120625.GI185808@kernel.org> Hi Simon, On Tue, Mar 19, 2024 at 12:06:25PM +0000, Simon Horman wrote: > On Wed, Mar 13, 2024 at 11:34:31PM +0100, Francesco Valla wrote: > > Document basic concepts, APIs and behaviour of the CAN ISO-TP (ISO > > 15765-2) stack. > > > > Signed-off-by: Francesco Valla > > Hi Francesco, > > As it looks like there will be a v2 of this patchset > please consider running checkpatch.pl --codespell > and addressing the warnings it reports. > Will do before v2, thanks for the suggestion. > ... > > > +Transport protocol and associated frame types > > +--------------------------------------------- > > + > > +When transmitting data using the ISO-TP protocol, the payload can either fit > > +inside one single CAN message or not, also considering the overhead the protocol > > +is generating and the optional extended addressing. In the first case, the data > > +is transmitted at once using a so-called Single Frame (SF). In the second case, > > +ISO-TP defines a multi-frame protocol, in which the sender asks (through a First > > +Frame - FF) to the receiver the maximum supported size of a macro data block > > +(``blocksize``) and the minimum time time between the single CAN messages > > +composing such block (``stmin``). Once these informations have been received, > > nit: Once this information has I never grasped the usage of "information" in English, which is not my first language. I'll make this correction here. > > > +the sender starts to send frames containing fragments of the data payload > > +(called Consecutive Frames - CF), stopping after every ``blocksize``-sized block > > +to wait confirmation from the receiver (which should then send a Flow Control > > +frame - FC - to inform the sender about its availability to receive more data). > > + > > ... Thanks for the review! Regards, Francesco