diff options
| author | Toshiaki Makita <[email protected]> | 2019-01-29 09:45:56 +0900 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-01-30 14:02:43 -0800 |
| commit | 1667c08a9d31c7cdf09f4890816bfbf20b685495 (patch) | |
| tree | 504149649d26e614873add9ec91d156c0b20a5b5 /tools/perf/scripts/python | |
| parent | 188313c137c4f76afd0862f50dbc185b198b9e2a (diff) | |
virtio_net: Fix out of bounds access of sq
When XDP is disabled, curr_queue_pairs + smp_processor_id() can be
larger than max_queue_pairs.
There is no guarantee that we have enough XDP send queues dedicated for
each cpu when XDP is disabled, so do not count drops on sq in that case.
Fixes: 5b8f3c8d30a6 ("virtio_net: Add XDP related stats")
Signed-off-by: Toshiaki Makita <[email protected]>
Acked-by: Jason Wang <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions