diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2019-05-06 10:48:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-07 10:37:14 -0700 |
commit | 389ca14615e5ea4f9a56d765ac1e0da22d8105c3 (patch) | |
tree | 8ff37e077d62268317c86a1c95f634f3fd37a000 /tools/perf/scripts/python/stackcollapse.py | |
parent | ce74370c2ce9a90c16167131f837e14b5e3c57ed (diff) |
net: hns3: unify the page reusing for page size 4K and 64K
When page size is 64K, RX buffer is currently not reused when the
page_offset is moved to last buffer. This patch adds checking to
decide whether the buffer page can be reused when last_offset is
moved beyond last offset.
If the driver is the only user of page when page_offset is moved
to beyond last offset, then buffer can be reused and page_offset
is set to zero.
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions