]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: remove DMA mapping for KONG response
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 29 Aug 2021 07:34:56 +0000 (03:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:35:04 +0000 (09:35 +0100)
commit804840303ad6da2a654c86f6e2ede06f8661dab1
tree3e3a2950609694573c4adaa5a93c6bbfdc942f2b
parent19094cf696ffe105102c832367aea993db4ccb1c
bnxt_en: remove DMA mapping for KONG response

The additional response buffer serves no useful purpose. There can
be only one firmware command in flight due to the hwrm_cmd_lock mutex,
which is taken for the entire duration of any command completion,
KONG or otherwise. It is thus safe to share a single DMA buffer.

Removing the code associated with the additional mapping will simplify
matters in the next patch, which allocates response buffers from DMA
pools on a per request basis.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h