]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for FEC configuration
authorJian Shen <shenjian15@huawei.com>
Fri, 24 May 2019 11:19:48 +0000 (19:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 May 2019 20:24:56 +0000 (13:24 -0700)
commit65cad9ef557c881f1c22c9be1936cdba3599e6dd
tree6d2fbd5775488b61e8f761766cd9a8d0bdb8b9d5
parentca4441849454ad839635e663af4834f825591337
net: hns3: fix for FEC configuration

The FEC capbility may be changed with port speed changes. Driver
needs to read the active FEC mode, and update FEC capability
when port speed changes.

Fixes: 4a2e69512675 ("net: hns3: add support for FEC encoding control")
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c