net: hns3: Add mailbox support to PF driver
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:07 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:35 +0000 (10:55 -0500)
commitdde1a86e93cadf9b17ec0a95a78c99505c48fd83
tree07715729e4fc196d7a04dfcd783735fe54e5532e
parent424eb834a9be49273c4b32d0d6395dfdbe768a1a
net: hns3: Add mailbox support to PF driver

Command queue provides the provision of Mailbox command which
can be used for communication between PF and VF. PF handles
messages from various VFs for fetching various information like,
queue, vlan, link status related etc. It also handles the request
from various VFs to perform certain privileged operations.

This patch adds the support of a message handler for handling
such various command requests from VF.

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/hns3pf/Makefile
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c [new file with mode: 0644]