aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/tx.c
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2020-03-05 09:47:53 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-05 12:04:50 -0800
commit68e1006f618e509fc7869259fe83ceec4a95dac3 (patch)
tree838a558d49d77afba85b2c87fb7b9c5f17f14d17 /drivers/net/ethernet/sfc/tx.c
parentslip: make slhc_compress() more robust against malicious packets (diff)
downloadlinux-dev-68e1006f618e509fc7869259fe83ceec4a95dac3.tar.xz
linux-dev-68e1006f618e509fc7869259fe83ceec4a95dac3.zip
net: hns3: fix a not link up issue when fibre port supports autoneg
When fibre port supports auto-negotiation, the IMP(Intelligent Management Process) processes the speed of auto-negotiation and the user's speed separately. For below case, the port will get a not link up problem. step 1: disables auto-negotiation and sets speed to A, then the driver's MAC speed will be updated to A. step 2: enables auto-negotiation and MAC gets negotiated speed B, then the driver's MAC speed will be updated to B through querying in periodical task. step 3: MAC gets new negotiated speed A. step 4: disables auto-negotiation and sets speed to B before periodical task query new MAC speed A, the driver will ignore the speed configuration. This patch fixes it by skipping speed and duplex checking when fibre port supports auto-negotiation. Fixes: 22f48e24a23d ("net: hns3: add autoneg and change speed support for fibre port") Signed-off-by: Jian Shen <shenjian15@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/sfc/tx.c')
0 files changed, 0 insertions, 0 deletions