public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [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

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