Page MenuHomeVyOS Platform

ethernet ring-buffer can be set with an invalid value
Closed, ResolvedPublicFEATURE REQUEST

Description

Configuring the IGB ring-buffer size on an APU4 board does not support values > 4096.

A value of 8192 can be set which throws an error, but the commit itself is accepted. We now have an inconsistent system.

ethtool -g eth3
Ring parameters for eth3:
Pre-set maximums:
RX:             4096
RX Mini:        0
RX Jumbo:       0
TX:             4096
Current hardware settings:
RX:             256
RX Mini:        0
RX Jumbo:       0
TX:             256
vyos@vyos# set interfaces ethernet eth2 ring-buffer rx 8192
[edit]
vyos@vyos# commit
[ interfaces ethernet eth2 ]
could not set "rx" ring-buffer for eth2

besides this error message the CLI tells us that the commit went through.

ethernet eth2 {
    ring-buffer {
        rx 8192
    }
}
vyos@vyos# sudo ethtool -g eth2
Ring parameters for eth2:
Pre-set maximums:
RX:             4096
RX Mini:        0
RX Jumbo:       0
TX:             4096
Current hardware settings:
RX:             4096
RX Mini:        0
RX Jumbo:       0
TX:             256

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

c-po triaged this task as Normal priority.
c-po created this task.
c-po changed the task status from Open to In progress.Sun, Feb 21, 4:37 PM
c-po claimed this task.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po added a project: VyOS 1.4 Sagitta.
c-po added a subscriber: Dmitry.