net: hns3: convert mac advertize and supported from u32 to link mode
authorJian Shen <shenjian15@huawei.com>
Wed, 20 Feb 2019 02:32:42 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 00:29:04 +0000 (16:29 -0800)
commitdb68ca0ef7c98bb39cb193571c63b22ca99f633f
tree09f1d89b60bdb0ce2927a72619dbdf9ef38526db
parent676131f7c53ecdd79e29fc8cfcdefe6f9f2485e8
net: hns3: convert mac advertize and supported from u32 to link mode

The link mode with bits has been up to more than 31 for some MAC
and phy. Convert to using a linkmode bitmap, which can support all
link modes.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@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