]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/cmd_net: split ioctl code out of io_uring_cmd_sock()
authorAsbjørn Sloth Tønnesen <ast@fiberby.net>
Mon, 16 Feb 2026 16:03:53 +0000 (16:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 13:21:53 +0000 (07:21 -0600)
commitbdb489adca295a14750c7343ddb035830fc033b1
tree2c78828788e23616d0f4a585fb016719360bdf99
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
io_uring/cmd_net: split ioctl code out of io_uring_cmd_sock()

io_uring_cmd_sock() originally supported two ioctl-based cmd_op
operations. Over time, additional operations were added with tail calls
to their helpers.

This approach resulted in the new operations sharing an ioctl check
with the original operations.

io_uring_cmd_sock() now supports 6 operations, so let's move the
implementation of the original two into their own helper, reducing
io_uring_cmd_sock() to a simple dispatcher.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cmd_net.c