From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C9643A6F14 for ; Mon, 23 Mar 2026 12:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774269853; cv=none; b=nG0lI98YGMGDWwiEFuKRWChMpOw6RweQXL8M8k9FKWyh0JlFLmk2g8ysXqkofvkxbhpMyCT4j5t3jX5cD5HdCweqKxZk4i6qk92R6kuj2V5N+FHiI5faXK4wAWoRlbhXdelAGaKwkSYMXto5etuNaZ8XwTt9ypV+C6DKSK+A4Y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774269853; c=relaxed/simple; bh=dhn/QuxYD6uUbk1LBMab09YQzOVfQq5TFz8bfn5rEqU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TgiAgZEj7j3xh91ScSiLhS9nIgn0u+MucSHOaxD/z5CpcOWpVXhTQwD64WHhZOD410feWmjz//84bd2HFZ6O+B9JDGH6iZyy7HWE3WRVGb/3ZiqWbAJlOy1JKnEQXuCDD9Ed55xWjVVCU7nhqDC66op+InNGUa1bYxhufnWbhGA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KVzpviZJ; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KVzpviZJ" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-43b7c844b20so459565f8f.3 for ; Mon, 23 Mar 2026 05:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774269850; x=1774874650; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GG2Lr9uDtrcGMnHU+Auqm9HgflOqtMU5LxKYhILDbiQ=; b=KVzpviZJP+TJPcdhO5fFGklbkjnJhgSIKKbP99+ezYuTtS/b29lSFxVM4caH4iQbJf UONo/pZZr+/hOShTaPD9AC9vCVfP73dax3qFtFp+4+Fq7T8O+4kzIR+WcnxHdo4mrWa/ w8Ap1HyjLbZJMNUNLz+Ro4dqf8Ua3cqP0yb1Q/WsoVNe3ng5JOy3rfoQvjHidZl8ZK4L N1I1W5D3nRFdmHcCJnHxdIxgfTWJhwHVl/60v5c1atEjThYw/NQ0W3hiiyMMkt7K53f6 MOv0Y6mm44fqUDqtUWmiCkxzYJ+DUd2/asg7LRqk5wGH2U3Eh8O48odb0elAc/5P5rrT Foyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774269850; x=1774874650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GG2Lr9uDtrcGMnHU+Auqm9HgflOqtMU5LxKYhILDbiQ=; b=QQ5wg8VjItqxmHEKA+gjOTIyNktCt11nEOgCPBc5u9yrENVHpSbpzGCZpYjYxch7vX Lmw184Dw7jgEp5ITaaofTmYhkoWc9se4F1iAzsFkZ1nwybxdbYza9wefDCrpZmgosln+ wn0I8ipkVN2L65VrGFZqqDBemd6kPQHKmf5Wq9mYtmq7YI/9k7bz8Krn8ubKBk9JFubj J09YeGsExr1BTcHERmN5Paw9SwJUBd0IarBFqeyYNmVIZSbMPkmpk269zalHNquAs2Bb 55r9XNRWZlxbAiXtoQAF3m5f4ZRLjbgnQ3U33H8NRDVJ8jxRhpwliDe9NgtKZ3i2gfVG TjDg== X-Gm-Message-State: AOJu0Yx74/s8IvzFOzqyP5Z7reb31vNqy21Ls1Kf58YyxS9XVDM97E1N qp476nkPCF94aMhpwwR3ml27pUPh1vCusz+O4PQLxkKXYxSCDXgG6pF4CqMhHg== X-Gm-Gg: ATEYQzyZokUBWm4oXBRJWCItdY2Fm5tSd7X2AF7ZtnY2R59o/E16tsmQEGb9RghhxLr 8xLUuZUd/W9EKA7vIAryDgv7NOyHgbp1v5tJqYrRJC6dw+sy0fCDRrQ0UQRo5K93FHoidma4ftU EpN90gWEaKF90Nn77HwDi6NpJ4XTwyRWTpb2xGtGS/bXRODh8FszpQJHdcGUAaR+TogZQU3LBSe MOrmbRKA4Nic5ziArPq8QmLEKF7g/H0DJaa6nM36NDQZIiC+s1plzJrfW7w7GKsZHmhyXd6/dei 7zACC6FvIBUSbWJkzBrx9WSYqH/pntbLQrq3HK4GbwC/w45TyNM7l6k/3oXol2Zs/NAhGYgxTsw OzUolVEkilC+9tIsgRSKINBtzR3GbnKhImLAn3P3TdI3AdrA3/zYmDC+T24sW4DBSyTqAbDdSYn xYmL/lyy2KOgKUvVv9HxjT/cBRyYA0g2BpQ1eNoK0lmFoWPQ/+TyaUBa7HiHBgh6TCKune5BQXw mne6zT/IA== X-Received: by 2002:a05:6000:230b:b0:43b:4aba:8f52 with SMTP id ffacd0b85a97d-43b64262db0mr18244829f8f.32.1774269850084; Mon, 23 Mar 2026 05:44:10 -0700 (PDT) Received: from 127.com ([2620:10d:c092:600::1:6969]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b6425eeb4sm25520861f8f.0.2026.03.23.05.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 05:44:09 -0700 (PDT) From: Pavel Begunkov To: io-uring@vger.kernel.org Cc: asml.silence@gmail.com, axboe@kernel.dk, netdev@vger.kernel.org Subject: [PATCH io_uring-7.1 06/16] io_uring/zcrx: use better name for RQ region Date: Mon, 23 Mar 2026 12:43:55 +0000 Message-ID: X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Rename "region" to "rq_region" to highlight that it's a refill queue region. Signed-off-by: Pavel Begunkov --- io_uring/zcrx.c | 8 ++++---- io_uring/zcrx.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index d772e1609c4b..f10df7750740 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -384,11 +384,11 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx, mmap_offset = IORING_MAP_OFF_ZCRX_REGION; mmap_offset += id << IORING_OFF_PBUF_SHIFT; - ret = io_create_region(ctx, &ifq->region, rd, mmap_offset); + ret = io_create_region(ctx, &ifq->rq_region, rd, mmap_offset); if (ret < 0) return ret; - ptr = io_region_get_ptr(&ifq->region); + ptr = io_region_get_ptr(&ifq->rq_region); ifq->rq_ring = (struct io_uring *)ptr; ifq->rqes = (struct io_uring_zcrx_rqe *)(ptr + off); @@ -397,7 +397,7 @@ static int io_allocate_rbuf_ring(struct io_ring_ctx *ctx, static void io_free_rbuf_ring(struct io_zcrx_ifq *ifq) { - io_free_region(ifq->user, &ifq->region); + io_free_region(ifq->user, &ifq->rq_region); ifq->rq_ring = NULL; ifq->rqes = NULL; } @@ -645,7 +645,7 @@ struct io_mapped_region *io_zcrx_get_region(struct io_ring_ctx *ctx, lockdep_assert_held(&ctx->mmap_lock); - return ifq ? &ifq->region : NULL; + return ifq ? &ifq->rq_region : NULL; } static int zcrx_box_release(struct inode *inode, struct file *file) diff --git a/io_uring/zcrx.h b/io_uring/zcrx.h index f395656c3160..3b2681a1fafd 100644 --- a/io_uring/zcrx.h +++ b/io_uring/zcrx.h @@ -66,7 +66,7 @@ struct io_zcrx_ifq { * net stack. */ struct mutex pp_lock; - struct io_mapped_region region; + struct io_mapped_region rq_region; }; #if defined(CONFIG_IO_URING_ZCRX) -- 2.53.0