check for defrag only when bus_dmamap_load_mbuf_sg() returns EFBIG. Comment in

qla_hw_send is moot.
This commit is contained in:
David C Somayajulu 2014-02-14 01:02:06 +00:00
parent 0e778c88c9
commit b23deb2719
2 changed files with 1 additions and 5 deletions

View File

@ -998,7 +998,6 @@ qla_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs,
if (hdr_len == 0) {
if ((nsegs > Q8_TX_MAX_SEGMENTS) ||
(mp->m_pkthdr.len > ha->max_frame_size)){
/* TBD: copy into private buffer and send it */
device_printf(dev,
"%s: (nsegs[%d, %d, 0x%b] > Q8_TX_MAX_SEGMENTS)\n",
__func__, nsegs, mp->m_pkthdr.len,

View File

@ -1063,10 +1063,7 @@ qla_send(qla_host_t *ha, struct mbuf **m_headp)
ret = bus_dmamap_load_mbuf_sg(ha->tx_tag, map, m_head, segs, &nsegs,
BUS_DMA_NOWAIT);
if ((ret == EFBIG) ||
((nsegs > Q8_TX_MAX_SEGMENTS) &&
(((m_head->m_pkthdr.csum_flags & CSUM_TSO) == 0) ||
(m_head->m_pkthdr.len <= ha->max_frame_size)))) {
if (ret == EFBIG) {
struct mbuf *m;