Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ifdi_if.m
| Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | CODE { | ||||
| static int | static int | ||||
| null_vf_add(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused) | null_vf_add(if_ctx_t _ctx __unused, uint16_t num_vfs __unused, const nvlist_t *params __unused) | ||||
| { | { | ||||
| return (ENOTSUP); | return (ENOTSUP); | ||||
| } | } | ||||
| static int | static int | ||||
| null_priv_ioctl(if_ctx_t _ctx __unused, u_long command, caddr_t data __unused) | null_priv_ioctl(if_ctx_t _ctx __unused, u_long command, caddr_t data __unused) | ||||
| { | |||||
| return (ENOTSUP); | |||||
| } | |||||
| static int | |||||
| null_vfstat_ioctl(if_ctx_t _ctx __unused, | |||||
| struct ifvfstatus *_ifvfs __unused) | |||||
| { | { | ||||
| return (ENOTSUP); | return (ENOTSUP); | ||||
| } | } | ||||
| static bool | static bool | ||||
| null_needs_restart(if_ctx_t _ctx __unused, enum iflib_restart_event _event __unused) | null_needs_restart(if_ctx_t _ctx __unused, enum iflib_restart_event _event __unused) | ||||
| { | { | ||||
| return (false); | return (false); | ||||
| ▲ Show 20 Lines • Show All 251 Lines • ▼ Show 20 Lines | METHOD bool needs_restart { | ||||
| if_ctx_t _ctx; | if_ctx_t _ctx; | ||||
| enum iflib_restart_event _event; | enum iflib_restart_event _event; | ||||
| } DEFAULT null_needs_restart; | } DEFAULT null_needs_restart; | ||||
| METHOD int get_downreason { | METHOD int get_downreason { | ||||
| if_ctx_t _ctx; | if_ctx_t _ctx; | ||||
| struct ifdownreason *_ifdr; | struct ifdownreason *_ifdr; | ||||
| } DEFAULT null_get_downreason; | } DEFAULT null_get_downreason; | ||||
| METHOD int vfstat_ioctl { | |||||
| if_ctx_t _ctx; | |||||
| struct ifvfstatus *_ifvfs; | |||||
| } DEFAULT null_vfstat_ioctl; | |||||