Class: Nl::Linux::Netdev::Notifications::DevAddNtf

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

Overview

Notification about device appearing.

Multicast group: mgmt.

Constant Summary collapse

TYPE =
2
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Dev
ATTRIBUTES =
Ractor.make_shareable(%i[ifindex xdp_features xdp_zc_max_segs xdp_rx_metadata_features xsk_features])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#ifindex ⇒ Integer

netdev ifindex

Returns:

  • (Integer)

See Also:



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

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

#xdp_features ⇒ Integer

Bitmask of enabled xdp-features.

Known flags are defined in Flags::XdpAct.

Returns:

  • (Integer)

See Also:



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

def xdp_features; attributes[:"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:



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

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

#xdp_zc_max_segs ⇒ Integer

max fragment count supported by ZC driver

Returns:

  • (Integer)

See Also:



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

def xdp_zc_max_segs; attributes[:"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:



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

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