search for: vring_init_split

Displaying 13 results from an estimated 13 matches for "vring_init_split".

2018 Mar 16
3
[PATCH RFC 2/2] virtio_ring: support packed ring
...+ if (packed) >>>>>>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>>>>>> + else >>>>>>> + vring_init(&vring.vring_split, num, queue, vring_align); >>>>>> Let's rename vring_init to vring_init_split() like other helpers? >>>>> The vring_init() is a public API in include/uapi/linux/virtio_ring.h. >>>>> I don't think we can rename it. >>>> I see, then this need more thoughts to unify the API. >>> My thought is to keep the old API as is, and...
2018 Mar 16
3
[PATCH RFC 2/2] virtio_ring: support packed ring
...+ if (packed) >>>>>>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>>>>>> + else >>>>>>> + vring_init(&vring.vring_split, num, queue, vring_align); >>>>>> Let's rename vring_init to vring_init_split() like other helpers? >>>>> The vring_init() is a public API in include/uapi/linux/virtio_ring.h. >>>>> I don't think we can rename it. >>>> I see, then this need more thoughts to unify the API. >>> My thought is to keep the old API as is, and...
2018 Mar 16
0
[PATCH RFC 2/2] virtio_ring: support packed ring
...> > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > > > > > > > > + else > > > > > > > > + vring_init(&vring.vring_split, num, queue, vring_align); > > > > > > > Let's rename vring_init to vring_init_split() like other helpers? > > > > > > The vring_init() is a public API in include/uapi/linux/virtio_ring.h. > > > > > > I don't think we can rename it. > > > > > I see, then this need more thoughts to unify the API. > > > > My thought i...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
..., packed); >>>>> + if (packed) >>>>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>>>> + else >>>>> + vring_init(&vring.vring_split, num, queue, vring_align); >>>> Let's rename vring_init to vring_init_split() like other helpers? >>> The vring_init() is a public API in include/uapi/linux/virtio_ring.h. >>> I don't think we can rename it. >> I see, then this need more thoughts to unify the API. > My thought is to keep the old API as is, and introduce > new types and hel...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
..., packed); >>>>> + if (packed) >>>>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>>>> + else >>>>> + vring_init(&vring.vring_split, num, queue, vring_align); >>>> Let's rename vring_init to vring_init_split() like other helpers? >>> The vring_init() is a public API in include/uapi/linux/virtio_ring.h. >>> I don't think we can rename it. >> I see, then this need more thoughts to unify the API. > My thought is to keep the old API as is, and introduce > new types and hel...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
...in_bytes = __vring_size(num, vring_align, packed); >>> + if (packed) >>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>> + else >>> + vring_init(&vring.vring_split, num, queue, vring_align); >> Let's rename vring_init to vring_init_split() like other helpers? > The vring_init() is a public API in include/uapi/linux/virtio_ring.h. > I don't think we can rename it. I see, then this need more thoughts to unify the API. > >>> - vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, >>> -...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
...in_bytes = __vring_size(num, vring_align, packed); >>> + if (packed) >>> + vring_packed_init(&vring.vring_packed, num, queue, vring_align); >>> + else >>> + vring_init(&vring.vring_split, num, queue, vring_align); >> Let's rename vring_init to vring_init_split() like other helpers? > The vring_init() is a public API in include/uapi/linux/virtio_ring.h. > I don't think we can rename it. I see, then this need more thoughts to unify the API. > >>> - vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, >>> -...
2018 Mar 16
0
[PATCH RFC 2/2] virtio_ring: support packed ring
..._align, packed); > > > > + if (packed) > > > > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > > > > + else > > > > + vring_init(&vring.vring_split, num, queue, vring_align); > > > Let's rename vring_init to vring_init_split() like other helpers? > > The vring_init() is a public API in include/uapi/linux/virtio_ring.h. > > I don't think we can rename it. > > I see, then this need more thoughts to unify the API. My thought is to keep the old API as is, and introduce new types and helpers for pack...
2018 Mar 16
0
[PATCH RFC 2/2] virtio_ring: support packed ring
...f (packed) > > > > > > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > > > > > > + else > > > > > > + vring_init(&vring.vring_split, num, queue, vring_align); > > > > > Let's rename vring_init to vring_init_split() like other helpers? > > > > The vring_init() is a public API in include/uapi/linux/virtio_ring.h. > > > > I don't think we can rename it. > > > I see, then this need more thoughts to unify the API. > > My thought is to keep the old API as is, and introdu...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
...queue, vring_align); > + queue_size_in_bytes = __vring_size(num, vring_align, packed); > + if (packed) > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > + else > + vring_init(&vring.vring_split, num, queue, vring_align); Let's rename vring_init to vring_init_split() like other helpers? > > - vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, > - notify, callback, name); > + vq = __vring_new_virtqueue(index, vring, packed, vdev, weak_barriers, > + context, notify, callback, name); > if (!vq) { >...
2018 Mar 16
2
[PATCH RFC 2/2] virtio_ring: support packed ring
...queue, vring_align); > + queue_size_in_bytes = __vring_size(num, vring_align, packed); > + if (packed) > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > + else > + vring_init(&vring.vring_split, num, queue, vring_align); Let's rename vring_init to vring_init_split() like other helpers? > > - vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, > - notify, callback, name); > + vq = __vring_new_virtqueue(index, vring, packed, vdev, weak_barriers, > + context, notify, callback, name); > if (!vq) { >...
2018 Mar 16
0
[PATCH RFC 2/2] virtio_ring: support packed ring
...ueue_size_in_bytes = __vring_size(num, vring_align, packed); > > + if (packed) > > + vring_packed_init(&vring.vring_packed, num, queue, vring_align); > > + else > > + vring_init(&vring.vring_split, num, queue, vring_align); > > Let's rename vring_init to vring_init_split() like other helpers? The vring_init() is a public API in include/uapi/linux/virtio_ring.h. I don't think we can rename it. > > > - vq = __vring_new_virtqueue(index, vring, vdev, weak_barriers, context, > > - notify, callback, name); > > + vq = __vring_new_virtqueu...
2018 Feb 23
5
[PATCH RFC 0/2] Packed ring for virtio
Hello everyone, This RFC implements a subset of packed ring which is described at https://github.com/oasis-tcs/virtio-docs/blob/master/virtio-v1.1-packed-wd08.pdf The code was tested with DPDK vhost (testpmd/vhost-PMD) implemented by Jens at http://dpdk.org/ml/archives/dev/2018-January/089417.html Minor changes are needed for the vhost code, e.g. to kick the guest. It's not a complete