diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-10 16:46:55 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-10 17:01:25 +0200 |
commit | 2abf6711e880463b9d9276b2fa9ea7b4ebcdc179 (patch) | |
tree | b9780e2a64c3fed4530eb49353b78968ee1e116f /src/conf_mode | |
parent | cc313b32ef26141c2c027e8543f78da1231cada2 (diff) | |
download | vyos-1x-2abf6711e880463b9d9276b2fa9ea7b4ebcdc179.tar.gz vyos-1x-2abf6711e880463b9d9276b2fa9ea7b4ebcdc179.zip |
ethernet: T3802: use only one implementation for get_driver_name()
Move the two implementations to get the driver name of a NIC from ethernet.py
and ethtool.py to only ethtool.py.
(cherry picked from commit 07840977834816b69fa3b366817d90f44b5dc7a7)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-ethernet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-ethernet.py b/src/conf_mode/interfaces-ethernet.py index 21a04f954..e7250fb49 100755 --- a/src/conf_mode/interfaces-ethernet.py +++ b/src/conf_mode/interfaces-ethernet.py @@ -126,7 +126,7 @@ def verify(ethernet): if not os.path.exists(f'/sys/class/net/{ifname}/queues/rx-0/rps_cpus'): raise ConfigError('Interface does not suport RPS!') - driver = EthernetIf(ifname).get_driver_name() + driver = ethtool.get_driver_name() # T3342 - Xen driver requires special treatment if driver == 'vif': if int(ethernet['mtu']) > 1500 and dict_search('offload.sg', ethernet) == None: |