]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: add support for HWRM request slices
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 29 Aug 2021 07:35:02 +0000 (03:35 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:35:04 +0000 (09:35 +0100)
commit79d6ec8a1e14e22748885f948d71a2f945f15e9e
tree2cdaff6488a04a3b1092646b3b3fe01bc2a92b74
parent0e374f1a4261aa9323f9ccfa70a030317509ad95
bnxt_en: add support for HWRM request slices

Slices are a mechanism for suballocating DMA mapped regions from the
request buffer. Such regions can be used for indirect command data
instead of creating new mappings with dma_alloc_coherent().

The advantage of using a slice is that the lifetime of the slice is
bound to the request and will be automatically unmapped when the
request is consumed.

A single external region is also supported. This allows for regions
that will not fit inside the spare request buffer space such that
the same API can be used consistently even for larger mappings.

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_hwrm.c
drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.h