search for: vring_split_avail_f_no_interrupt

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

2018 Dec 07
0
[RFC 3/3] virtio_ring: use new vring flags
...e *_vq, /* If we expect an interrupt for the next entry, tell host * by writing event index and flush out the write before * the read in the next get_buf call. */ - if (!(vq->split.avail_flags_shadow & VRING_AVAIL_F_NO_INTERRUPT)) + if (!(vq->split.avail_flags_shadow & + BIT(VRING_SPLIT_AVAIL_F_NO_INTERRUPT))) virtio_store_mb(vq->weak_barriers, &vring_used_event(&vq->split.vring), cpu_to_virtio16(_vq->vdev, vq->last_used_idx)); @@ -730,8 +737,10 @@ static void virtqueue_disable_cb_split(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - if (!(vq-...
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 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...HIFT, ergo > we need to change the above 5 to have names which are with _F_ and > have the bit number. How about 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_DE...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...HIFT, ergo > we need to change the above 5 to have names which are with _F_ and > have the bit number. How about 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_DE...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...ve the bit number. > > > > How about 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 > &g...
2018 Nov 30
2
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...ve the bit number. > > > > How about 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 > &g...
2018 Dec 07
1
[RFC 2/3] virtio_ring: add VIRTIO_RING_NO_LEGACY
...#include <linux/virtio_types.h> > > +#ifndef VIRTIO_RING_NO_LEGACY > /* > * Notice: unlike other _F_ flags, below flags are defined as shifted > * values instead of shifts for compatibility. > @@ -51,6 +52,7 @@ > #define VRING_USED_F_NO_NOTIFY 1 > /* Same as VRING_SPLIT_AVAIL_F_NO_INTERRUPT. */ > #define VRING_AVAIL_F_NO_INTERRUPT 1 > +#endif /* VIRTIO_RING_NO_LEGACY */ > > /* Mark a buffer as continuing via the next field in split ring. */ > #define VRING_SPLIT_DESC_F_NEXT 0 > @@ -151,6 +153,7 @@ struct vring { > struct vring_used *used; > }; > &...
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...ave names which are with _F_ and > > have the bit number. > > How about 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 >...
2018 Nov 30
0
[PATCH net-next v3 01/13] virtio: add packed ring types and macros
...> How about 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 > > > #defi...
2018 Dec 07
0
[RFC 2/3] virtio_ring: add VIRTIO_RING_NO_LEGACY
...+37,7 @@ #include <linux/types.h> #include <linux/virtio_types.h> +#ifndef VIRTIO_RING_NO_LEGACY /* * Notice: unlike other _F_ flags, below flags are defined as shifted * values instead of shifts for compatibility. @@ -51,6 +52,7 @@ #define VRING_USED_F_NO_NOTIFY 1 /* Same as VRING_SPLIT_AVAIL_F_NO_INTERRUPT. */ #define VRING_AVAIL_F_NO_INTERRUPT 1 +#endif /* VIRTIO_RING_NO_LEGACY */ /* Mark a buffer as continuing via the next field in split ring. */ #define VRING_SPLIT_DESC_F_NEXT 0 @@ -151,6 +153,7 @@ struct vring { struct vring_used *used; }; +#ifndef VIRTIO_RING_NO_LEGACY /* Alignment r...
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