IFLIBDD(9) | Kernel Developer's Manual | IFLIBDD(9) |
iflibdd
— Device
Dependent Configuration Functions
#include
<ifdi_if.h>
int
ifdi_tx_queues_alloc
(if_ctx_t
ctx, caddr_t *vaddrs, uint64_t
*paddrs, int ntxqs, int
ntxqsets);
int
ifdi_rx_queues_alloc
(if_ctx_t
ctx, caddr_t *vaddrs, uint64_t
*paddrs, int nrxqs, int
nrxqsets);
int
ifdi_queues_free
(if_ctx_t
ctx);
int
ifdi_txq_setup
(if_ctx_t ctx,
uint16_t qid);
int
ifdi_rxq_setup
(if_ctx_t ctx,
uint16_t qid);
int
ifdi_attach_pre
(if_ctx_t
ctx);
int
ifdi_attach_post
(if_ctx_t
ctx);
int
ifdi_detach
(if_ctx_t ctx);
void
ifdi_vlan_register
(if_ctx_t ctx,
uint16_t vtag);
void
ifdi_vlan_unregister
(if_ctx_t
ctx, uint16_t vtag);
int
ifdi_suspend
(if_ctx_t ctx);
int
ifdi_resume
(if_ctx_t ctx);
void
ifdi_init
(if_ctx_t ctx);
void
ifdi_stop
(if_ctx_t ctx);
void
ifdi_multi_set
(if_ctx_t
ctx);
int
ifdi_mtu_set
(if_ctx_t ctx,
uint32_t mtu);
void
ifdi_media_status
(if_ctx_t ctx,
struct ifmediareq *ifr);
int
ifdi_media_change
(if_ctx_t
ctx);
void
ifdi_promisc_set
(if_ctx_t ctx,
int flags);
uint64_t
ifdi_get_counter
(if_ctx_t ctx,
ift_counter cnt);
void
ifdi_update_admin_status
(if_ctx_t
ctx);
void
ifdi_media_set
(if_ctx_t
ctx);
void
ifdi_intr_enable
(if_ctx_t
ctx);
void
ifdi_queue_intr_enable
(if_ctx_t
ctx, uint16_t qid);
void
ifdi_intr_disable
(if_ctx_t
ctx);
init
iov_init
(if_ctx_t ctx,
uint16_t num_vfs, const nvlist_t
*params);
void
iov_uinit
(if_ctx_t ctx);
void
ifdi_vflr_handle
(if_ctx_t
ctx);
int
ifdi_vf_add
(if_ctx_t ctx,
uint16_t vfnum, const nvlist_t
*params);
void
ifdi_link_intr_enable
(if_ctx_t
ctx);
void
ifdi_timer
(if_ctx_t ctx);
void
ifdi_watchdog_reset
(if_ctx_t
ctx);
void
ifdi_led_func
(if_ctx_t ctx,
int onoff);
int
ifdi_sysctl_int_delay
(if_ctx_t
ctx, if_int_delay_info_t iidi);
int
ifdi_i2c_req
(if_ctx_t ctx,
struct ifi2creq *req);
The above named functions are device dependent configuration functions. These routines are registered with iflib by the driver and are called from the corresponding iflib function to configure device specific functions and registers.
ifdi_tx_queues_alloc
()ifdi_rx_queues_alloc
()ifdi_queues_free
()ifdi_txq_setup
()ifdi_rxq_setup
()ifdi_attach_pre
()ifdi_attach_post
()ifdi_detach
()ifdi_vlan_register
()ifdi_vlan_unregister
()ifdi_suspend
()ifdi_resume
()ifdi_init
()IFF_DRV_RUNNING
, ~IIF_DRV_OACTIVE
).
ifdi_stop
()ifdi_multi_set
()ifdi_media_status
()ifdi_mtu_set
()ifdi_media_change
()ifdi_promisc_set
()ifdi_get_counter
()ifdi_update_admin_status
()ifdi_media_set
()ifdi_intr_enable
()ifdi_intr_disable
()ifdi_queue_intr_enable
()iov_init
()io_uninit
()ifdi_vflr_handle
()ifdi_vf_add
()ifdi_timer
()ifdi_watchdog_reset
()This manual page was written by Nicole Graziano
May 3, 2018 | Debian |