]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: modify functions of converting speed ability to ethtool link mode
authorGuangbin Huang <huangguangbin2@huawei.com>
Sun, 24 Oct 2021 09:41:12 +0000 (17:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Oct 2021 13:00:59 +0000 (14:00 +0100)
commit0dec18792074fe774fbd891a2b926953ae7fb70d
tree0ebf0410769a82346e7b207b3366fce51f7450a2
parentec37d82b65c0626557385ea287a2dea1d8e37b98
net: hns3: modify functions of converting speed ability to ethtool link mode

The functions of converting speed ability to ethtool link mode just
support setting mac->supported currently, to reuse these functions to
set ethtool link mode for others(i.e. advertising), delete the argument
mac and add argument link_mode.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c