Class: Rethtool::RingSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/rethtool/ring_settings.rb

Instance Method Summary collapse

Constructor Details

#initialize(interface) ⇒ RingSettings

Returns a new instance of RingSettings.



5
6
7
8
9
10
# File 'lib/rethtool/ring_settings.rb', line 5

def initialize(interface)
	@interface = interface
	cmd = Rethtool::EthtoolCmdRing.new
	cmd.cmd = Rethtool::ETHTOOL_CMD_GRINGPARAM
	@data = Rethtool.ioctl(interface, cmd)
end

Instance Method Details

#rx_jumbo_max_pendingObject



20
21
22
# File 'lib/rethtool/ring_settings.rb', line 20

def rx_jumbo_max_pending
	@data.rx_jumbo_max_pending
end

#rx_jumbo_pendingObject



36
37
38
# File 'lib/rethtool/ring_settings.rb', line 36

def rx_jumbo_pending
	@data.rx_jumbo_pending
end

#rx_jumbo_pending=(value) ⇒ Object



52
53
54
# File 'lib/rethtool/ring_settings.rb', line 52

def rx_jumbo_pending=(value)
	set(:rx_jumbo_pending, value)
end

#rx_max_pendingObject



12
13
14
# File 'lib/rethtool/ring_settings.rb', line 12

def rx_max_pending
	@data.rx_max_pending
end

#rx_mini_max_pendingObject



16
17
18
# File 'lib/rethtool/ring_settings.rb', line 16

def rx_mini_max_pending
	@data.rx_mini_max_pending
end

#rx_mini_pendingObject



32
33
34
# File 'lib/rethtool/ring_settings.rb', line 32

def rx_mini_pending
	@data.rx_mini_pending
end

#rx_mini_pending=(value) ⇒ Object



48
49
50
# File 'lib/rethtool/ring_settings.rb', line 48

def rx_mini_pending=(value)
	set(:rx_mini_pending, value)
end

#rx_pendingObject



28
29
30
# File 'lib/rethtool/ring_settings.rb', line 28

def rx_pending
	@data.rx_pending
end

#rx_pending=(value) ⇒ Object



44
45
46
# File 'lib/rethtool/ring_settings.rb', line 44

def rx_pending=(value)
	set(:rx_pending, value)
end

#tx_max_pendingObject



24
25
26
# File 'lib/rethtool/ring_settings.rb', line 24

def tx_max_pending
	@data.tx_max_pending
end

#tx_pendingObject



40
41
42
# File 'lib/rethtool/ring_settings.rb', line 40

def tx_pending
	@data.tx_pending
end

#tx_pending=(value) ⇒ Object



56
57
58
# File 'lib/rethtool/ring_settings.rb', line 56

def tx_pending=(value)
	set(:tx_pending, value)
end