Class: Nl::Linux::Netdev::AttributeSets::Dev

Inherits:
AttributeSet show all
Defined in:
nl-linux/generated/nl/linux/netdev.rb

Defined Under Namespace

Classes: Attribute, Ifindex, Pad, XdpFeatures, XdpRxMetadataFeatures, XdpZcMaxSegs, XskFeatures

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



189
# File 'nl-linux/generated/nl/linux/netdev.rb', line 189

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



195
# File 'nl-linux/generated/nl/linux/netdev.rb', line 195

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#ifindex ⇒ Integer

netdev ifindex

Returns:

  • (Integer)

See Also:



156
# File 'nl-linux/generated/nl/linux/netdev.rb', line 156

def ifindex; self[:"ifindex"]&.value; end

#xdp_features ⇒ Integer

Bitmask of enabled xdp-features.

Known flags are defined in Flags::XdpAct.

Returns:

  • (Integer)

See Also:



163
# File 'nl-linux/generated/nl/linux/netdev.rb', line 163

def xdp_features; self[:"xdp_features"]&.value; end

#xdp_rx_metadata_features ⇒ Integer

Bitmask of supported XDP receive metadata features. See Documentation/networking/xdp-rx-metadata.rst for more details.

Known flags are defined in Flags::XdpRxMetadata.

Returns:

  • (Integer)

See Also:



175
# File 'nl-linux/generated/nl/linux/netdev.rb', line 175

def ; self[:"xdp_rx_metadata_features"]&.value; end

#xdp_zc_max_segs ⇒ Integer

max fragment count supported by ZC driver

Returns:

  • (Integer)

See Also:



168
# File 'nl-linux/generated/nl/linux/netdev.rb', line 168

def xdp_zc_max_segs; self[:"xdp_zc_max_segs"]&.value; end

#xsk_features ⇒ Integer

Bitmask of enabled AF_XDP features.

Known flags are defined in Flags::XskFlags.

Returns:

  • (Integer)

See Also:



182
# File 'nl-linux/generated/nl/linux/netdev.rb', line 182

def xsk_features; self[:"xsk_features"]&.value; end