summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-04-15 16:48:39 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-15 23:39:19 +0300
commit2566f10676ba996b745e138f54f3e2f974311692 (patch)
treecc6617d85b04cafc9435ad000d1c606c36dde0fa /tools/perf/scripts/python/exported-sql-viewer.py
parent8a9a654b5b5233e7459abcc5f65c53df14b33f67 (diff)
downloadlinux-2566f10676ba996b745e138f54f3e2f974311692.tar.xz
net: hns3: fix for vport->bw_limit overflow problem
When setting vport->bw_limit to hdev->tm_info.pg_info[0].bw_limit in hclge_tm_vport_tc_info_update, vport->bw_limit can be as big as HCLGE_ETHER_MAX_RATE (100000), which can not fit into u16 (65535). So this patch fixes it by using u32 for vport->bw_limit. Fixes: 848440544b41 ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> 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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions