Project

General

Profile

Bug #1796 » rt2661.c.diff

herrgard, 07/25/2010 03:03 PM

View differences:

sys/dev/netif/ral/rt2661.c
}
error = bus_dmamap_load_mbuf_segment(sc->mgtq.data_dmat, data->map, m0,
segs, 1, &nsegs, 0);
segs, 1, &nsegs, BUS_DMA_NOWAIT);
if (error != 0) {
device_printf(sc->sc_dev, "could not map mbuf (error %d)\n",
error);
......
desc = &txq->desc[txq->cur];
error = bus_dmamap_load_mbuf_segment(txq->data_dmat, data->map, mprot, segs,
1, &nsegs, 0);
1, &nsegs, BUS_DMA_NOWAIT);
if (error != 0) {
device_printf(sc->sc_dev,
"could not map mbuf (error %d)\n", error);
......
desc = &txq->desc[txq->cur];
error = bus_dmamap_load_mbuf_segment(txq->data_dmat, data->map, m0, segs,
1, &nsegs, 0);
1, &nsegs, BUS_DMA_NOWAIT);
if (error != 0 && error != EFBIG) {
device_printf(sc->sc_dev, "could not map mbuf (error %d)\n",
error);
......
m0 = mnew;
error = bus_dmamap_load_mbuf_segment(txq->data_dmat, data->map, m0,
segs, 1, &nsegs, 0);
segs, 1, &nsegs, BUS_DMA_NOWAIT);
if (error != 0) {
device_printf(sc->sc_dev,
"could not map mbuf (error %d)\n", error);
(1-1/2)