diff options
| author | Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp> | 2018-07-23 23:36:06 +0900 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-07-25 12:53:37 -0700 |
| commit | 2c4a2f7d826329966e8ab86f842a95d3234c64da (patch) | |
| tree | 73371e30771a5f615cd9cd8744f937b83894beaf /lib/mpi/mpiutil.c | |
| parent | a0929a44c2065da33c17b1b8015a88401d71ca7b (diff) | |
virtio_net: Make drop counter per-queue
Since when XDP was introduced, drop counter has been able to be updated
much more frequently than before, as XDP_DROP increments the counter.
Thus for performance analysis per-queue drop counter would be useful.
Also this avoids cache contention and race on updating the counter. It
is currently racy because napi handlers read-modify-write it without any
locks.
There are more counters in dev->stats that are racy, but I left them
per-device, because they are rarely updated and does not worth being
per-queue counters IMHO. To fix them we need atomic ops or some kind of
locks.
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
