Class: Nl::Linux::Tc::Structs::TcSfqQopt
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcSfqQopt
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
-
#divisor ⇒ Integer
Hash divisor.
-
#flows ⇒ Integer
Maximal number of flows.
-
#limit ⇒ Integer
Maximal packets in queue.
-
#perturb_period ⇒ Integer
Period of hash perturbation.
-
#quantum ⇒ Integer
Bytes per round allocated to flow.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#divisor ⇒ Integer
Hash divisor
1008 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1008 MEMBERS = Ractor.make_shareable({quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), perturb_period: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), limit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), divisor: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#flows ⇒ Integer
Maximal number of flows
1008 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1008 MEMBERS = Ractor.make_shareable({quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), perturb_period: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), limit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), divisor: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#limit ⇒ Integer
Maximal packets in queue
1008 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1008 MEMBERS = Ractor.make_shareable({quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), perturb_period: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), limit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), divisor: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#perturb_period ⇒ Integer
Period of hash perturbation
1008 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1008 MEMBERS = Ractor.make_shareable({quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), perturb_period: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), limit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), divisor: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#quantum ⇒ Integer
Bytes per round allocated to flow
1008 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1008 MEMBERS = Ractor.make_shareable({quantum: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), perturb_period: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::S32, check: nil), limit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), divisor: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), flows: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
1014 1015 1016 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1014 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Instance Method Details
#encode(encoder) ⇒ void
This method returns an undefined value.
Encodes the struct.
1022 1023 1024 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1022 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |