Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ti/if_ti.c
Show First 20 Lines • Show All 1,617 Lines • ▼ Show 20 Lines | for (i = 0; i < NPAYLOAD; i++){ | ||||
if (frame == NULL) { | if (frame == NULL) { | ||||
device_printf(sc->ti_dev, "buffer allocation " | device_printf(sc->ti_dev, "buffer allocation " | ||||
"failed -- packet dropped!\n"); | "failed -- packet dropped!\n"); | ||||
printf(" index %d page %d\n", idx, i); | printf(" index %d page %d\n", idx, i); | ||||
goto nobufs; | goto nobufs; | ||||
} | } | ||||
sf[i] = sf_buf_alloc(frame, SFB_NOWAIT); | sf[i] = sf_buf_alloc(frame, SFB_NOWAIT); | ||||
if (sf[i] == NULL) { | if (sf[i] == NULL) { | ||||
vm_page_unwire(frame, PQ_NONE); | vm_page_unwire_noq(frame); | ||||
vm_page_free(frame); | vm_page_free(frame); | ||||
device_printf(sc->ti_dev, "buffer allocation " | device_printf(sc->ti_dev, "buffer allocation " | ||||
"failed -- packet dropped!\n"); | "failed -- packet dropped!\n"); | ||||
printf(" index %d page %d\n", idx, i); | printf(" index %d page %d\n", idx, i); | ||||
goto nobufs; | goto nobufs; | ||||
} | } | ||||
} | } | ||||
for (i = 0; i < NPAYLOAD; i++){ | for (i = 0; i < NPAYLOAD; i++){ | ||||
▲ Show 20 Lines • Show All 2,425 Lines • Show Last 20 Lines |