linux/drivers/crypto/chelsio
Rahul Lakkireddy 0ed96b46c0 cxgb4/chcr: update SGL DMA unmap for USO
The FW_ETH_TX_EO_WR used for sending UDP Segmentation Offload (USO)
requests expects the headers to be part of the descriptor and the
payload to be part of the SGL containing the DMA mapped addresses.
Hence, the DMA address in the first entry of the SGL can start after
the packet headers. Currently, unmap_sgl() tries to unmap from this
wrong offset, instead of the originally mapped DMA address.

So, use existing unmap_skb() instead, which takes originally saved DMA
addresses as input. Update all necessary Tx paths to save the original
DMA addresses, so that unmap_skb() can unmap them properly.

v2:
- No change.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
2019-11-22 16:44:39 -08:00
..
chtls net: silence data-races on sk_backlog.tail 2019-11-06 21:35:34 -08:00
chcr_algo.c crypto: chelsio - replace AES cipher calls with library calls 2019-07-26 14:58:35 +10:00
chcr_algo.h crypto: chelsio - Rename arrays to avoid conflict with crypto/sha256.h 2019-09-05 14:54:54 +10:00
chcr_core.c crypto: chelsio - Fix softlockup with heavy I/O 2019-05-09 13:17:22 +08:00
chcr_core.h crypto: chelsio - avoid using sa_entry imm 2019-01-25 18:41:51 +08:00
chcr_crypto.h crypto: chelsio - replace AES cipher calls with library calls 2019-07-26 14:58:35 +10:00
chcr_ipsec.c cxgb4/chcr: update SGL DMA unmap for USO 2019-11-22 16:44:39 -08:00
Kconfig net/tls: allow compiling TLS TOE out 2019-10-04 14:07:07 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00