OSDN Git Service

net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface
authorSalil Mehta <salil.mehta@huawei.com>
Thu, 14 Dec 2017 18:03:02 +0000 (18:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 15:55:34 +0000 (10:55 -0500)
commitfedd0c15d2885e393d4ef4db818b462c3bbfc337
treee328908320f93da05b4a80d24425ff470f53d412
parentbe17bbec2361c461dde8e08f274423d0d7dda15c
net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

This patch adds support of command interface for communication with
the IMP(Integrated Management Processor) for HNS3 Virtual Function
Driver.

Each VF has support of CQP(Command Queue Pair) ring interface.
Each CQP consis of send queue CSQ and receive queue CRQ.
There are various commands a VF may support, like to query frimware
version, TQP management, statistics, interrupt related, mailbox etc.

This also contains code to initialize the command queue, manage the
command queue descriptors and Rx/Tx protocol with the command processor
in the form of various commands/results and acknowledgements.

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_cmd.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h [new file with mode: 0644]