mirror of https://gitee.com/openkylin/linux.git
net: hns3: set the port shaper according to MAC speed
This patch sets the port shaper according to the MAC speed as suggested by hardware user manual. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b524b38ff6
commit
d9ea156297
|
@ -397,7 +397,7 @@ static int hclge_tm_port_shaper_cfg(struct hclge_dev *hdev)
|
|||
u8 ir_u, ir_b, ir_s;
|
||||
int ret;
|
||||
|
||||
ret = hclge_shaper_para_calc(HCLGE_ETHER_MAX_RATE,
|
||||
ret = hclge_shaper_para_calc(hdev->hw.mac.speed,
|
||||
HCLGE_SHAPER_LVL_PORT,
|
||||
&ir_b, &ir_u, &ir_s);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in New Issue