iflib - flib_busdma_load_mbuf_sg used isc_tx_maxsize as max semgent size.
Submitted by: krzysztof.galazka@intel.com Differential Revision: https://reviews.freebsd.org/D11403
This commit is contained in:
parent
247f67d439
commit
00c83bb626
@ -2892,7 +2892,7 @@ iflib_busdma_load_mbuf_sg(iflib_txq_t txq, bus_dma_tag_t tag, bus_dmamap_t map,
|
||||
if_ctx_t ctx;
|
||||
if_shared_ctx_t sctx;
|
||||
if_softc_ctx_t scctx;
|
||||
int i, next, pidx, err, maxsegsz, ntxd, count;
|
||||
int i, next, pidx, err, ntxd, count;
|
||||
struct mbuf *m, *tmp, **ifsd_m;
|
||||
|
||||
m = *m0;
|
||||
@ -2935,13 +2935,17 @@ iflib_busdma_load_mbuf_sg(iflib_txq_t txq, bus_dma_tag_t tag, bus_dmamap_t map,
|
||||
m = m->m_next;
|
||||
} while (m != NULL);
|
||||
} else {
|
||||
int buflen, sgsize, max_sgsize;
|
||||
int buflen, sgsize, maxsegsz, max_sgsize;
|
||||
vm_offset_t vaddr;
|
||||
vm_paddr_t curaddr;
|
||||
|
||||
count = i = 0;
|
||||
maxsegsz = sctx->isc_tx_maxsize;
|
||||
m = *m0;
|
||||
if (m->m_pkthdr.csum_flags & CSUM_TSO)
|
||||
maxsegsz = scctx->isc_tx_tso_segsize_max;
|
||||
else
|
||||
maxsegsz = sctx->isc_tx_maxsegsize;
|
||||
|
||||
do {
|
||||
if (__predict_false(m->m_len <= 0)) {
|
||||
tmp = m;
|
||||
|
Loading…
x
Reference in New Issue
Block a user