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)
commit6c172d59ad79d3973e393ba49d819ed6f0417202
tree3e3a2950609694573c4adaa5a93c6bbfdc942f2b
parenteaf2aaec0be4623b1d19f5c6ef770a78a91cf460
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