net: hns3: add support for 200G device
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 25 Sep 2020 00:26:17 +0000 (08:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 03:19:25 +0000 (20:19 -0700)
commitae6f010cb1a796d2dbe285e40430293e86b3e9ae
tree995b8dd26fbf0c193272227fe8bb48e90463357e
parent348775ebe9114e9ceedafc5c85530c7e29cea369
net: hns3: add support for 200G device

The 200G device has a new device id 0xA228, so adds this device id to
pci table, then the driver can probe it.

As speed_ability queried from firmware has only 8 bits and already be
used up, so firmware adds extra speed_ability_ext to indicate more
speed abilities to support 200G and driver needs to parse it.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.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