search for: ad69f35d1dc0a

Displaying 5 results from an estimated 5 matches for "ad69f35d1dc0a".

2017 Mar 30
1
[PATCH net-next 8/8] vhost_net: use lockless peeking for skb array during busy polling
...> + return !__skb_array_empty(rvq->rx_array); > > > + > > > if (sock->ops->peek_len) > > > return sock->ops->peek_len(sock); > > I don't see which patch adds __skb_array_empty. > > This is not something new, it was introduced by ad69f35d1dc0a ("skb_array: > array based FIFO for skbs"). > > Thanks Same comment about a compiler barrier applies then. > > > > > @@ -579,7 +582,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, > > > endtime = busy_clock() + vq->busyloop_tim...
2017 Mar 30
1
[PATCH net-next 8/8] vhost_net: use lockless peeking for skb array during busy polling
...> + return !__skb_array_empty(rvq->rx_array); > > > + > > > if (sock->ops->peek_len) > > > return sock->ops->peek_len(sock); > > I don't see which patch adds __skb_array_empty. > > This is not something new, it was introduced by ad69f35d1dc0a ("skb_array: > array based FIFO for skbs"). > > Thanks Same comment about a compiler barrier applies then. > > > > > @@ -579,7 +582,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, > > > endtime = busy_clock() + vq->busyloop_tim...
2017 Mar 29
2
[PATCH net-next 8/8] vhost_net: use lockless peeking for skb array during busy polling
On Tue, Mar 21, 2017 at 12:04:47PM +0800, Jason Wang wrote: > For the socket that exports its skb array, we can use lockless polling > to avoid touching spinlock during busy polling. > > Signed-off-by: Jason Wang <jasowang at redhat.com> > --- > drivers/vhost/net.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git
2017 Mar 29
2
[PATCH net-next 8/8] vhost_net: use lockless peeking for skb array during busy polling
On Tue, Mar 21, 2017 at 12:04:47PM +0800, Jason Wang wrote: > For the socket that exports its skb array, we can use lockless polling > to avoid touching spinlock during busy polling. > > Signed-off-by: Jason Wang <jasowang at redhat.com> > --- > drivers/vhost/net.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git
2017 Mar 30
0
[PATCH net-next 8/8] vhost_net: use lockless peeking for skb array during busy polling
...rvq->rx_array) >> + return !__skb_array_empty(rvq->rx_array); >> + >> if (sock->ops->peek_len) >> return sock->ops->peek_len(sock); >> > I don't see which patch adds __skb_array_empty. This is not something new, it was introduced by ad69f35d1dc0a ("skb_array: array based FIFO for skbs"). Thanks > >> @@ -579,7 +582,7 @@ static int vhost_net_rx_peek_head_len(struct vhost_net *net, >> endtime = busy_clock() + vq->busyloop_timeout; >> >> while (vhost_can_busy_poll(&net->dev, endtime)...