diff options
author | Toke Høiland-Jørgensen <toke@redhat.com> | 2023-01-20 01:15:27 +0300 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-01-23 20:38:11 +0300 |
commit | fd7c211d6875013f81acc09868effe199b5d2c0c (patch) | |
tree | c01192bef62941811490dc9ae00325f5b0c683ae /kernel/bpf/bpf_task_storage.c | |
parent | 3d76a4d3d4e591af3e789698affaad88a5a8e8ab (diff) | |
download | linux-fd7c211d6875013f81acc09868effe199b5d2c0c.tar.xz |
bpf: Support consuming XDP HW metadata from fext programs
Instead of rejecting the attaching of PROG_TYPE_EXT programs to XDP
programs that consume HW metadata, implement support for propagating the
offload information. The extension program doesn't need to set a flag or
ifindex, these will just be propagated from the target by the verifier.
We need to create a separate offload object for the extension program,
though, since it can be reattached to a different program later (which
means we can't just inherit the offload information from the target).
An additional check is added on attach that the new target is compatible
with the offload information in the extension prog.
Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/r/20230119221536.3349901-9-sdf@google.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'kernel/bpf/bpf_task_storage.c')
0 files changed, 0 insertions, 0 deletions