mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Don't copy the data from bounce buffer back to the mbuf if channel does
not use bounce buffering. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
7b4ec8d2fc
commit
33da49cd2e
1 changed files with 2 additions and 1 deletions
|
|
@ -348,7 +348,8 @@ xchan_seg_done(xdma_channel_t *xchan,
|
|||
BUS_DMASYNC_POSTREAD);
|
||||
bus_dmamap_unload(xchan->dma_tag_bufs, b->map);
|
||||
} else {
|
||||
if (xr->req_type == XR_TYPE_MBUF &&
|
||||
if ((xchan->caps & XCHAN_CAP_NOBUFS) == 0 &&
|
||||
xr->req_type == XR_TYPE_MBUF &&
|
||||
xr->direction == XDMA_DEV_TO_MEM)
|
||||
m_copyback(xr->m, 0, st->transferred,
|
||||
(void *)xr->buf.vaddr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue