]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/bpf_filter: move filter size and populate helper into struct
authorJens Axboe <axboe@kernel.dk>
Tue, 10 Feb 2026 16:29:59 +0000 (09:29 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Feb 2026 22:56:25 +0000 (15:56 -0700)
commitd21c362182aff7b4d994e35ceb04b6ed2da141d9
treee7cc989d0be40fc5f65fcf5edb2fc41b6273d34a
parent22dbb0987bd1e0ec3b1e4ad20756a98f99aa4a08
io_uring/bpf_filter: move filter size and populate helper into struct

Rather than open-code this logic in io_uring_populate_bpf_ctx() with
a switch, move it to the issue side definitions. Outside of making this
easier to extend in the future, it's also a prep patch for using the
pdu size for a given opcode filter elsewhere.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/bpf_filter.c
io_uring/opdef.c
io_uring/opdef.h