linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3
Yunsheng Lin 2566f10676 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: 848440544b ("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>
2019-04-15 13:39:19 -07:00
..
hns3pf net: hns3: fix for vport->bw_limit overflow problem 2019-04-15 13:39:19 -07:00
hns3vf net: hns3: code optimization for command queue' spin lock 2019-04-14 13:47:35 -07:00
hclge_mbx.h net: hns3: fix set port based VLAN issue for VF 2019-04-14 13:47:35 -07:00
hnae3.c net: hns3: split function hnae3_match_n_instantiate() 2019-04-04 10:20:39 -07:00
hnae3.h net: hns3: fix VLAN offload handle for VLAN inserted by port 2019-04-14 13:47:34 -07:00
hns3_dcbnl.c net: hns3: use HNS3_NIC_STATE_RESETTING to indicate resetting 2018-11-07 11:42:17 -08:00
hns3_debugfs.c net: hns3: Add "tm map" status information query function 2018-12-15 10:54:18 -08:00
hns3_enet.c net: hns3: free the pending skb when clean RX ring 2019-04-14 13:47:35 -07:00
hns3_enet.h net: hns3: minor optimization for ring_space 2019-04-04 10:20:38 -07:00
hns3_ethtool.c net: hns3: check resetting status in hns3_get_stats() 2019-04-04 10:20:39 -07:00
Makefile net: hns3: Add debugfs framework registration 2018-11-23 17:28:59 -08:00