rte_eth_dev_data

Struct rte_eth_dev_data 

Source
#[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

Source

pub fn promiscuous(&self) -> u8

Source

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

Source

pub fn scattered_rx(&self) -> u8

Source

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

Source

pub fn all_multicast(&self) -> u8

Source

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

Source

pub fn dev_started(&self) -> u8

Source

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

Source

pub fn lro(&self) -> u8

Source

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

Source

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

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Default for rte_eth_dev_data

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for rte_eth_dev_data

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.