]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add support for FEC encoding control
authorJian Shen <shenjian15@huawei.com>
Fri, 3 May 2019 09:50:39 +0000 (17:50 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 May 2019 04:02:41 +0000 (00:02 -0400)
commit4a2e695126751023392a13b95d450adcce6d1a0e
treef2c8cf2e1c1d139580c78f2c0ba86ef14dae6812
parentc8c4308323466c949f825b078e5a132a93ee6e6a
net: hns3: add support for FEC encoding control

This patch adds support for FEC encoding control, user can change
FEC mode by command ethtool --set-fec, and get FEC mode by command
ethtool --show-fec. The fec capability is changed follow the port
speed. If autoneg on, the user configure fec mode will be overwritten
by autoneg result.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h