bpf, docs: Correct source of offset for program-local call
authorWill Hawkins <hawkinsw@obs.cr>
Sat, 26 Aug 2023 05:32:54 +0000 (01:32 -0400)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Aug 2023 07:49:53 +0000 (09:49 +0200)
commit2d71a90f7e0fa3cd348602a36f6eb1237ab7cebb
tree6be4f228ed36d9cecdc7981ed606d4b6c7fa7cb9
parent5439cfa7fe612e7d02d5a1234feda3fa6e483ba7
bpf, docs: Correct source of offset for program-local call

The offset to use when calculating the target of a program-local call is
in the instruction's imm field, not its offset field.

Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/bpf/20230826053258.1860167-1-hawkinsw@obs.cr
Documentation/bpf/standardization/instruction-set.rst