Class: Nl::Linux::Netdev::AttributeSets::Dev
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Netdev::AttributeSets::Dev
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#ifindex ⇒ Integer
netdev ifindex.
-
#xdp_features ⇒ Integer
Bitmask of enabled xdp-features.
-
#xdp_rx_metadata_features ⇒ Integer
Bitmask of supported XDP receive metadata features.
-
#xdp_zc_max_segs ⇒ Integer
max fragment count supported by ZC driver.
-
#xsk_features ⇒ Integer
Bitmask of enabled AF_XDP features.
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.
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.
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
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.
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.
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
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.
182 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 182 def xsk_features; self[:"xsk_features"]&.value; end |