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);
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;
}
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)
* net stack.
*/
struct mutex pp_lock;
- struct io_mapped_region region;
+ struct io_mapped_region rq_region;
};
#if defined(CONFIG_IO_URING_ZCRX)