Commit 30d529c8 authored by Guangbin Huang's avatar Guangbin Huang Committed by Yonglong Liu
Browse files

net: hns3: fix tm port shapping of fibre port is incorrect after driver initialization

mainline inclusion
from mainline-v5.19-rc3
commit 12a36708
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I91FSH


CVE: NA

----------------------------

Currently in driver initialization process, driver will set shapping
parameters of tm port to default speed read from firmware. However, the
speed of SFP module may not be default speed, so shapping parameters of
tm port may be incorrect.

To fix this problem, driver sets new shapping parameters for tm port
after getting exact speed of SFP module in this case.

Fixes: 88d10bd6 ("net: hns3: add support for multiple media type")
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
parent 7efcac76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment