* [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
@ 2023-07-26 9:25 Jose E. Marchesi
2023-07-26 13:28 ` Dave Thaler
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jose E. Marchesi @ 2023-07-26 9:25 UTC (permalink / raw)
To: bpf
This patch fixes the documentation of the BPF_NEG instruction to
denote that it does not use the source register operand.
Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
---
Documentation/bpf/standardization/instruction-set.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst
index 751e657973f0..6ef5534b410a 100644
--- a/Documentation/bpf/standardization/instruction-set.rst
+++ b/Documentation/bpf/standardization/instruction-set.rst
@@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
BPF_AND 0x50 dst &= src
BPF_LSH 0x60 dst <<= (src & mask)
BPF_RSH 0x70 dst >>= (src & mask)
-BPF_NEG 0x80 dst = -src
+BPF_NEG 0x80 dst = -dst
BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
BPF_XOR 0xa0 dst ^= src
BPF_MOV 0xb0 dst = src
--
2.30.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* RE: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 9:25 [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst Jose E. Marchesi
@ 2023-07-26 13:28 ` Dave Thaler
2023-07-26 13:28 ` [Bpf] " Dave Thaler
2023-07-26 13:30 ` Jose E. Marchesi
2023-07-27 4:44 ` Yonghong Song
2023-07-28 0:40 ` patchwork-bot+netdevbpf
2 siblings, 2 replies; 7+ messages in thread
From: Dave Thaler @ 2023-07-26 13:28 UTC (permalink / raw)
To: Jose E. Marchesi, bpf@vger.kernel.org; +Cc: bpf@ietf.org
> -----Original Message-----
> From: Jose E. Marchesi <jose.marchesi@oracle.com>
> Sent: Wednesday, July 26, 2023 2:26 AM
> To: bpf@vger.kernel.org
> Subject: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
>
> This patch fixes the documentation of the BPF_NEG instruction to denote
> that it does not use the source register operand.
>
> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
> ---
> Documentation/bpf/standardization/instruction-set.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/bpf/standardization/instruction-set.rst
> b/Documentation/bpf/standardization/instruction-set.rst
> index 751e657973f0..6ef5534b410a 100644
> --- a/Documentation/bpf/standardization/instruction-set.rst
> +++ b/Documentation/bpf/standardization/instruction-set.rst
> @@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
> BPF_AND 0x50 dst &= src
> BPF_LSH 0x60 dst <<= (src & mask)
> BPF_RSH 0x70 dst >>= (src & mask)
> -BPF_NEG 0x80 dst = -src
> +BPF_NEG 0x80 dst = -dst
> BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
> BPF_XOR 0xa0 dst ^= src
> BPF_MOV 0xb0 dst = src
> --
> 2.30.2
Acked-by: Dave Thaler <dthaler@microsoft.com>
Also, all changes to files in the standardization directory should also be cc'ed
to bpf@ietf.org, which I am doing on this email.
Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bpf] [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 13:28 ` Dave Thaler
@ 2023-07-26 13:28 ` Dave Thaler
2023-07-26 13:30 ` Jose E. Marchesi
1 sibling, 0 replies; 7+ messages in thread
From: Dave Thaler @ 2023-07-26 13:28 UTC (permalink / raw)
To: Jose E. Marchesi, bpf@vger.kernel.org; +Cc: bpf@ietf.org
> -----Original Message-----
> From: Jose E. Marchesi <jose.marchesi@oracle.com>
> Sent: Wednesday, July 26, 2023 2:26 AM
> To: bpf@vger.kernel.org
> Subject: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
>
> This patch fixes the documentation of the BPF_NEG instruction to denote
> that it does not use the source register operand.
>
> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
> ---
> Documentation/bpf/standardization/instruction-set.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/bpf/standardization/instruction-set.rst
> b/Documentation/bpf/standardization/instruction-set.rst
> index 751e657973f0..6ef5534b410a 100644
> --- a/Documentation/bpf/standardization/instruction-set.rst
> +++ b/Documentation/bpf/standardization/instruction-set.rst
> @@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
> BPF_AND 0x50 dst &= src
> BPF_LSH 0x60 dst <<= (src & mask)
> BPF_RSH 0x70 dst >>= (src & mask)
> -BPF_NEG 0x80 dst = -src
> +BPF_NEG 0x80 dst = -dst
> BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
> BPF_XOR 0xa0 dst ^= src
> BPF_MOV 0xb0 dst = src
> --
> 2.30.2
Acked-by: Dave Thaler <dthaler@microsoft.com>
Also, all changes to files in the standardization directory should also be cc'ed
to bpf@ietf.org, which I am doing on this email.
Dave
--
Bpf mailing list
Bpf@ietf.org
https://www.ietf.org/mailman/listinfo/bpf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bpf] [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 13:28 ` Dave Thaler
2023-07-26 13:28 ` [Bpf] " Dave Thaler
@ 2023-07-26 13:30 ` Jose E. Marchesi
2023-07-26 13:30 ` Jose E. Marchesi
1 sibling, 1 reply; 7+ messages in thread
From: Jose E. Marchesi @ 2023-07-26 13:30 UTC (permalink / raw)
To: Dave Thaler; +Cc: bpf@vger.kernel.org, bpf@ietf.org
>> -----Original Message-----
>> From: Jose E. Marchesi <jose.marchesi@oracle.com>
>> Sent: Wednesday, July 26, 2023 2:26 AM
>> To: bpf@vger.kernel.org
>> Subject: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
>>
>> This patch fixes the documentation of the BPF_NEG instruction to denote
>> that it does not use the source register operand.
>>
>> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
>> ---
>> Documentation/bpf/standardization/instruction-set.rst | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Documentation/bpf/standardization/instruction-set.rst
>> b/Documentation/bpf/standardization/instruction-set.rst
>> index 751e657973f0..6ef5534b410a 100644
>> --- a/Documentation/bpf/standardization/instruction-set.rst
>> +++ b/Documentation/bpf/standardization/instruction-set.rst
>> @@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
>> BPF_AND 0x50 dst &= src
>> BPF_LSH 0x60 dst <<= (src & mask)
>> BPF_RSH 0x70 dst >>= (src & mask)
>> -BPF_NEG 0x80 dst = -src
>> +BPF_NEG 0x80 dst = -dst
>> BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
>> BPF_XOR 0xa0 dst ^= src
>> BPF_MOV 0xb0 dst = src
>> --
>> 2.30.2
>
> Acked-by: Dave Thaler <dthaler@microsoft.com>
>
> Also, all changes to files in the standardization directory should also be cc'ed
> to bpf@ietf.org, which I am doing on this email.
Will do in future posts. Thanks for CCing.
> Dave
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Bpf] [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 13:30 ` Jose E. Marchesi
@ 2023-07-26 13:30 ` Jose E. Marchesi
0 siblings, 0 replies; 7+ messages in thread
From: Jose E. Marchesi @ 2023-07-26 13:30 UTC (permalink / raw)
To: Dave Thaler; +Cc: bpf@vger.kernel.org, bpf@ietf.org
>> -----Original Message-----
>> From: Jose E. Marchesi <jose.marchesi@oracle.com>
>> Sent: Wednesday, July 26, 2023 2:26 AM
>> To: bpf@vger.kernel.org
>> Subject: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
>>
>> This patch fixes the documentation of the BPF_NEG instruction to denote
>> that it does not use the source register operand.
>>
>> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
>> ---
>> Documentation/bpf/standardization/instruction-set.rst | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Documentation/bpf/standardization/instruction-set.rst
>> b/Documentation/bpf/standardization/instruction-set.rst
>> index 751e657973f0..6ef5534b410a 100644
>> --- a/Documentation/bpf/standardization/instruction-set.rst
>> +++ b/Documentation/bpf/standardization/instruction-set.rst
>> @@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
>> BPF_AND 0x50 dst &= src
>> BPF_LSH 0x60 dst <<= (src & mask)
>> BPF_RSH 0x70 dst >>= (src & mask)
>> -BPF_NEG 0x80 dst = -src
>> +BPF_NEG 0x80 dst = -dst
>> BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
>> BPF_XOR 0xa0 dst ^= src
>> BPF_MOV 0xb0 dst = src
>> --
>> 2.30.2
>
> Acked-by: Dave Thaler <dthaler@microsoft.com>
>
> Also, all changes to files in the standardization directory should also be cc'ed
> to bpf@ietf.org, which I am doing on this email.
Will do in future posts. Thanks for CCing.
> Dave
--
Bpf mailing list
Bpf@ietf.org
https://www.ietf.org/mailman/listinfo/bpf
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 9:25 [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst Jose E. Marchesi
2023-07-26 13:28 ` Dave Thaler
@ 2023-07-27 4:44 ` Yonghong Song
2023-07-28 0:40 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: Yonghong Song @ 2023-07-27 4:44 UTC (permalink / raw)
To: Jose E. Marchesi, bpf
On 7/26/23 2:25 AM, Jose E. Marchesi wrote:
> This patch fixes the documentation of the BPF_NEG instruction to
> denote that it does not use the source register operand.
>
> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
> ---
> Documentation/bpf/standardization/instruction-set.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/bpf/standardization/instruction-set.rst b/Documentation/bpf/standardization/instruction-set.rst
> index 751e657973f0..6ef5534b410a 100644
> --- a/Documentation/bpf/standardization/instruction-set.rst
> +++ b/Documentation/bpf/standardization/instruction-set.rst
> @@ -165,7 +165,7 @@ BPF_OR 0x40 dst \|= src
> BPF_AND 0x50 dst &= src
> BPF_LSH 0x60 dst <<= (src & mask)
> BPF_RSH 0x70 dst >>= (src & mask)
> -BPF_NEG 0x80 dst = -src
> +BPF_NEG 0x80 dst = -dst
> BPF_MOD 0x90 dst = (src != 0) ? (dst % src) : dst
> BPF_XOR 0xa0 dst ^= src
> BPF_MOV 0xb0 dst = src
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst
2023-07-26 9:25 [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst Jose E. Marchesi
2023-07-26 13:28 ` Dave Thaler
2023-07-27 4:44 ` Yonghong Song
@ 2023-07-28 0:40 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-07-28 0:40 UTC (permalink / raw)
To: Jose E. Marchesi; +Cc: bpf
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Wed, 26 Jul 2023 11:25:43 +0200 you wrote:
> This patch fixes the documentation of the BPF_NEG instruction to
> denote that it does not use the source register operand.
>
> Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
> ---
> Documentation/bpf/standardization/instruction-set.rst | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- bpf, docs: fix BPF_NEG entry in instruction-set.rst
https://git.kernel.org/bpf/bpf-next/c/10d78a66a5f2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-28 0:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 9:25 [PATCH] bpf, docs: fix BPF_NEG entry in instruction-set.rst Jose E. Marchesi
2023-07-26 13:28 ` Dave Thaler
2023-07-26 13:28 ` [Bpf] " Dave Thaler
2023-07-26 13:30 ` Jose E. Marchesi
2023-07-26 13:30 ` Jose E. Marchesi
2023-07-27 4:44 ` Yonghong Song
2023-07-28 0:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox