diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-08-29 20:50:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 20:50:00 +0200 |
commit | e8eed64ae7416177904b5e97b9a36b0229470653 (patch) | |
tree | 297e82d2077671bf9c81dd4066ebb4dd2af5000a /python/vyos/ifconfig | |
parent | 2c4a468fcdb8cb197cce73a8cd52f1796cb640a5 (diff) | |
parent | 27b94505582fb4f4c0c9188e8cc2026700a5a3bd (diff) | |
download | vyos-1x-e8eed64ae7416177904b5e97b9a36b0229470653.tar.gz vyos-1x-e8eed64ae7416177904b5e97b9a36b0229470653.zip |
Merge pull request #1507 from c-po/t4653-offloading-equuleus
ethernet: T4653: bugfix copy-paste when processing NIC offloading
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/ethernet.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/ethernet.py b/python/vyos/ifconfig/ethernet.py index 4ae350634..cb1dcd277 100644 --- a/python/vyos/ifconfig/ethernet.py +++ b/python/vyos/ifconfig/ethernet.py @@ -230,7 +230,7 @@ class EthernetIf(Interface): enabled, fixed = self.ethtool.get_large_receive_offload() if enabled != state: if not fixed: - return self.set_interface('gro', 'on' if state else 'off') + return self.set_interface('lro', 'on' if state else 'off') else: print('Adapter does not support changing large-receive-offload settings!') return False @@ -267,7 +267,7 @@ class EthernetIf(Interface): enabled, fixed = self.ethtool.get_scatter_gather() if enabled != state: if not fixed: - return self.set_interface('gro', 'on' if state else 'off') + return self.set_interface('sg', 'on' if state else 'off') else: print('Adapter does not support changing scatter-gather settings!') return False @@ -287,7 +287,7 @@ class EthernetIf(Interface): enabled, fixed = self.ethtool.get_tcp_segmentation_offload() if enabled != state: if not fixed: - return self.set_interface('gro', 'on' if state else 'off') + return self.set_interface('tso', 'on' if state else 'off') else: print('Adapter does not support changing tcp-segmentation-offload settings!') return False @@ -353,5 +353,5 @@ class EthernetIf(Interface): for rx_tx, size in config['ring_buffer'].items(): self.set_ring_buffer(rx_tx, size) - # call base class first + # call base class last super().update(config) |