Class: Nl::Linux::Ethtool::AttributeSets::FecHist

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

Defined Under Namespace

Classes: Attribute, BinHigh, BinLow, BinVal, BinValPerLane, Pad

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:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#bin_high ⇒ Integer

High bound of FEC bin (inclusive)

Returns:

  • (Integer)

See Also:



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

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

#bin_low ⇒ Integer

Low bound of FEC bin (inclusive)

Returns:

  • (Integer)

See Also:



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

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

#bin_val ⇒ Integer

Error count in the bin (optional if per-lane values exist)

Returns:

  • (Integer)

See Also:



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

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

#bin_val_per_lane ⇒ Array<Integer>

An array of per-lane error counters in the bin (optional)

Returns:

  • (Array<Integer>)

See Also:



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

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