#[repr(C, align(64))]pub struct rte_eth_dev_data {Show 28 fields
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_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>,
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_void§tx_queues: *mut *mut c_void§nb_rx_queues: u16§nb_tx_queues: u16§sriov: rte_eth_dev_sriov§dev_private: *mut c_void§dev_link: rte_eth_link§dev_conf: rte_eth_conf§mtu: u16§min_rx_buf_size: u32§rx_mbuf_alloc_failed: u64§mac_addrs: *mut rte_ether_addr§mac_pool_sel: [u64; 128]§hash_mac_addrs: *mut rte_ether_addr§port_id: u16§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§rx_queue_state: [u8; 1024]§tx_queue_state: [u8; 1024]§dev_flags: u32§kdrv: Type§numa_node: c_int§vlan_filter_conf: rte_vlan_filter_conf§owner: rte_eth_dev_owner§representor_id: u16§reserved_64s: [u64; 4]§reserved_ptrs: [*mut c_void; 4]Implementations§
Source§impl rte_eth_dev_data
impl rte_eth_dev_data
pub fn promiscuous(&self) -> u8
pub fn set_promiscuous(&mut self, val: u8)
pub fn scattered_rx(&self) -> u8
pub fn set_scattered_rx(&mut self, val: u8)
pub fn all_multicast(&self) -> u8
pub fn set_all_multicast(&mut self, val: u8)
pub fn dev_started(&self) -> u8
pub fn set_dev_started(&mut self, val: u8)
pub fn lro(&self) -> u8
pub fn set_lro(&mut self, val: u8)
pub fn new_bitfield_1( promiscuous: u8, scattered_rx: u8, all_multicast: u8, dev_started: u8, lro: u8, ) -> __BindgenBitfieldUnit<[u8; 1]>
Trait Implementations§
Source§impl Clone for rte_eth_dev_data
impl Clone for rte_eth_dev_data
Source§fn clone(&self) -> rte_eth_dev_data
fn clone(&self) -> rte_eth_dev_data
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for rte_eth_dev_data
impl Default for rte_eth_dev_data
impl Copy for rte_eth_dev_data
Auto Trait Implementations§
impl Freeze for rte_eth_dev_data
impl RefUnwindSafe for rte_eth_dev_data
impl !Send for rte_eth_dev_data
impl !Sync for rte_eth_dev_data
impl Unpin for rte_eth_dev_data
impl UnwindSafe for rte_eth_dev_data
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more