Class: Nl::Linux::Ethtool::AttributeSets::PauseStat
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Ethtool::AttributeSets::PauseStat
- Defined in:
- nl-linux/generated/nl/linux/ethtool.rb
Defined Under Namespace
Classes: Attribute, Pad, RxFrames, TxFrames, TxPauseStormEvents
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
- #rx_frames ⇒ Integer
- #tx_frames ⇒ Integer
-
#tx_pause_storm_events ⇒ Integer
TX pause storm event count.
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.
2369 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2369 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
2375 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2375 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#rx_frames ⇒ Integer
2357 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2357 def rx_frames; self[:"rx_frames"]&.value; end |
#tx_frames ⇒ Integer
2353 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2353 def tx_frames; self[:"tx_frames"]&.value; end |
#tx_pause_storm_events ⇒ Integer
TX pause storm event count. Increments each time device detects that its pause assertion condition has been true for too long for normal operation. As a result, the device has temporarily disabled its own Pause TX function to protect the network from itself. This counter should never increment under normal overload conditions; it indicates catastrophic failure like an OS crash. The rate of incrementing is implementation specific.
2362 |
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2362 def tx_pause_storm_events; self[:"tx_pause_storm_events"]&.value; end |