Enum network_packet::HardwareOffloadLayer2PacketType [−][src]
pub enum HardwareOffloadLayer2PacketType { Unknown, Ethernet(Option<HardwareOffloadCategorisedLayer2PacketType>), Other, }
Hardware offload layer 2 packet type.
If the packet is a tunneled packet, then this is known as the Outer Layer 2 packet type.
Must DPDK drivers do not categorise and return Unknown
, making this categorisation close to useless.
Variants
Unknown
Either:-
- Ignore this packet.
- HardwareOffload categorisation hasn't happened.
It seems possible that some DPDK drivers don't set RTE_PTYPE_L2_ETHER
even on ethernet packets.
Ethernet(Option<HardwareOffloadCategorisedLayer2PacketType>)
Ether packet; may be further categorised.
Most drivers, excluding Intel's, do not categorise further.
Other
Invalid or introduced after this code was written.
Trait Implementations
impl Debug for HardwareOffloadLayer2PacketType
[src]
impl Debug for HardwareOffloadLayer2PacketType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for HardwareOffloadLayer2PacketType
[src]
impl Copy for HardwareOffloadLayer2PacketType
impl Clone for HardwareOffloadLayer2PacketType
[src]
impl Clone for HardwareOffloadLayer2PacketType
fn clone(&self) -> HardwareOffloadLayer2PacketType
[src]
fn clone(&self) -> HardwareOffloadLayer2PacketType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Ord for HardwareOffloadLayer2PacketType
[src]
impl Ord for HardwareOffloadLayer2PacketType
fn cmp(&self, other: &HardwareOffloadLayer2PacketType) -> Ordering
[src]
fn cmp(&self, other: &HardwareOffloadLayer2PacketType) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for HardwareOffloadLayer2PacketType
[src]
impl PartialOrd for HardwareOffloadLayer2PacketType
fn partial_cmp(
&self,
other: &HardwareOffloadLayer2PacketType
) -> Option<Ordering>
[src]
fn partial_cmp(
&self,
other: &HardwareOffloadLayer2PacketType
) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn lt(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn le(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn gt(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn ge(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for HardwareOffloadLayer2PacketType
[src]
impl Eq for HardwareOffloadLayer2PacketType
impl PartialEq for HardwareOffloadLayer2PacketType
[src]
impl PartialEq for HardwareOffloadLayer2PacketType
fn eq(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn eq(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HardwareOffloadLayer2PacketType) -> bool
[src]
fn ne(&self, other: &HardwareOffloadLayer2PacketType) -> bool
This method tests for !=
.
impl Hash for HardwareOffloadLayer2PacketType
[src]
impl Hash for HardwareOffloadLayer2PacketType
Auto Trait Implementations
impl Send for HardwareOffloadLayer2PacketType
impl Send for HardwareOffloadLayer2PacketType
impl Sync for HardwareOffloadLayer2PacketType
impl Sync for HardwareOffloadLayer2PacketType