Deleted Added
full compact
32c32
< * $FreeBSD: head/sys/pci/if_rl.c 51657 1999-09-25 17:29:02Z wpaul $
---
> * $FreeBSD: head/sys/pci/if_rl.c 52426 1999-10-21 19:42:03Z wpaul $
135c135
< "$FreeBSD: head/sys/pci/if_rl.c 51657 1999-09-25 17:29:02Z wpaul $";
---
> "$FreeBSD: head/sys/pci/if_rl.c 52426 1999-10-21 19:42:03Z wpaul $";
991c991
< free(sc->rl_cdata.rl_rx_buf, M_DEVBUF);
---
> contigfree(sc->rl_cdata.rl_rx_buf, RL_RXBUFLEN + 32, M_DEVBUF);
1128,1130c1128,1129
< "copy %d bytes\n", sc->rl_unit, wrap);
< }
< else {
---
> "copy %d bytes\n", sc->rl_unit, wrap);
> } else {
1133a1133
> m_pullup(m, MHLEN - RL_ETHER_ALIGN);
1142c1142
< "copy %d bytes\n", sc->rl_unit, total_len);
---
> "copy %d bytes\n", sc->rl_unit, total_len);
1218a1219
> int oldthresh;
1222a1224,1234
> oldthresh = sc->rl_txthresh;
> /* error recovery */
> rl_reset(sc);
> rl_init(sc);
> /*
> * If there was a transmit underrun,
> * bump the TX threshold.
> */
> if (txstat & RL_TXSTAT_TX_UNDERRUN)
> sc->rl_txthresh = oldthresh + 32;
> return;
1293c1305
< if (ifp->if_snd.ifq_head != NULL) {
---
> if (ifp->if_snd.ifq_head != NULL)
1295d1306
< }
1330,1331c1341
< m_copydata(m_head, 0, m_head->m_pkthdr.len,
< mtod(m_new, caddr_t));
---
> m_copydata(m_head, 0, m_head->m_pkthdr.len, mtod(m_new, caddr_t));
1339c1349
< (RL_MIN_FRAMELEN - m_head->m_pkthdr.len);
---
> (RL_MIN_FRAMELEN - m_head->m_pkthdr.len);
1380c1390,1391
< RL_TX_EARLYTHRESH | RL_CUR_TXMBUF(sc)->m_pkthdr.len);
---
> RL_TXTHRESH(sc->rl_txthresh) |
> RL_CUR_TXMBUF(sc)->m_pkthdr.len);
1474a1486,1488
> /* Set initial TX threshold */
> sc->rl_txthresh = RL_TX_THRESH_INIT;
>