Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_iavf.c
Show First 20 Lines • Show All 2,096 Lines • ▼ Show 20 Lines | iavf_add_device_sysctls(struct iavf_sc *sc) | ||||
SYSCTL_ADD_PROC(ctx, debug_list, | SYSCTL_ADD_PROC(ctx, debug_list, | ||||
OID_AUTO, "do_vflr_reset", | OID_AUTO, "do_vflr_reset", | ||||
CTLTYPE_INT | CTLFLAG_WR | CTLFLAG_NEEDGIANT, | CTLTYPE_INT | CTLFLAG_WR | CTLFLAG_NEEDGIANT, | ||||
sc, 0, iavf_sysctl_vflr_reset, "A", "Request a VFLR reset from HW"); | sc, 0, iavf_sysctl_vflr_reset, "A", "Request a VFLR reset from HW"); | ||||
/* Add stats sysctls */ | /* Add stats sysctls */ | ||||
ixl_add_vsi_sysctls(dev, vsi, ctx, "vsi"); | ixl_add_vsi_sysctls(dev, vsi, ctx, "vsi"); | ||||
ixl_add_queues_sysctls(dev, vsi); | ixl_vsi_add_queues_stats(vsi); | ||||
} | } | ||||
static void | static void | ||||
iavf_init_filters(struct iavf_sc *sc) | iavf_init_filters(struct iavf_sc *sc) | ||||
{ | { | ||||
sc->mac_filters = malloc(sizeof(struct mac_list), | sc->mac_filters = malloc(sizeof(struct mac_list), | ||||
M_IAVF, M_WAITOK | M_ZERO); | M_IAVF, M_WAITOK | M_ZERO); | ||||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |