search for: virtqueue_kick_prepare_packed

Displaying 20 results from an estimated 72 matches for "virtqueue_kick_prepare_packed".

2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...--git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index 0181e93897be..b1039c2985b9 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > { > struct vring_virtqueue *vq = to_vvq(_vq); > - u16 flags; > + u16 new, old, off_wrap, flags; > bool needs_kick; > u32 snapshot; > > @@ -995,7 +995,12 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > * supp...
2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...--git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index 0181e93897be..b1039c2985b9 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > { > struct vring_virtqueue *vq = to_vvq(_vq); > - u16 flags; > + u16 new, old, off_wrap, flags; > bool needs_kick; > u32 snapshot; > > @@ -995,7 +995,12 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > * supp...
2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...rtio/virtio_ring.c > > > index 0181e93897be..b1039c2985b9 100644 > > > --- a/drivers/virtio/virtio_ring.c > > > +++ b/drivers/virtio/virtio_ring.c > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > { > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > - u16 flags; > > > + u16 new, old, off_wrap, flags; > > > bool needs_kick; > > > u32 snapshot; > > > @@ -995,7 +995,12 @@ static bool virtqu...
2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...rtio/virtio_ring.c > > > index 0181e93897be..b1039c2985b9 100644 > > > --- a/drivers/virtio/virtio_ring.c > > > +++ b/drivers/virtio/virtio_ring.c > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > { > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > - u16 flags; > > > + u16 new, old, off_wrap, flags; > > > bool needs_kick; > > > u32 snapshot; > > > @@ -995,7 +995,12 @@ static bool virtqu...
2018 Sep 07
1
[PATCH net-next v2 4/5] virtio_ring: add event idx support in packed ring
...--git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index f317b485ba54..f79a1e17f7d1 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -1050,7 +1050,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > { > struct vring_virtqueue *vq = to_vvq(_vq); > - u16 flags; > + u16 new, old, off_wrap, flags, wrap_counter, event_idx; > bool needs_kick; > u32 snapshot; > > @@ -1059,9 +1059,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue...
2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...0181e93897be..b1039c2985b9 100644 > > > > > --- a/drivers/virtio/virtio_ring.c > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > { > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > - u16 flags; > > > > > + u16 new, old, off_wrap, flags; > > > > > bool needs_kick; > > > > > u32 snap...
2018 May 02
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...0181e93897be..b1039c2985b9 100644 > > > > > --- a/drivers/virtio/virtio_ring.c > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > { > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > - u16 flags; > > > > > + u16 new, old, off_wrap, flags; > > > > > bool needs_kick; > > > > > u32 snap...
2018 Apr 25
0
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...s(+), 4 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 0181e93897be..b1039c2985b9 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - u16 flags; + u16 new, old, off_wrap, flags; bool needs_kick; u32 snapshot; @@ -995,7 +995,12 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) * suppressions. */ virtio_mb(vq->weak_barriers); +...
2018 Jul 09
0
[PATCH net-next v1 4/5] virtio_ring: add event idx support in packed ring
...+), 8 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index cb833a82054b..4b3f9e1a3cab 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1050,7 +1050,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - u16 flags; + u16 new, old, off_wrap, flags, wrap_counter, event_idx; bool needs_kick; u32 snapshot; @@ -1059,9 +1059,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) * suppressions. */ virtio_mb...
2018 Jul 11
0
[PATCH net-next v2 4/5] virtio_ring: add event idx support in packed ring
...+), 8 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index f317b485ba54..f79a1e17f7d1 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1050,7 +1050,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - u16 flags; + u16 new, old, off_wrap, flags, wrap_counter, event_idx; bool needs_kick; u32 snapshot; @@ -1059,9 +1059,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) * suppressions. */ virtio_mb...
2018 Jun 05
0
[RFC v6 4/5] virtio_ring: add event idx support in packed ring
...+), 7 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 983ce5ffda1b..aefd7ac40928 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1048,7 +1048,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - u16 flags; + u16 new, old, off_wrap, flags, wrap_counter, event_idx; bool needs_kick; u32 snapshot; @@ -1057,9 +1057,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) * suppressions. */ virtio_mb...
2018 May 16
0
[RFC v4 4/5] virtio_ring: add event idx support in packed ring
...+), 5 deletions(-) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index c6c5deb0e3ae..de3839f3621a 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1006,7 +1006,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) { struct vring_virtqueue *vq = to_vvq(_vq); - u16 flags; + u16 new, old, off_wrap, flags, wrap_counter, event_idx; bool needs_kick; u32 snapshot; @@ -1015,9 +1015,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) * suppressions. */ virtio_mb...
2018 May 03
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...gt; > > > > > --- a/drivers/virtio/virtio_ring.c > > > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > > > { > > > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > > > - u16 flags; > > > > > > > + u16 new, old, off_wrap, flags; > > > > > > > boo...
2018 May 03
2
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...gt; > > > > > --- a/drivers/virtio/virtio_ring.c > > > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > > > { > > > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > > > - u16 flags; > > > > > > > + u16 new, old, off_wrap, flags; > > > > > > > boo...
2018 May 02
0
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...irtio_ring.c b/drivers/virtio/virtio_ring.c > > index 0181e93897be..b1039c2985b9 100644 > > --- a/drivers/virtio/virtio_ring.c > > +++ b/drivers/virtio/virtio_ring.c > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > { > > struct vring_virtqueue *vq = to_vvq(_vq); > > - u16 flags; > > + u16 new, old, off_wrap, flags; > > bool needs_kick; > > u32 snapshot; > > @@ -995,7 +995,12 @@ static bool virtqueue_kick_prepare_packed(struct virt...
2018 May 02
0
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...gt; > > index 0181e93897be..b1039c2985b9 100644 > > > > --- a/drivers/virtio/virtio_ring.c > > > > +++ b/drivers/virtio/virtio_ring.c > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > { > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > - u16 flags; > > > > + u16 new, old, off_wrap, flags; > > > > bool needs_kick; > > > > u32 snapshot; > > > > @@ -...
2018 May 03
0
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...2985b9 100644 > > > > > > --- a/drivers/virtio/virtio_ring.c > > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > > { > > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > > - u16 flags; > > > > > > + u16 new, old, off_wrap, flags; > > > > > > bool needs_kick; > > &...
2018 Jul 10
1
[PATCH net-next v1 4/5] virtio_ring: add event idx support in packed ring
On 2018?07?09? 15:22, Tiwei Bie wrote: > @@ -1059,9 +1059,19 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > * suppressions. */ > virtio_mb(vq->weak_barriers); > > + old = vq->next_avail_idx - vq->num_added; > + new = vq->next_avail_idx; > + vq->num_added = 0; > + > snapshot = *(u32 *)vq->vring_packed.device; I think we shoul...
2018 May 03
0
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...gt; > > --- a/drivers/virtio/virtio_ring.c > > > > > > > > +++ b/drivers/virtio/virtio_ring.c > > > > > > > > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > > > > > > > > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > > > > > > > > { > > > > > > > > struct vring_virtqueue *vq = to_vvq(_vq); > > > > > > > > - u16 flags; > > > > > > > > + u16 new, old, off_wrap, flags; > > > > &...
2018 May 16
1
[RFC v3 4/5] virtio_ring: add event idx support in packed ring
...--git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c > index 0181e93897be..b1039c2985b9 100644 > --- a/drivers/virtio/virtio_ring.c > +++ b/drivers/virtio/virtio_ring.c > @@ -986,7 +986,7 @@ static inline int virtqueue_add_packed(struct virtqueue *_vq, > static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > { > struct vring_virtqueue *vq = to_vvq(_vq); > - u16 flags; > + u16 new, old, off_wrap, flags; > bool needs_kick; > u32 snapshot; > > @@ -995,7 +995,12 @@ static bool virtqueue_kick_prepare_packed(struct virtqueue *_vq) > * supp...