]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netmem: add niov->type attribute to distinguish different net_iov types
authorMina Almasry <almasrymina@google.com>
Thu, 8 May 2025 00:48:21 +0000 (00:48 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 13 May 2025 09:12:48 +0000 (11:12 +0200)
commit03e96b8c11d140fb4ead0b30c2d6e1a294b501ef
treed37c129b0423e0e6987e9d98c84c8abb99f8b1a2
parente39d14a760c039af0653e3df967e7525413924a0
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>
include/net/netmem.h
io_uring/zcrx.c
net/core/devmem.c