bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst
@ 2022-04-28  7:35 Tiezhu Yang
  2022-04-28  7:35 ` [PATCH bpf-next RESEND 1/2] bpf, docs: Remove duplicated word "instructions" Tiezhu Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tiezhu Yang @ 2022-04-28  7:35 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Jonathan Corbet
  Cc: netdev, bpf, linux-doc, linux-kernel

Forget to add [PATCH bpf-next] subject prefix,
sorry for that, just resend.

Tiezhu Yang (2):
  bpf, docs: Remove duplicated word "instructions"
  bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE

 Documentation/bpf/instruction-set.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH bpf-next RESEND 1/2] bpf, docs: Remove duplicated word "instructions"
  2022-04-28  7:35 [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst Tiezhu Yang
@ 2022-04-28  7:35 ` Tiezhu Yang
  2022-04-28  7:35 ` [PATCH bpf-next RESEND 2/2] bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE Tiezhu Yang
  2022-04-28  7:41 ` [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst weiyongjun (A)
  2 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2022-04-28  7:35 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Jonathan Corbet
  Cc: netdev, bpf, linux-doc, linux-kernel

The word "instructions" is duplicated, remove it.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 Documentation/bpf/instruction-set.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/bpf/instruction-set.rst b/Documentation/bpf/instruction-set.rst
index 5300837..30b019c 100644
--- a/Documentation/bpf/instruction-set.rst
+++ b/Documentation/bpf/instruction-set.rst
@@ -130,7 +130,7 @@ Byte swap instructions
 The byte swap instructions use an instruction class of ``BFP_ALU`` and a 4-bit
 code field of ``BPF_END``.
 
-The byte swap instructions instructions operate on the destination register
+The byte swap instructions operate on the destination register
 only and do not use a separate source register or immediate value.
 
 The 1-bit source operand field in the opcode is used to to select what byte
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH bpf-next RESEND 2/2] bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE
  2022-04-28  7:35 [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst Tiezhu Yang
  2022-04-28  7:35 ` [PATCH bpf-next RESEND 1/2] bpf, docs: Remove duplicated word "instructions" Tiezhu Yang
@ 2022-04-28  7:35 ` Tiezhu Yang
  2022-04-28  7:41 ` [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst weiyongjun (A)
  2 siblings, 0 replies; 4+ messages in thread
From: Tiezhu Yang @ 2022-04-28  7:35 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, Jonathan Corbet
  Cc: netdev, bpf, linux-doc, linux-kernel

According include/uapi/linux/bpf.h:

  #define BPF_FROM_LE	BPF_TO_LE
  #define BPF_FROM_BE	BPF_TO_BE

BPF_FROM_BE exists as alias for BPF_TO_BE instead of BPF_TO_LE.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
---
 Documentation/bpf/instruction-set.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/bpf/instruction-set.rst b/Documentation/bpf/instruction-set.rst
index 30b019c..00b0800 100644
--- a/Documentation/bpf/instruction-set.rst
+++ b/Documentation/bpf/instruction-set.rst
@@ -157,7 +157,7 @@ Examples:
   dst_reg = htobe64(dst_reg)
 
 ``BPF_FROM_LE`` and ``BPF_FROM_BE`` exist as aliases for ``BPF_TO_LE`` and
-``BPF_TO_LE`` respetively.
+``BPF_TO_BE`` respetively.
 
 
 Jump instructions
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst
  2022-04-28  7:35 [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst Tiezhu Yang
  2022-04-28  7:35 ` [PATCH bpf-next RESEND 1/2] bpf, docs: Remove duplicated word "instructions" Tiezhu Yang
  2022-04-28  7:35 ` [PATCH bpf-next RESEND 2/2] bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE Tiezhu Yang
@ 2022-04-28  7:41 ` weiyongjun (A)
  2 siblings, 0 replies; 4+ messages in thread
From: weiyongjun (A) @ 2022-04-28  7:41 UTC (permalink / raw)
  To: Tiezhu Yang, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Jonathan Corbet
  Cc: netdev, bpf, linux-doc, linux-kernel


在 2022/4/28 15:35, Tiezhu Yang 写道:
> Forget to add [PATCH bpf-next] subject prefix,
> sorry for that, just resend.
>
> Tiezhu Yang (2):
>    bpf, docs: Remove duplicated word "instructions"
>    bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE
>
>   Documentation/bpf/instruction-set.rst | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)


Looks good to me



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-28  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28  7:35 [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst Tiezhu Yang
2022-04-28  7:35 ` [PATCH bpf-next RESEND 1/2] bpf, docs: Remove duplicated word "instructions" Tiezhu Yang
2022-04-28  7:35 ` [PATCH bpf-next RESEND 2/2] bpf, docs: BPF_FROM_BE exists as alias for BPF_TO_BE Tiezhu Yang
2022-04-28  7:41 ` [PATCH bpf-next RESEND 0/2] bpf, docs: Fix typos in instruction-set.rst weiyongjun (A)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).