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

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.

Ether packet; may be further categorised.

Most drivers, excluding Intel's, do not categorise further.

Invalid or introduced after this code was written.

Trait Implementations

impl Debug for HardwareOffloadLayer2PacketType
[src]

Formats the value using the given formatter. Read more

impl Copy for HardwareOffloadLayer2PacketType
[src]

impl Clone for HardwareOffloadLayer2PacketType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Ord for HardwareOffloadLayer2PacketType
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for HardwareOffloadLayer2PacketType
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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 PartialEq for HardwareOffloadLayer2PacketType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for HardwareOffloadLayer2PacketType
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations