search for: rxsock

Displaying 3 results from an estimated 3 matches for "rxsock".

Did you mean: rx_sock
2014 Aug 15
2
[PATCH net-next] vhost_net: stop rx net polling when possible
..._poll = &net->poll[VHOST_NET_VQ_RX]; struct vhost_virtqueue *vq = &nvq->vq; unsigned out, in, s; int head; @@ -348,15 +350,18 @@ static void handle_tx(struct vhost_net *net) size_t len, total_len = 0; int err; size_t hdr_size; - struct socket *sock; + struct socket *sock, *rxsock; struct vhost_net_ubuf_ref *uninitialized_var(ubufs); - bool zcopy, zcopy_used; + bool zcopy, zcopy_used, poll = false; mutex_lock(&vq->mutex); + mutex_lock(&rx_vq->mutex); sock = vq->private_data; + rxsock = rx_vq->private_data; if (!sock) goto out; + vhost_poll_...
2014 Aug 15
2
[PATCH net-next] vhost_net: stop rx net polling when possible
..._poll = &net->poll[VHOST_NET_VQ_RX]; struct vhost_virtqueue *vq = &nvq->vq; unsigned out, in, s; int head; @@ -348,15 +350,18 @@ static void handle_tx(struct vhost_net *net) size_t len, total_len = 0; int err; size_t hdr_size; - struct socket *sock; + struct socket *sock, *rxsock; struct vhost_net_ubuf_ref *uninitialized_var(ubufs); - bool zcopy, zcopy_used; + bool zcopy, zcopy_used, poll = false; mutex_lock(&vq->mutex); + mutex_lock(&rx_vq->mutex); sock = vq->private_data; + rxsock = rx_vq->private_data; if (!sock) goto out; + vhost_poll_...
2014 Aug 17
0
[PATCH net-next] vhost_net: stop rx net polling when possible
...gt; struct vhost_virtqueue *vq = &nvq->vq; > unsigned out, in, s; > int head; > @@ -348,15 +350,18 @@ static void handle_tx(struct vhost_net *net) > size_t len, total_len = 0; > int err; > size_t hdr_size; > - struct socket *sock; > + struct socket *sock, *rxsock; > struct vhost_net_ubuf_ref *uninitialized_var(ubufs); > - bool zcopy, zcopy_used; > + bool zcopy, zcopy_used, poll = false; > > mutex_lock(&vq->mutex); > + mutex_lock(&rx_vq->mutex); > sock = vq->private_data; > + rxsock = rx_vq->private_data; &...