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)
commitf438bfe9d4fe2e491505abfbf04d7c506e00d146
tree6d2fbd5775488b61e8f761766cd9a8d0bdb8b9d5
parentd93ed94fbeaf3bf5ed16b57574dbb48ab7f7e41a
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: 7e6ec9148a1d ("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