search for: 1b68253

Displaying 3 results from an estimated 3 matches for "1b68253".

2017 Sep 01
2
[PATCH net] vhost_net: correctly check tx avail during rx busy polling
...1372460 ("vhost_net: basic polling support") Signed-off-by: Jason Wang <jasowang at redhat.com> --- - The patch is needed for -stable --- drivers/vhost/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 06d0448..1b68253 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -634,7 +634,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk) preempt_enable(); - if (vhost_enable_notify(&net->dev, vq)) + if (!vhost_vq_avail_empty(&net->dev, vq)) vhost_poll_...
2017 Sep 01
2
[PATCH net] vhost_net: correctly check tx avail during rx busy polling
...1372460 ("vhost_net: basic polling support") Signed-off-by: Jason Wang <jasowang at redhat.com> --- - The patch is needed for -stable --- drivers/vhost/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 06d0448..1b68253 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -634,7 +634,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk) preempt_enable(); - if (vhost_enable_notify(&net->dev, vq)) + if (!vhost_vq_avail_empty(&net->dev, vq)) vhost_poll_...
2017 Sep 01
0
[PATCH net] vhost_net: correctly check tx avail during rx busy polling
...rt") > Signed-off-by: Jason Wang <jasowang at redhat.com> > --- > - The patch is needed for -stable > --- > drivers/vhost/net.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index 06d0448..1b68253 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -634,7 +634,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, struct sock *sk) In fact why does it poll the ring at all? I thought this function's job is to poll the socket, isn't it? > >...