OSDN Git Service

net: hns3: Add mailbox support to VF driver
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:03 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:34 +0000 (10:55 -0500)
commitb11a0bb231f3d83429c5e88451ca85ce27c4a9dd
tree859be2a4a264aa668e44b1ac565cfc7d84f518b0
parentfedd0c15d2885e393d4ef4db818b462c3bbfc337
net: hns3: Add mailbox support to VF driver

This patch adds the support of the mailbox to the VF driver. The
mailbox shall be used as an interface to communicate with the
PF driver for various purposes like {set|get} MAC related
operations, reset, link status etc. The mailbox supports both
synchronous and asynchronous command send to 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/hclge_mbx.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c [new file with mode: 0644]