Class: Nl::Linux::Ethtool::AttributeSets::PauseStat

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Defined Under Namespace

Classes: Attribute, Pad, RxFrames, TxFrames, TxPauseStormEvents

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:



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.

Parameters:

  • type (Integer)

Returns:



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

Returns:

  • (Integer)

See Also:



2357
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2357

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

#tx_frames ⇒ Integer

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



2362
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 2362

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