Re: [PATCH v11 09/40] virtio_ring: split: extract the logic of alloc state and extra

2022-07-03 Thread Xuan Zhuo
On Fri, 1 Jul 2022 16:55:05 +0800, Jason Wang wrote: > > 在 2022/6/29 14:56, Xuan Zhuo 写道: > > Separate the logic of creating desc_state, desc_extra, and subsequent > > patches will call it independently. > > > > Since only the structure vring is passed into __vring_new_virtqueue(), > > when creati

Re: [PATCH v11 09/40] virtio_ring: split: extract the logic of alloc state and extra

2022-07-01 Thread Jason Wang
在 2022/6/29 14:56, Xuan Zhuo 写道: Separate the logic of creating desc_state, desc_extra, and subsequent patches will call it independently. Since only the structure vring is passed into __vring_new_virtqueue(), when creating the function vring_alloc_state_extra_split(), we prefer to use vring_vi

[PATCH v11 09/40] virtio_ring: split: extract the logic of alloc state and extra

2022-06-28 Thread Xuan Zhuo
Separate the logic of creating desc_state, desc_extra, and subsequent patches will call it independently. Since only the structure vring is passed into __vring_new_virtqueue(), when creating the function vring_alloc_state_extra_split(), we prefer to use vring_virtqueue_split as a parameter, and it