Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3090094pxf; Mon, 15 Mar 2021 00:40:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbpZ/pd/CXfRy2S7tGS7KUi5BJM0RUXX/fD0+uhmNMTc5nOanMwD7D1R4vpXA9L7QC+S2y X-Received: by 2002:a17:906:5902:: with SMTP id h2mr21914772ejq.416.1615794015419; Mon, 15 Mar 2021 00:40:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615794015; cv=none; d=google.com; s=arc-20160816; b=FDRhk7ZcrMDgHdmuYHm0nSv/MAVMNgBGz5JBaUWHrQA8GU+L/mf+M1z32+Z1ldlJKH i9JyjGJbrMrIfMJfW9THQxrsKPsIkDg5bb4qAusZqhVp87MN40og0oawcWFaZ2II5b+g up3y2LpN3s+uObpzlGLtkpYHit5JPr6jVUZO4IVF10cN97U3Wo1RwaYUmq6Bi5iRKuu/ F3jqXJHcncwzLQttlZ9hwJn4FW3Rqj+1TeVR8krqSOOvyColXJbTRygeCCccQyXzc4Lz K/lxF5bsBgZ9knKoIBqWCoZYwkdBp54cErdkaGRhkKpKaHJrugAGB07Xn2fKeOrNbT/l eYHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ax4LkkvAOwMEPnteXrba4uQXwZldVN8diq/ZNXdeEoI=; b=PcGMHpP5Th2jTE1jM8ty0qezyy7y6yJg2BATX+5IUPk8cvLNFc6utXPHgYQA05fM4h lX0H2chuQB5QzmPlFf2nW4AVYNi0PLwG6twb9TLIYwdEV24WYkDmaBK1/HBoj7hgiMYy JDfsfSCN5fUKEDZDDf6CLjzVN1JtG8fVsURIJ3+riq6OCuapzHfqRQrtIxQApTNum2qC lltxy9qEo+YN4r1xUdJrMfu3m77bAgPEz5WSfsOg+5RDY/ZL2Jl3tPctxSC8D4rm9tiL zX73R32stc6DRtFfPHSERcVKmimWLEbnJNtxPMB596pi2HF5GGqQadqPS2A4HKr6uX3A YTGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dO1mcP97; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si9864262edc.258.2021.03.15.00.39.53; Mon, 15 Mar 2021 00:40:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dO1mcP97; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbhCOHgR (ORCPT + 99 others); Mon, 15 Mar 2021 03:36:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:38232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbhCOHgN (ORCPT ); Mon, 15 Mar 2021 03:36:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2D7264DAF; Mon, 15 Mar 2021 07:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615793773; bh=D528rbfLh8zZTCX5u9fbw/DucSrt77tO+DqrXHDn2V0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dO1mcP97ftKFPgeb+DhHYDSMl3wP2m9IFi9wQaJY92FA8J6kLfRItewVib2a0LMLp RXl+EWsucIUkZAa0s/bkOPJ8WbTPadWsSSv1a7c8d8TZYGLvdWGu48N7BoN2XWKKu1 DUQTzr9zXRGs28SRw6Pi8AHbjpytILixMDEkgji8= Date: Mon, 15 Mar 2021 08:36:10 +0100 From: Greg Kroah-Hartman To: "Hongren Zheng (Zenithal)" Cc: Valentina Manea , Shuah Khan , Jonathan Corbet , linux-doc@vger.kernel.org, Alexandre Demers , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, usbip-devel@lists.sourceforge.net Subject: Re: [PATCH v2] docs: usbip: Fix major fields and descriptions in protocol Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 15, 2021 at 02:18:49PM +0800, Hongren Zheng (Zenithal) wrote: > The old document for usbip protocol is misleading and hard to read: > * Some fields in header are incorrect > * Explanation of some fields are unclear or even wrong > * Padding of header (namely all headers have the same length) is > not explicitly point out, which is crucial for stream protocol like > TCP > > These fixes are made through reading usbip kernel drivers and userland > codes. Also I have implemented one usbip server. > > Major changes: > * Document the correct field as described in the codebase. > * Document the padding in usbip headers. This is crucial for TCP > stream hence these padding should be explicitly point out. > In code these padding are implemented by a union of all headers. > * Fix two FIXME related to usbip unlink and Document the behavior > of unlink in different situation. > * Clarify some field with more accurate explanation, like those > fields associated with URB. Some constraints are extracted from > code. > * Delete specific transfer_flag doc in usbip as it should be > documented by the URB part. > * Add data captured from wire as example > > Also some changes suggested by a previous patch in > https://lore.kernel.org/linux-usb/20180128071514.9107-1-alexandre.f.demers@gmail.com/ > is adopted in this patch. > > Co-developed-by: Alexandre Demers > Signed-off-by: Hongren Zheng (Zenithal) > --- > Documentation/usb/usbip_protocol.rst | 290 +++++++++++++++------------ > 1 file changed, 159 insertions(+), 131 deletions(-) What changed from v1? Always list that here below the --- line. > > diff --git a/Documentation/usb/usbip_protocol.rst b/Documentation/usb/usbip_protocol.rst > index 988c832166cd..a15d9c1254e2 100644 > --- a/Documentation/usb/usbip_protocol.rst > +++ b/Documentation/usb/usbip_protocol.rst > @@ -5,8 +5,14 @@ USB/IP protocol > PRELIMINARY DRAFT, MAY CONTAIN MISTAKES! > 28 Jun 2011 > > +Update: Fix major fields in protocol > +14 Mar 2021 This does not belong here, the git changelog shows this information. The original date above can be removed as well if you want. And if the mistakes are all fixed now, that line can be dropped too :) thanks, greg k-h