Class: Nl::Linux::Netdev::Notifications::DevChangeNtf

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

Overview

Notification about device configuration being changed.

Multicast group: mgmt.

Constant Summary collapse

TYPE =
4
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:



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

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:



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

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:



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

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

#xdp_zc_max_segs ⇒ Integer

max fragment count supported by ZC driver

Returns:

  • (Integer)

See Also:



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

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:



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

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