summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-07-29 05:53:30 +0300
committerDavid S. Miller <davem@davemloft.net>2019-07-29 18:23:41 +0300
commitdbba6da0c67ca99721b74760d3cc69df8a5a8230 (patch)
treeb3de1c314e0d71c792c1dc6de81ffee563e2e0b4 /tools/perf/scripts/python/event_analyzing_sample.py
parent0812545487eca362126cc1ef6b7798ecac693629 (diff)
downloadlinux-dbba6da0c67ca99721b74760d3cc69df8a5a8230.tar.xz
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 <linyunsheng@huawei.com> Reviewed-by: Peng Li <lipeng321@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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions