Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_iavf.c
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | static struct if_shared_ctx iavf_sctx_init = { | ||||
.isc_nrxd_min = {IXL_MIN_RING}, | .isc_nrxd_min = {IXL_MIN_RING}, | ||||
.isc_ntxd_min = {IXL_MIN_RING}, | .isc_ntxd_min = {IXL_MIN_RING}, | ||||
.isc_nrxd_max = {IXL_MAX_RING}, | .isc_nrxd_max = {IXL_MAX_RING}, | ||||
.isc_ntxd_max = {IXL_MAX_RING}, | .isc_ntxd_max = {IXL_MAX_RING}, | ||||
.isc_nrxd_default = {IXL_DEFAULT_RING}, | .isc_nrxd_default = {IXL_DEFAULT_RING}, | ||||
.isc_ntxd_default = {IXL_DEFAULT_RING}, | .isc_ntxd_default = {IXL_DEFAULT_RING}, | ||||
}; | }; | ||||
if_shared_ctx_t iavf_sctx = &iavf_sctx_init; | |||||
/*** Functions ***/ | /*** Functions ***/ | ||||
static void * | static void * | ||||
iavf_register(device_t dev) | iavf_register(device_t dev) | ||||
{ | { | ||||
return (iavf_sctx); | return (&iavf_sctx_init); | ||||
} | } | ||||
static int | static int | ||||
iavf_allocate_pci_resources(struct iavf_sc *sc) | iavf_allocate_pci_resources(struct iavf_sc *sc) | ||||
{ | { | ||||
struct i40e_hw *hw = &sc->hw; | struct i40e_hw *hw = &sc->hw; | ||||
device_t dev = iflib_get_dev(sc->vsi.ctx); | device_t dev = iflib_get_dev(sc->vsi.ctx); | ||||
int rid; | int rid; | ||||
▲ Show 20 Lines • Show All 2,165 Lines • Show Last 20 Lines |