diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2024-04-19 13:08:39 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-23 01:21:35 +0200 |
commit | 7ab4f16f9e2440e797eae88812f800458e5879d2 (patch) | |
tree | 8b597223b2b0cb2fe3fe713813e56c92e80e2daa /drivers/net/tap.c | |
parent | Linux 6.9-rc4 (diff) | |
download | linux-7ab4f16f9e2440e797eae88812f800458e5879d2.tar.xz linux-7ab4f16f9e2440e797eae88812f800458e5879d2.zip |
net: extend ubuf_info callback to ops structure
We'll need to associate additional callbacks with ubuf_info, introduce
a structure holding ubuf_info callbacks. Apart from a more smarter
io_uring notification management introduced in next patches, it can be
used to generalise msg_zerocopy_put_abort() and also store
->sg_from_iter, which is currently passed in struct msghdr.
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/all/a62015541de49c0e2a8a0377a1d5d0a5aeb07016.1713369317.git.asml.silence@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/tap.c')
-rw-r--r-- | drivers/net/tap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tap.c b/drivers/net/tap.c index 9f0495e8df4d..bfdd3875fe86 100644 --- a/drivers/net/tap.c +++ b/drivers/net/tap.c @@ -754,7 +754,7 @@ static ssize_t tap_get_user(struct tap_queue *q, void *msg_control, skb_zcopy_init(skb, msg_control); } else if (msg_control) { struct ubuf_info *uarg = msg_control; - uarg->callback(NULL, uarg, false); + uarg->ops->complete(NULL, uarg, false); } dev_queue_xmit(skb); |