diff options
| author | David C Somayajulu <davidcs@FreeBSD.org> | 2017-10-04 23:03:09 +0000 |
|---|---|---|
| committer | David C Somayajulu <davidcs@FreeBSD.org> | 2017-10-04 23:03:09 +0000 |
| commit | 99a0a983da353cc9dcd3284fbf0dfaa8563d0732 (patch) | |
| tree | 555b4d06879e528190f8cbac3147d810384abaec /sys/dev/qlxgbe/ql_hw.c | |
| parent | 64059dce604d5eeb28dce2231d5ed1e66d6990e2 (diff) | |
Notes
Diffstat (limited to 'sys/dev/qlxgbe/ql_hw.c')
| -rw-r--r-- | sys/dev/qlxgbe/ql_hw.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/qlxgbe/ql_hw.c b/sys/dev/qlxgbe/ql_hw.c index 03bb9260f3c2f..e6efba6e62af8 100644 --- a/sys/dev/qlxgbe/ql_hw.c +++ b/sys/dev/qlxgbe/ql_hw.c @@ -2374,6 +2374,16 @@ ql_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs, } } + for (i = 0; i < num_tx_cmds; i++) { + if (NULL != ha->tx_ring[txr_idx].tx_buf[(tx_idx+i)].m_head) { + QL_ASSERT(ha, 0, \ + ("%s: txr_idx = %d tx_idx = %d mbuf = %p\n",\ + __func__, txr_idx, (tx_idx+i),\ + ha->tx_ring[txr_idx].tx_buf[(tx_idx+i)].m_head)); + return (EINVAL); + } + } + tx_cmd = &hw->tx_cntxt[txr_idx].tx_ring_base[tx_idx]; if (!(mp->m_pkthdr.csum_flags & CSUM_TSO)) { |
