diff options
| author | Jason Wang <[email protected]> | 2014-01-16 14:45:24 +0800 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-01-16 17:30:42 -0800 |
| commit | be121f46affce8a2ba284ef0388a8ff6ff85ec1b (patch) | |
| tree | ac9a515a86987e519a8dc26ae33e06c4ee6bf525 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 9b05f462b78852fcb2b0508148a855d47c6e5c02 (diff) | |
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 <[email protected]>
Cc: Michael S. Tsirkin <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
Acked-by: Rusty Russell <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions