OSDN Git Service

net: hns3: Refine hns3_get_link_ksettings()
authorJian Shen <shenjian15@huawei.com>
Mon, 3 Sep 2018 10:21:56 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:46 +0000 (22:04 -0700)
commit12f46bc1d447ebf6e5bf4d0c318fa7320e1d6dcb
tree30071b320cf541a8fec64dab3de4cd67a0712212
parent7a0a928402689e32dc659b9466cb99254f7f7ed8
net: hns3: Refine hns3_get_link_ksettings()

In the previous implement, the query operation for fibre port and copper
port are mixed. This patch refines it by seperating them based on the port
type.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c