Jason Wang be121f46af virtio-net: drop rq->max and rq->num
It looks like there's no need for those two fields:

- Unless there's a failure for the first refill try, rq->max should be always
  equal to the vring size.
- rq->num is only used to determine the condition that we need to do the refill,
  we could check vq->num_free instead.
- rq->num was required to be increased or decreased explicitly after each
  get/put which results a bad API.

So this patch removes them both to make the code simpler.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-16 17:30:42 -08:00
..
2013-11-07 19:24:20 +01:00
2013-12-12 11:05:19 -08:00
2013-12-08 18:47:25 -08:00
2014-01-16 17:30:42 -08:00
2013-12-11 10:56:21 -05:00
2014-01-13 14:29:49 -08:00
2013-11-15 14:05:15 -08:00
2014-01-15 14:51:22 -08:00
2013-12-06 15:22:05 -05:00
2013-12-10 08:48:15 +01:00
2013-12-20 09:34:54 -08:00