• Edwin Peer's avatar
    bnxt_en: support multiple HWRM commands in flight · 68f684e2
    Edwin Peer authored
    Add infrastructure to maintain a pending list of HWRM commands awaiting
    completion and reduce the scope of the hwrm_cmd_lock mutex so that it
    protects only the request mailbox. The mailbox is free to use for one
    or more concurrent commands after receiving deferred response events.
    
    For uniformity and completeness, use the same pending list for
    collecting completions for commands that respond via a completion ring.
    These commands are only used for freeing rings and for IRQ test and
    we only support one such command in flight.
    
    Note deferred responses are also only supported on the main channel.
    The secondary channel (KONG) does not support deferred responses.
    Signed-off-by: default avatarEdwin Peer <edwin.peer@broadcom.com>
    Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    68f684e2
bnxt_hwrm.h 4.56 KB