[][src]Struct capsule_ffi::rte_eth_dev_data

#[repr(C)]#[repr(align(64))]pub struct rte_eth_dev_data {
    pub name: [c_char; 64],
    pub rx_queues: *mut *mut c_void,
    pub tx_queues: *mut *mut c_void,
    pub nb_rx_queues: u16,
    pub nb_tx_queues: u16,
    pub sriov: rte_eth_dev_sriov,
    pub dev_private: *mut c_void,
    pub dev_link: rte_eth_link,
    pub dev_conf: rte_eth_conf,
    pub mtu: u16,
    pub min_rx_buf_size: u32,
    pub rx_mbuf_alloc_failed: u64,
    pub mac_addrs: *mut rte_ether_addr,
    pub mac_pool_sel: [u64; 128],
    pub hash_mac_addrs: *mut rte_ether_addr,
    pub port_id: u16,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub rx_queue_state: [u8; 1024],
    pub tx_queue_state: [u8; 1024],
    pub dev_flags: u32,
    pub kdrv: Type,
    pub numa_node: c_int,
    pub vlan_filter_conf: rte_vlan_filter_conf,
    pub owner: rte_eth_dev_owner,
    pub representor_id: u16,
    pub reserved_64s: [u64; 4],
    pub reserved_ptrs: [*mut c_void; 4],
}

Fields

name: [c_char; 64]rx_queues: *mut *mut c_voidtx_queues: *mut *mut c_voidnb_rx_queues: u16nb_tx_queues: u16sriov: rte_eth_dev_sriovdev_private: *mut c_voiddev_link: rte_eth_linkdev_conf: rte_eth_confmtu: u16min_rx_buf_size: u32rx_mbuf_alloc_failed: u64mac_addrs: *mut rte_ether_addrmac_pool_sel: [u64; 128]hash_mac_addrs: *mut rte_ether_addrport_id: u16_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>rx_queue_state: [u8; 1024]tx_queue_state: [u8; 1024]dev_flags: u32kdrv: Typenuma_node: c_intvlan_filter_conf: rte_vlan_filter_confowner: rte_eth_dev_ownerrepresentor_id: u16reserved_64s: [u64; 4]reserved_ptrs: [*mut c_void; 4]

Implementations

impl rte_eth_dev_data[src]

pub fn promiscuous(&self) -> u8[src]

pub fn set_promiscuous(&mut self, val: u8)[src]

pub fn scattered_rx(&self) -> u8[src]

pub fn set_scattered_rx(&mut self, val: u8)[src]

pub fn all_multicast(&self) -> u8[src]

pub fn set_all_multicast(&mut self, val: u8)[src]

pub fn dev_started(&self) -> u8[src]

pub fn set_dev_started(&mut self, val: u8)[src]

pub fn lro(&self) -> u8[src]

pub fn set_lro(&mut self, val: u8)[src]

pub fn new_bitfield_1(
    promiscuous: u8,
    scattered_rx: u8,
    all_multicast: u8,
    dev_started: u8,
    lro: u8
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for rte_eth_dev_data[src]

impl Copy for rte_eth_dev_data[src]

impl Default for rte_eth_dev_data[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.