summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2026-07-22 14:42:16 +0100
committerJens Axboe <axboe@kernel.dk>2026-07-22 09:48:42 -0600
commit201e30810223a40275f17c5e6ee410fa857b6b44 (patch)
tree2860c286e95adc2fd9239a124e005b78661b6f90
parentaf78c0020480aba3132fb9fa4db0fd1fb949feaa (diff)
io_uring/zcrx: rename ZCRX_NOTIF_NO_BUFFERS
ZCRX_NOTIF_NO_BUFFERS tells when page pool fails to allocate memory from zcrx. "No buffers" could be more confusing, rename it to ZCRX_NOTIF_ALLOC_FAIL. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://patch.msgid.link/29bd4fc069bc89691868beba0627ffbe570c2722.1784726895.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--include/uapi/linux/io_uring/zcrx.h2
-rw-r--r--io_uring/zcrx.c2
-rw-r--r--io_uring/zcrx.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/uapi/linux/io_uring/zcrx.h b/include/uapi/linux/io_uring/zcrx.h
index 99e56ec26ead..abb898d59a4b 100644
--- a/include/uapi/linux/io_uring/zcrx.h
+++ b/include/uapi/linux/io_uring/zcrx.h
@@ -69,7 +69,7 @@ enum zcrx_features {
};
enum zcrx_notification_type {
- ZCRX_NOTIF_NO_BUFFERS,
+ ZCRX_NOTIF_ALLOC_FAIL,
ZCRX_NOTIF_COPY,
__ZCRX_NOTIF_TYPE_LAST,
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c
index 53dcb5110719..872d5794d3de 100644
--- a/io_uring/zcrx.c
+++ b/io_uring/zcrx.c
@@ -1244,7 +1244,7 @@ static netmem_ref io_pp_zc_alloc_netmems(struct page_pool *pp, gfp_t gfp)
allocated = io_zcrx_refill_slow(pp, ifq, netmems, to_alloc);
if (!allocated) {
- zcrx_send_notif(ifq, ZCRX_NOTIF_NO_BUFFERS);
+ zcrx_send_notif(ifq, ZCRX_NOTIF_ALLOC_FAIL);
return 0;
}
out_return:
diff --git a/io_uring/zcrx.h b/io_uring/zcrx.h
index a8d301b6191f..d16206eb9e30 100644
--- a/io_uring/zcrx.h
+++ b/io_uring/zcrx.h
@@ -11,7 +11,7 @@
#define ZCRX_SUPPORTED_REG_FLAGS (ZCRX_REG_IMPORT | ZCRX_REG_NODEV)
#define ZCRX_FEATURES (ZCRX_FEATURE_RX_PAGE_SIZE |\
ZCRX_FEATURE_NOTIFICATION)
-#define ZCRX_NOTIF_TYPE_MASK ((1U << ZCRX_NOTIF_NO_BUFFERS) | (1U << ZCRX_NOTIF_COPY))
+#define ZCRX_NOTIF_TYPE_MASK ((1U << ZCRX_NOTIF_ALLOC_FAIL) | (1U << ZCRX_NOTIF_COPY))
struct io_zcrx_mem {
unsigned long size;