Date: Wed, 29 May 2019 16:01:34 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348364 - head/sys/dev/xdma Message-ID: <201905291601.x4TG1YDx084083@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: br Date: Wed May 29 16:01:34 2019 New Revision: 348364 URL: https://svnweb.freebsd.org/changeset/base/348364 Log: Don't copy the data from bounce buffer back to the mbuf if channel does not use bounce buffering. Sponsored by: DARPA, AFRL Modified: head/sys/dev/xdma/xdma_sg.c Modified: head/sys/dev/xdma/xdma_sg.c ============================================================================== --- head/sys/dev/xdma/xdma_sg.c Wed May 29 15:53:33 2019 (r348363) +++ head/sys/dev/xdma/xdma_sg.c Wed May 29 16:01:34 2019 (r348364) @@ -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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201905291601.x4TG1YDx084083>