diff options
author | Yunsheng Lin <[email protected]> | 2019-07-29 10:53:30 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-07-29 08:23:41 -0700 |
commit | dbba6da0c67ca99721b74760d3cc69df8a5a8230 (patch) | |
tree | b3de1c314e0d71c792c1dc6de81ffee563e2e0b4 /tools/perf/scripts/python/stackcollapse.py | |
parent | 0812545487eca362126cc1ef6b7798ecac693629 (diff) |
net: hns3: Add support for using order 1 pages with a 4K buffer
Hardware supports 0.5K, 1K, 2K, 4K RX buffer size, the
RX buffer can not be reused because the hns3_page_order
return 0 when page size and RX buffer size are both 4096.
So this patch changes the hns3_page_order to return 1 when
RX buffer is greater than half of the page size and page size
is less the 8192, and dev_alloc_pages has already been used
to allocate the compound page for RX buffer.
This patch also changes hnae3_* to hns3_* for page order
and RX buffer size calculation because they are used in
hns3 module.
Signed-off-by: Yunsheng Lin <[email protected]>
Reviewed-by: Peng Li <[email protected]>
Signed-off-by: Huazhong Tan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions