diff options
author | Michael S. Tsirkin <[email protected]> | 2017-07-31 21:49:49 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-07-31 18:02:46 -0700 |
commit | 1daa8790d0280d2c719658e39bd59fce65efa909 (patch) | |
tree | fa2dbfb28b89a3f520c402f146b731e69f737e86 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | cfbcb61f6c2ac9aeb7731d2ec59fe3bf53786c49 (diff) |
virtio_net: fix truesize for mergeable buffers
Seth Forshee noticed a performance degradation with some workloads.
This turns out to be due to packet drops. Euan Kemp noticed that this
is because we drop all packets where length exceeds the truesize, but
for some packets we add in extra memory without updating the truesize.
This in turn was kept around unchanged from ab7db91705e95 ("virtio-net:
auto-tune mergeable rx buffer size for improved performance"). That
commit had an internal reason not to account for the extra space: not
enough bits to do it. No longer true so let's account for the allocated
length exactly.
Many thanks to Seth Forshee for the report and bisecting and Euan Kemp
for debugging the issue.
Fixes: 680557cf79f8 ("virtio_net: rework mergeable buffer handling")
Reported-by: Euan Kemp <[email protected]>
Tested-by: Euan Kemp <[email protected]>
Reported-by: Seth Forshee <[email protected]>
Tested-by: Seth Forshee <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions