Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ti/if_ti.c
Show First 20 Lines • Show All 1,603 Lines • ▼ Show 20 Lines | if (m_old != NULL) { | ||||
for (i = 0; i < NPAYLOAD; i++){ | for (i = 0; i < NPAYLOAD; i++){ | ||||
MGET(m[i], M_NOWAIT, MT_DATA); | MGET(m[i], M_NOWAIT, MT_DATA); | ||||
if (m[i] == NULL) { | if (m[i] == NULL) { | ||||
device_printf(sc->ti_dev, "mbuf allocation " | device_printf(sc->ti_dev, "mbuf allocation " | ||||
"failed -- packet dropped!\n"); | "failed -- packet dropped!\n"); | ||||
goto nobufs; | goto nobufs; | ||||
} | } | ||||
frame = vm_page_alloc(NULL, 0, | frame = vm_page_alloc_noobj(VM_ALLOC_INTERRUPT | | ||||
VM_ALLOC_INTERRUPT | VM_ALLOC_NOOBJ | | |||||
VM_ALLOC_WIRED); | VM_ALLOC_WIRED); | ||||
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); | ||||
▲ Show 20 Lines • Show All 2,417 Lines • Show Last 20 Lines |