Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_ixl.c
Show First 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | static struct if_shared_ctx ixl_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 ixl_sctx = &ixl_sctx_init; | |||||
/*** Functions ***/ | /*** Functions ***/ | ||||
static void * | static void * | ||||
ixl_register(device_t dev) | ixl_register(device_t dev) | ||||
{ | { | ||||
return (ixl_sctx); | return (&ixl_sctx_init); | ||||
} | } | ||||
static int | static int | ||||
ixl_allocate_pci_resources(struct ixl_pf *pf) | ixl_allocate_pci_resources(struct ixl_pf *pf) | ||||
{ | { | ||||
device_t dev = iflib_get_dev(pf->vsi.ctx); | device_t dev = iflib_get_dev(pf->vsi.ctx); | ||||
struct i40e_hw *hw = &pf->hw; | struct i40e_hw *hw = &pf->hw; | ||||
int rid; | int rid; | ||||
▲ Show 20 Lines • Show All 1,530 Lines • Show Last 20 Lines |