summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorMina Almasry <almasrymina@google.com>2025-05-08 00:48:21 +0000
committerPaolo Abeni <pabeni@redhat.com>2025-05-13 11:12:48 +0200
commit03e96b8c11d140fb4ead0b30c2d6e1a294b501ef (patch)
treed37c129b0423e0e6987e9d98c84c8abb99f8b1a2 /io_uring
parente39d14a760c039af0653e3df967e7525413924a0 (diff)
downloadlinux-03e96b8c11d140fb4ead0b30c2d6e1a294b501ef.tar.gz
linux-03e96b8c11d140fb4ead0b30c2d6e1a294b501ef.tar.bz2
linux-03e96b8c11d140fb4ead0b30c2d6e1a294b501ef.zip
netmem: add niov->type attribute to distinguish different net_iov types
Later patches in the series adds TX net_iovs where there is no pp associated, so we can't rely on niov->pp->mp_ops to tell what is the type of the net_iov. Add a type enum to the net_iov which tells us the net_iov type. Signed-off-by: Mina Almasry <almasrymina@google.com> Link: https://patch.msgid.link/20250508004830.4100853-2-almasrymina@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'io_uring')
-rw-r--r--io_uring/zcrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index fe86606b9f30..a07ad38935c8 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -259,6 +259,7 @@ static int io_zcrx_create_area(struct io_zcrx_ifq *ifq,
niov->owner = &area->nia;
area->freelist[i] = i;
atomic_set(&area->user_refs[i], 0);
+ niov->type = NET_IOV_IOURING;
}
area->free_count = nr_iovs;