diff options
author | Edwin Peer <edwin.peer@broadcom.com> | 2021-08-29 03:35:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-30 09:35:04 +0100 |
commit | 2138081708405fb9c16a76a9b6ef46c35d3f17a9 (patch) | |
tree | 2cdaff6488a04a3b1092646b3b3fe01bc2a92b74 /kernel/up.c | |
parent | ecddc29d928d0ecccbc8f339b59ed75e5c8e8ecf (diff) | |
download | linux-stable-2138081708405fb9c16a76a9b6ef46c35d3f17a9.tar.gz linux-stable-2138081708405fb9c16a76a9b6ef46c35d3f17a9.tar.bz2 linux-stable-2138081708405fb9c16a76a9b6ef46c35d3f17a9.zip |
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>
Diffstat (limited to 'kernel/up.c')
0 files changed, 0 insertions, 0 deletions