search for: bc08be7925eb

Displaying 6 results from an estimated 6 matches for "bc08be7925eb".

2019 Aug 14
0
[PATCH] virtio-net: lower min ring num_free for efficiency
...e value in the patch has been tested and does show better performance. Signed-off-by: jiangkidd <jiangkidd at hotmail.com> --- drivers/net/virtio_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0d4115c9e20b..bc08be7925eb 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1331,7 +1331,7 @@ static int virtnet_receive(struct receive_queue *rq, int budget, } } - if (rq->vq->num_free > virtqueue_get_vring_size(rq->vq) / 2) { + if (rq->vq->num_free > min((unsigned int)bud...
2019 Sep 02
0
[PATCH v3] virtio-net: lower min ring num_free for efficiency
...at redhat.com> Dave, could you merge this please? Either net or net-next at your discretion. > --- > drivers/net/virtio_net.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index 0d4115c9e20b..bc08be7925eb 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -1331,7 +1331,7 @@ static int virtnet_receive(struct receive_queue *rq, int budget, > } > } > > - if (rq->vq->num_free > virtqueue_get_vring_size(rq->vq) / 2) { > + if (rq->vq...
2019 Jul 23
2
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
...y. OK, kindly take a look if you prefer the below code change. I tested budget/2 and the result is almost the same as budget when pps below 400k, but a little better when it goes beyond 400k in my environment. diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0d4115c9e20b..bc08be7925eb 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1331,7 +1331,7 @@ static int virtnet_receive(struct receive_queue *rq, int budget, ??????????????? } ??????? } -?????? if (rq->vq->num_free > virtqueue_get_vring_size(rq->vq) / 2) { +?????? if (rq->vq->nu...
2019 Jul 23
2
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
...y. OK, kindly take a look if you prefer the below code change. I tested budget/2 and the result is almost the same as budget when pps below 400k, but a little better when it goes beyond 400k in my environment. diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 0d4115c9e20b..bc08be7925eb 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1331,7 +1331,7 @@ static int virtnet_receive(struct receive_queue *rq, int budget, ??????????????? } ??????? } -?????? if (rq->vq->num_free > virtqueue_get_vring_size(rq->vq) / 2) { +?????? if (rq->vq->nu...
2019 Aug 13
0
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
...you prefer the below code change. I tested > budget/2 and the result is almost the same as budget when pps below > 400k, but a little better when it goes beyond 400k in my environment. > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > > index 0d4115c9e20b..bc08be7925eb 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -1331,7 +1331,7 @@ static int virtnet_receive(struct receive_queue > *rq, int budget, > ??????????????? } > ??????? } > > -?????? if (rq->vq->num_free > virtqueue_get_vring_size(rq-&gt...
2019 Jul 19
1
[PATCH] virtio-net: parameterize min ring num_free for virtio receive
On 2019/7/19 22:29, Jiang wrote: > > On 2019/7/19 10:36, Jason Wang wrote: >> >> On 2019/7/18 ??10:43, Michael S. Tsirkin wrote: >>> On Thu, Jul 18, 2019 at 10:42:47AM -0400, Michael S. Tsirkin wrote: >>>> On Thu, Jul 18, 2019 at 10:01:05PM +0800, Jason Wang wrote: >>>>> On 2019/7/18 ??9:04, Michael S. Tsirkin wrote: >>>>>> On