Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/t4_main.c
Context not available. | |||||
callout_init(&vi->tick, 1); | callout_init(&vi->tick, 1); | ||||
/* Allocate an ifnet and set it up */ | /* Allocate an ifnet and set it up */ | ||||
ifp = if_alloc(IFT_ETHER); | ifp = if_alloc_dev(IFT_ETHER, dev); | ||||
if (ifp == NULL) { | if (ifp == NULL) { | ||||
device_printf(dev, "Cannot allocate ifnet\n"); | device_printf(dev, "Cannot allocate ifnet\n"); | ||||
return (ENOMEM); | return (ENOMEM); | ||||
Context not available. |