Page MenuHomeVyOS Platform

ethtool: crash configuring ring-buffer on NICs without ring-buffer support (XCP-ng vif)
Closed, ResolvedPublicBUG

Description

Committing an ethernet interface with ring-buffer set crashes when the driver doesn't report ring buffers — ethtool --json --show-ring is empty/errors on XCP-ng vif

vyos@vyos-cloudinit-test# comp commands

set interfaces ethernet eth3 ring-buffer rx '256'

[edit]
vyos@vyos-cloudinit-test# commit
[ interfaces ethernet eth3 ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/services/vyos-configd", line 146, in run_script
    script.verify(c)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 419, in verify
    verify_ring_buffer(ethernet, ethtool)
  File "/usr/libexec/vyos/conf_mode/interfaces_ethernet.py", line 239, in verify_ring_buffer
    max_rx = ethtool.get_ring_buffer_max('rx')
  File "/usr/lib/python3/dist-packages/vyos/ethtool.py", line 186, in get_ring_buffer_max
    return str(self._ring_buffer[0].get(f'{rx_tx}-max', None))
IndexError: list index out of range
[interfaces ethernet eth3] failed
Commit failed
[edit]

vyos@vyos-cloudinit-test# sudo ethtool --json --show-ring eth3
netlink error: Operation not supported
[ ]
[edit]
vyos@vyos-cloudinit-test#

Details

Version
1.5.0
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

natali-rs1985 changed the task status from Open to In progress.Jun 8 2026, 12:23 PM
natali-rs1985 claimed this task.
natali-rs1985 triaged this task as Normal priority.
natali-rs1985 changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.

Additional crash found in rolling (XCP-ng vif)

Знімок екрана 2026-06-08 о 18.34.27.png (1×1 px, 400 KB)

Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.