nm-device: apply ethtool ring settings when activating a connection

System Internals / NetworkManager - Antonio Cardace [redhat.com] - 20 May 2020 08:55 EDT

nm-device now applies ethtool ring settings during stage 2 "device config" of the connection activation.

ring settings will be then restored (according to what the state was before the connection got activated on the device) when the connection is deactivated during the device cleanup.

One thing to be noted is that unset ring settings (in the profile) will not be touched at all by NetworkManager so that if the NIC driver sets some default values these will be preserved unless specifically overridden by the connection profile.

https://bugzilla.redhat.com/show_bug.cgi?id=1614700

2ce0e714b nm-device: apply ethtool ring settings when activating a connection
src/devices/nm-device.c | 131 +++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 123 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share