diff options
author | Yunsheng Lin <linyunsheng@huawei.com> | 2018-09-26 19:28:36 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-28 10:37:42 -0700 |
commit | 996ff91840eb6f288826e472685abde78bac20ea (patch) | |
tree | 1b11cc00c0188bfc555df73c0dab4d3110099661 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4dc13b9668d8ba7a5d1a26b88fa30baa8a214dcc (diff) |
net: hns3: Fix for packet buffer setting bug
The hardware expects a unit of 128 bytes when setting
packet buffer. When calculating the packet buffer size,
hclge_rx_buffer_calc does not round up the size as a unit
of 128 byte, which may casue packet lost problem when stress
testing.
This patch fixes it by rounding up packet size when calculating.
Fixes: 46a3df9f9718 ("net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions