Skip to content

Commit

Permalink
Add bnxt interface to netlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Dec 12, 2023
1 parent 22b1ed8 commit 20ca5fb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion net.pl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

my $scriptname = "$0 @ARGV";

my @allifaces = qw(em igc ix ixl);
my @allifaces = qw(em igc ix ixl bnxt);
my @allmodifymodes = qw(nolro none nopf notso);
my @allpseudos = qw(bridge none veb vlan);
my @allsetupmodes = (qw(build install upgrade sysupgrade keep kernel reboot
Expand Down
10 changes: 6 additions & 4 deletions netlink-html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,12 @@ sub html_hier_test_row_util {
my $title = " title=\"$value $unit\"";
my $class = " class=\"status $status\"";
my %linerates = (
"iface-em" => 10 ** 9,
"iface-igc" => 2.5 * 10 ** 9,
"iface-ix" => 10 * 10 ** 9,
"iface-ixl" => 10 * 10 ** 9);
"iface-em" => 10 ** 9,
"iface-igc" => 2.5 * 10 ** 9,
"iface-ix" => 10 * 10 ** 9,
"iface-ixl" => 10 * 10 ** 9,
"iface-bnxt" => 10 * 10 ** 9,
);
my $linerate = $linerates{$iface} || 10 ** 9;
my $rate = $value / $linerate;
my $style = sprintf(
Expand Down
2 changes: 1 addition & 1 deletion netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use lib dirname($0);
use Netstat;

my @allifaces = qw(em igc ix ixl);
my @allifaces = qw(em igc ix ixl bnxt);
my @allmodifymodes = qw(nolro nopf notso);
my @allpseudos = qw(bridge none veb vlan);
my @alltestmodes = sort qw(all fragment icmp tcp udp splice);
Expand Down

0 comments on commit 20ca5fb

Please sign in to comment.