Skip to main content

rte_eth_dev_info

Struct rte_eth_dev_info 

Source
#[repr(C)]
pub struct rte_eth_dev_info {
Show 32 fields pub device: *mut c_void, pub driver_name: *const c_char, pub if_index: c_uint, pub min_mtu: u16, pub max_mtu: u16, pub dev_flags: *const u32, pub min_rx_bufsize: u32, pub max_rx_pktlen: u32, pub max_lro_pkt_size: u32, pub max_rx_queues: u16, pub max_tx_queues: u16, pub max_mac_addrs: u32, pub max_vfs: u16, pub max_vmdq_pools: u16, pub rx_offload_capa: u64, pub tx_offload_capa: u64, pub rx_queue_offload_capa: u64, pub tx_queue_offload_capa: u64, pub reta_size: u16, pub hash_key_size: u8, pub flow_type_rss_offloads: u64, pub default_rxconf: rte_eth_rxconf, pub default_txconf: rte_eth_txconf, pub vmdq_queue_base: u16, pub vmdq_queue_num: u16, pub vmdq_pool_base: u16, pub rx_desc_lim: rte_eth_desc_lim, pub tx_desc_lim: rte_eth_desc_lim, pub speed_capa: u32, pub nb_rx_queues: u16, pub nb_tx_queues: u16, pub dev_capa: u64,
}
Expand description

Ethernet device info

Fields§

§device: *mut c_void§driver_name: *const c_char§if_index: c_uint§min_mtu: u16§max_mtu: u16§dev_flags: *const u32§min_rx_bufsize: u32§max_rx_pktlen: u32§max_lro_pkt_size: u32§max_rx_queues: u16§max_tx_queues: u16§max_mac_addrs: u32§max_vfs: u16§max_vmdq_pools: u16§rx_offload_capa: u64§tx_offload_capa: u64§rx_queue_offload_capa: u64§tx_queue_offload_capa: u64§reta_size: u16§hash_key_size: u8§flow_type_rss_offloads: u64§default_rxconf: rte_eth_rxconf§default_txconf: rte_eth_txconf§vmdq_queue_base: u16§vmdq_queue_num: u16§vmdq_pool_base: u16§rx_desc_lim: rte_eth_desc_lim§tx_desc_lim: rte_eth_desc_lim§speed_capa: u32§nb_rx_queues: u16§nb_tx_queues: u16§dev_capa: u64

Trait Implementations§

Source§

impl Debug for rte_eth_dev_info

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for rte_eth_dev_info

Source§

fn default() -> Self

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

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> 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, 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.