net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:04 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:34 +0000 (10:55 -0500)
commite2cb1dec9779ba2d89302a653eb0abaeb8682196
tree98f037845660a49009266fded802fb42addefd4c
parentb11a0bb231f3d83429c5e88451ca85ce27c4a9dd
net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support

This patch adds the support of hardware compatibiltiy layer to the
HNS3 VF Driver. This layer implements various {set|get} operations
over MAC address for a virtual port, RSS related configuration,
fetches the link status info from PF, does various VLAN related
configuration over the virtual port, queries the statistics from
the hardware etc.

This layer can directly interact with hardware through the
IMP(Integrated Mangement Processor) interface or can use mailbox
to interact with the PF driver.

Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h [new file with mode: 0644]