diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2019-11-22 06:30:01 +0530 |
---|---|---|
committer | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-11-22 16:44:39 -0800 |
commit | 0ed96b46c0ac26ebcdd2ee95c2479ef8cf94bbd6 (patch) | |
tree | 6293d25b2c0ee2d7f4ede7967f44e61a102ea6af /mm/swap_slots.c | |
parent | a9f852e92e40992c4ff09ac3940f7725e016317a (diff) | |
download | linux-0ed96b46c0ac26ebcdd2ee95c2479ef8cf94bbd6.tar.bz2 |
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>
Diffstat (limited to 'mm/swap_slots.c')
0 files changed, 0 insertions, 0 deletions