freebsd_network: bus_dmamap_load_mbuf_sg is always NOWAIT.

This matches FreeBSD.
This commit is contained in:
Augustin Cavalier 2022-06-03 13:57:10 -04:00
parent 04d2f987a6
commit 3e9b842151

View File

@ -440,6 +440,7 @@ bus_dmamap_load_mbuf_sg(bus_dma_tag_t dmat, bus_dmamap_t map, struct mbuf* mb,
int nsegs = 0, error = 0;
bool first = true;
bus_addr_t lastaddr = 0;
flags |= BUS_DMA_NOWAIT;
for (struct mbuf* m = mb; m != NULL && error == 0; m = m->m_next) {
if (m->m_len <= 0)