• Salil Mehta's avatar
    net: hns3: Add HNS3 VF IMP(Integrated Management Proc) cmd interface · fedd0c15
    Salil Mehta authored
    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: default avatarSalil Mehta <salil.mehta@huawei.com>
    Signed-off-by: default avatarlipeng <lipeng321@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fedd0c15
hclgevf_cmd.c 8.43 KB