Re: [Bpf] [PATCH bpf-next] The original document has some inconsistency.
David Vernet <void@manifault.com> Thu, 18 January 2024 22:54 UTC
Return-Path: <dcvernet@gmail.com>
X-Original-To: bpf@ietfa.amsl.com
Delivered-To: bpf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 12DC9C14F6B5 for <bpf@ietfa.amsl.com>; Thu, 18 Jan 2024 14:54:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.41
X-Spam-Level:
X-Spam-Status: No, score=-1.41 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mL9FRQyWCV7O for <bpf@ietfa.amsl.com>; Thu, 18 Jan 2024 14:54:32 -0800 (PST)
Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A89BCC14F5E4 for <bpf@ietf.org>; Thu, 18 Jan 2024 14:54:32 -0800 (PST)
Received: by mail-qk1-f171.google.com with SMTP id af79cd13be357-783182d4a09so14347385a.2 for <bpf@ietf.org>; Thu, 18 Jan 2024 14:54:32 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705618471; x=1706223271; h=user-agent: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=pHOoNlrfjEvGZsS1hMw+vPiGNp386bKPhKGHFHXOF6k=; b=br3tpIuHyGXamT/b7mSrR4Eypg1wEkZkBRPM4U79SrG7uBJKO1qlOco+hrpgS7ZDKo kDbwd9In768ysJ1upf1g+mLbxIJfwXAQ5vTK/EUwq4ie17UIoa+SH4qf9LmK30ih08SL gXxAI9CgTyj1a7oUVtmgwqll5gfBGhwvfGM7BF8Q+El/l7cIGm9tz23OzipiNlMFSRU6 X8Pb/31rE87nAnhm+DqkKaWKGGUg/isjDSFSKKLtDa1ohRwyHRsxsH9VTmn5gbQwl7gD 6MLGz5Vh8hl+JoG0MEFIELsHs56swadzZ8h8sbeyXU5sBZp7731zjXcnZ++gKXMQfrjK Ewew==
X-Gm-Message-State: AOJu0YysqGqyQdk5JZrwuBwUHW/ASB+gOmr/gFyzVJpQwsWVN9UaEsKT AJsrf3pd7006eb0odDNdRV27WCTrmP+QMTtdBr9k0fXX7g1QJaQ2
X-Google-Smtp-Source: AGHT+IEruA3k1UG2uHE367N8PlTpdFpfnc7U0KV1WRQHYT8CVTz0fCOvTQ/d5V1RmVscYsjkVdJziw==
X-Received: by 2002:a05:620a:d5c:b0:783:88d0:85f3 with SMTP id o28-20020a05620a0d5c00b0078388d085f3mr17979qkl.154.1705618471579; Thu, 18 Jan 2024 14:54:31 -0800 (PST)
Received: from maniforge (c-24-1-27-177.hsd1.il.comcast.net. [24.1.27.177]) by smtp.gmail.com with ESMTPSA id vv25-20020a05620a563900b007832895cf8csm5622191qkn.38.2024.01.18.14.54.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 14:54:30 -0800 (PST)
Date: Thu, 18 Jan 2024 16:54:29 -0600
From: David Vernet <void@manifault.com>
To: dthaler1968@googlemail.com
Cc: 'Aoyang Fang' <aoyangfang@link.cuhk.edu.cn>, bpf@vger.kernel.org, bpf@ietf.org
Message-ID: <20240118225429.GA875006@maniforge>
References: <20240105031450.57681-2-aoyangfang@link.cuhk.edu.cn> <20240109173227.GB79024@maniforge> <016101da4326$8dbad1a0$a93074e0$@gmail.com> <20240109191037.GC79024@maniforge> <025c01da4594$4544e3f0$cfceabd0$@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="xcQc5tYfzAYvc18J"
Content-Disposition: inline
In-Reply-To: <025c01da4594$4544e3f0$cfceabd0$@gmail.com>
User-Agent: Mutt/2.2.12 (2023-09-09)
Archived-At: <https://mailarchive.ietf.org/arch/msg/bpf/OFPaFXYodAvrNgnBebw_fifMiYU>
Subject: Re: [Bpf] [PATCH bpf-next] The original document has some inconsistency.
X-BeenThere: bpf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussion of BPF/eBPF standardization efforts within the IETF <bpf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bpf>, <mailto:bpf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bpf/>
List-Post: <mailto:bpf@ietf.org>
List-Help: <mailto:bpf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bpf>, <mailto:bpf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 18 Jan 2024 22:54:35 -0000
On Fri, Jan 12, 2024 at 12:16:47PM -0800, dthaler1968@googlemail.com wrote: [...] > > > > This is already pretty different from how we're visualizing and > enumerating > > the instructions in our document. > > The packet layout diagram style above is indeed the most common > (and I'd be fine if the WG wants to switch to that style), but there are > RFCs that use other styles. See for example RFC 9000 which uses a custom > style, but has a full explanation defining it. I guess my question would be why did RFC 9000 deviate, but I don't think that's super relevant or important. As I mention below, I'm fine with applying this change if you think it makes the doc more canonical. Regarding question of the layout diagram style, at this point I don't think we need to spend time switching the style, though I do think the other style is more legible than what we have now. If someone wants to do the work then I'd say go for it, but otherwise I'd prefer we don't block on it given how close we are to WG last call. > > Consider: > > > > 1. They're not even using numerical values to define some fields, such > > as with Type of Service. They're specifying the exact values of > > individual bits within the field (e.g. with Precedence). > > > > 2. They're using decimal instead of hexadecimal. > > Sometimes values are given in decimal, sometimes in hexadecimal > (e.g., see Table 1 of RFC 9000), sometimes in binary (e.g., Precedence as > you noted). Decimal is most common but hex or binary are ok if it's clear > that's what's used. Ack as well > > Unless I'm missing something, it seems like the deviation in terms of > using > > 0x40 vs. 0x4 is specific to how they present examples in the appendices > > (though even the appendices are using base 10). > > For a 4-bit field, I've only seen cases where the value is 0x4, 4, or 0100, > which fit into a 4-bit field. I've not seen a case of 0x40. Fair enough, though as mentioned above, I'm having trouble understanding where deviations are acceptable or not. I trust your judgement though. > > So while I certainly agree that we should follow conventions, I think I'd > prefer > > that we either follow them completely, or not sacrifice readability by > following > > them in specific ways which don't necessarily match the chosen format for > > our document. > > If you're suggesting we use packet layout format like you quoted, that'd > be fine with me. See above -- if someone wants to do the work then I'd say go for it, but I don't think it should be a blocker. [...] > > I agree with you that we should stay consistent, but it seems like we're > being > > selective about it. Could you help me understand why the deviations we > have > > already wouldn't have required a separate section? > > It's fair to argue that having a section defining the convention, like RFC > 9000 did, > would be recommended if one deviates from standard conventions. > But it'd be shorter (and perhaps less work) to use a more standard > convention. Agreed. At this point I'd say let's do whatever is kosher and will require less time and effort; unless someone wants to spend time writing up fancy ASCII diagrams. Thanks, David
- Re: [Bpf] [PATCH bpf-next] The original document … dthaler1968
- Re: [Bpf] [PATCH bpf-next] The original document … David Vernet
- Re: [Bpf] [PATCH bpf-next] The original document … David Vernet
- Re: [Bpf] [PATCH bpf-next] The original document … dthaler1968
- Re: [Bpf] [PATCH bpf-next] The original document … Erik Kline
- Re: [Bpf] [PATCH bpf-next] The original document … David Vernet