search for: vring_split_desc_f_indirect

Displaying 11 results from an estimated 11 matches for "vring_split_desc_f_indirect".

2018 Dec 07
7
[RFC 0/3] virtio_ring: define flags as shifts consistently
This is a follow up of the discussion in this thread: https://patchwork.ozlabs.org/patch/1001015/#2042353 Tiwei Bie (3): virtio_ring: define flags as shifts consistently virtio_ring: add VIRTIO_RING_NO_LEGACY virtio_ring: use new vring flags drivers/virtio/virtio_ring.c | 100 ++++++++++++++++++------------- include/uapi/linux/virtio_ring.h | 61 +++++++++++++------ 2 files changed,
2018 Dec 07
7
[RFC 0/3] virtio_ring: define flags as shifts consistently
This is a follow up of the discussion in this thread: https://patchwork.ozlabs.org/patch/1001015/#2042353 Tiwei Bie (3): virtio_ring: define flags as shifts consistently virtio_ring: add VIRTIO_RING_NO_LEGACY virtio_ring: use new vring flags drivers/virtio/virtio_ring.c | 100 ++++++++++++++++++------------- include/uapi/linux/virtio_ring.h | 61 +++++++++++++------ 2 files changed,
2018 Dec 07
0
[RFC 3/3] virtio_ring: use new vring flags
...6c9f 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -371,17 +371,17 @@ static void vring_unmap_one_split(const struct vring_virtqueue *vq, flags = virtio16_to_cpu(vq->vq.vdev, desc->flags); - if (flags & VRING_DESC_F_INDIRECT) { + if (flags & BIT(VRING_SPLIT_DESC_F_INDIRECT)) { dma_unmap_single(vring_dma_dev(vq), virtio64_to_cpu(vq->vq.vdev, desc->addr), virtio32_to_cpu(vq->vq.vdev, desc->len), - (flags & VRING_DESC_F_WRITE) ? + (flags & BIT(VRING_SPLIT_DESC_F_WRITE)) ? DMA_FROM_DEVICE : DMA_TO_DEVICE); } else { dm...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...something like this: #define VRING_COMM_DESC_F_NEXT 0 #define VRING_COMM_DESC_F_WRITE 1 #define VRING_COMM_DESC_F_INDIRECT 2 #define VRING_SPLIT_USED_F_NO_NOTIFY 0 #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 or #define VRING_SPLIT_DESC_F_NEXT 0 #define VRING_SPLIT_DESC_F_WRITE 1 #define VRING_SPLIT_DESC_F_INDIRECT 2 #define VRING_SPLIT_USED_F_NO_NOTIFY 0 #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 #define VRING_PACKED_DESC_F_NEXT 0 #define VRING_PACKED_DESC_F_WRITE 1 #define VRING_PACKED_DESC_F_INDIRECT 2 > > > > > > > > > > > > > > > > > > &...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...something like this: #define VRING_COMM_DESC_F_NEXT 0 #define VRING_COMM_DESC_F_WRITE 1 #define VRING_COMM_DESC_F_INDIRECT 2 #define VRING_SPLIT_USED_F_NO_NOTIFY 0 #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 or #define VRING_SPLIT_DESC_F_NEXT 0 #define VRING_SPLIT_DESC_F_WRITE 1 #define VRING_SPLIT_DESC_F_INDIRECT 2 #define VRING_SPLIT_USED_F_NO_NOTIFY 0 #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 #define VRING_PACKED_DESC_F_NEXT 0 #define VRING_PACKED_DESC_F_WRITE 1 #define VRING_PACKED_DESC_F_INDIRECT 2 > > > > > > > > > > > > > > > > > > &...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...t; #define VRING_COMM_DESC_F_INDIRECT 2 > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > or > > > > #define VRING_SPLIT_DESC_F_NEXT 0 > > #define VRING_SPLIT_DESC_F_WRITE 1 > > #define VRING_SPLIT_DESC_F_INDIRECT 2 > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > #define VRING_PACKED_DESC_F_NEXT 0 > > #define VRING_PACKED_DESC_F_WRITE 1 > > #define VRING_PACKED_DESC_F_INDIRECT 2 > > As we aren't...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...t; #define VRING_COMM_DESC_F_INDIRECT 2 > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > or > > > > #define VRING_SPLIT_DESC_F_NEXT 0 > > #define VRING_SPLIT_DESC_F_WRITE 1 > > #define VRING_SPLIT_DESC_F_INDIRECT 2 > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > #define VRING_PACKED_DESC_F_NEXT 0 > > #define VRING_PACKED_DESC_F_WRITE 1 > > #define VRING_PACKED_DESC_F_INDIRECT 2 > > As we aren't...
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...0 > #define VRING_COMM_DESC_F_WRITE 1 > #define VRING_COMM_DESC_F_INDIRECT 2 > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > or > > #define VRING_SPLIT_DESC_F_NEXT 0 > #define VRING_SPLIT_DESC_F_WRITE 1 > #define VRING_SPLIT_DESC_F_INDIRECT 2 > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > #define VRING_PACKED_DESC_F_NEXT 0 > #define VRING_PACKED_DESC_F_WRITE 1 > #define VRING_PACKED_DESC_F_INDIRECT 2 As we aren't sharing code I think I prefer the second form...
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...> > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > > > or > > > > > > #define VRING_SPLIT_DESC_F_NEXT 0 > > > #define VRING_SPLIT_DESC_F_WRITE 1 > > > #define VRING_SPLIT_DESC_F_INDIRECT 2 > > > > > > #define VRING_SPLIT_USED_F_NO_NOTIFY 0 > > > #define VRING_SPLIT_AVAIL_F_NO_INTERRUPT 0 > > > > > > #define VRING_PACKED_DESC_F_NEXT 0 > > > #define VRING_PACKED_DESC_F_WRITE 1 > > > #define VRING_PACKED_DESC_F_INDIR...
2018 Nov 30
4
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
On 2018/11/21 ??6:03, Tiwei Bie wrote: > Add types and macros for packed ring. > > Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> > --- > include/uapi/linux/virtio_config.h | 3 +++ > include/uapi/linux/virtio_ring.h | 52 ++++++++++++++++++++++++++++++++++++++ > 2 files changed, 55 insertions(+) > > diff --git a/include/uapi/linux/virtio_config.h
2018 Nov 30
4
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
On 2018/11/21 ??6:03, Tiwei Bie wrote: > Add types and macros for packed ring. > > Signed-off-by: Tiwei Bie <tiwei.bie at intel.com> > --- > include/uapi/linux/virtio_config.h | 3 +++ > include/uapi/linux/virtio_ring.h | 52 ++++++++++++++++++++++++++++++++++++++ > 2 files changed, 55 insertions(+) > > diff --git a/include/uapi/linux/virtio_config.h