]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:46:56 +0000 (10:46 -0500)
commit7aa65dee277a8a1c09d0d4ba118a645bde34090e
tree58d45cfc71c35f07d7f536c490d18180b9f127ff
parentd5752031d7c3db42901f82dd96047dc9721185a9
net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface

BugLink: http://bugs.launchpad.net/bugs/1756097
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>
(cherry picked from commit fedd0c15d2885e393d4ef4db818b462c3bbfc337)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
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]