summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/netronome
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-04-15 21:48:39 +0800
committerDavid S. Miller <davem@davemloft.net>2019-04-15 13:39:19 -0700
commit2566f10676ba996b745e138f54f3e2f974311692 (patch)
treecc6617d85b04cafc9435ad000d1c606c36dde0fa /drivers/net/ethernet/netronome
parent8a9a654b5b5233e7459abcc5f65c53df14b33f67 (diff)
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 'drivers/net/ethernet/netronome')
0 files changed, 0 insertions, 0 deletions