BPF List
 help / color / mirror / Atom feed
From: David Vernet <void@manifault.com>
To: dthaler1968@googlemail.com
Cc: bpf@vger.kernel.org, bpf@ietf.org
Subject: Re: [Bpf] [PATCH bpf-next] bpf, docs: Use IETF format for field definitions in instruction-set.rst
Date: Fri, 1 Mar 2024 16:04:58 -0600	[thread overview]
Message-ID: <20240301220458.GC192865@maniforge> (raw)
In-Reply-To: <236501da6c23$30b03380$92109a80$@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1673 bytes --]

On Fri, Mar 01, 2024 at 01:55:34PM -0800, dthaler1968@googlemail.com wrote:
> David Vernet <void@manifault.com> wrote:
> [...] 
> > Very glad that we were able to do this before sending to WG last call.
> Thank
> > you, Dave. I left a couple of comments below but here's my AB:
> > 
> > Acked-by: David Vernet <void@manifault.com>
> [...]
> > > -``BPF_ADD | BPF_X | BPF_ALU`` means::
> > > +``{ADD, X, ALU}``, where 'code'=``ADD``, 'source'=``X``, and
> 'class'=``ALU``,
> > means::
> > 
> > For some reason ``ADD``, ``X`` and ``ALU`` aren't rendering correctly when
> > built with sphinx. It looks like we need to do this:
> [...] 
> > -``{ADD, X, ALU}``, where 'code'=``ADD``, 'source'=``X``, and
> 'class'=``ALU``,
> > means::
> > +``{ADD, X, ALU}``, where 'code' = ``ADD``, 'source' = ``X``, and 'class'
> =
> > ``ALU``, means::
> 
> Ack.  Do you want me to submit a v2 now with that change or hold off for a
> bit?  Keep in mind the deadline for submitting a draft before the meeting is
> end-of-day Monday.

I think we can hold off until other people review.

> 
> [...]
> > > -``BPF_XOR | BPF_K | BPF_ALU64`` means::
> > > +``{XOR, K, ALU64}`` means::
> > 
> > I do certainly personally prefer the notation that was there before, but
> if this
> > more closely matches IETF norms then LGTM.
> 
> The notation before assumed the values were full byte values so you could OR
> them together.  When they're not full byte values (and they're not in IETF
> convention), OR'ing makes no sense.

Yep

> The proposed {} notation matches the C struct initialization convention as a
> precedent.

Makes sense

Thanks,
David

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: David Vernet <void@manifault.com>
To: dthaler1968@googlemail.com
Cc: bpf@vger.kernel.org, bpf@ietf.org
Subject: Re: [Bpf] [PATCH bpf-next] bpf, docs: Use IETF format for field definitions in instruction-set.rst
Date: Fri, 1 Mar 2024 16:04:58 -0600	[thread overview]
Message-ID: <20240301220458.GC192865@maniforge> (raw)
Message-ID: <20240301220458.hLz4k23x4JmFolSfZz_e-LoDiknSSBfQlafu5kutx-s@z> (raw)
In-Reply-To: <236501da6c23$30b03380$92109a80$@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]

On Fri, Mar 01, 2024 at 01:55:34PM -0800, dthaler1968@googlemail.com wrote:
> David Vernet <void@manifault.com> wrote:
> [...] 
> > Very glad that we were able to do this before sending to WG last call.
> Thank
> > you, Dave. I left a couple of comments below but here's my AB:
> > 
> > Acked-by: David Vernet <void@manifault.com>
> [...]
> > > -``BPF_ADD | BPF_X | BPF_ALU`` means::
> > > +``{ADD, X, ALU}``, where 'code'=``ADD``, 'source'=``X``, and
> 'class'=``ALU``,
> > means::
> > 
> > For some reason ``ADD``, ``X`` and ``ALU`` aren't rendering correctly when
> > built with sphinx. It looks like we need to do this:
> [...] 
> > -``{ADD, X, ALU}``, where 'code'=``ADD``, 'source'=``X``, and
> 'class'=``ALU``,
> > means::
> > +``{ADD, X, ALU}``, where 'code' = ``ADD``, 'source' = ``X``, and 'class'
> =
> > ``ALU``, means::
> 
> Ack.  Do you want me to submit a v2 now with that change or hold off for a
> bit?  Keep in mind the deadline for submitting a draft before the meeting is
> end-of-day Monday.

I think we can hold off until other people review.

> 
> [...]
> > > -``BPF_XOR | BPF_K | BPF_ALU64`` means::
> > > +``{XOR, K, ALU64}`` means::
> > 
> > I do certainly personally prefer the notation that was there before, but
> if this
> > more closely matches IETF norms then LGTM.
> 
> The notation before assumed the values were full byte values so you could OR
> them together.  When they're not full byte values (and they're not in IETF
> convention), OR'ing makes no sense.

Yep

> The proposed {} notation matches the C struct initialization convention as a
> precedent.

Makes sense

Thanks,
David

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 76 bytes --]

-- 
Bpf mailing list
Bpf@ietf.org
https://www.ietf.org/mailman/listinfo/bpf

  parent reply	other threads:[~2024-03-01 22:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-01 19:20 [PATCH bpf-next] bpf, docs: Use IETF format for field definitions in instruction-set.rst Dave Thaler
2024-03-01 19:20 ` [Bpf] " Dave Thaler
2024-03-01 21:49 ` David Vernet
2024-03-01 21:49   ` David Vernet
2024-03-01 21:55   ` dthaler1968
2024-03-01 21:55     ` dthaler1968=40googlemail.com
2024-03-01 22:04     ` David Vernet [this message]
2024-03-01 22:04       ` David Vernet
2024-03-01 22:17       ` Alexei Starovoitov
2024-03-01 22:17         ` Alexei Starovoitov

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=20240301220458.GC192865@maniforge \
    --to=void@manifault.com \
    --cc=bpf@ietf.org \
    --cc=bpf@vger.kernel.org \
    --cc=dthaler1968@googlemail.com \
    /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