diff options
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index e57e384b..367105c3 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -580,10 +580,11 @@ sub allowed_speed { sub get_offload_option { my ($dev, $option) = @_; my ($val); + my $ethtool_option = "$option-offload"; open(my $ethtool, '-|', "$ETHTOOL -k $dev 2>&1") or die "ethtool failed: $!\n"; while (<$ethtool>) { - next if ($_ !~ m/$option:/); + next if ($_ !~ m/$ethtool_option:/); chomp; $val = (split(/: /, $_))[1]; } |