Skip to content

Commit

Permalink
Merge branch 'main' into chore/ct-direction
Browse files Browse the repository at this point in the history
  • Loading branch information
SRodi authored Nov 13, 2024
2 parents 68bd043 + e7f81ed commit 0655c01
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/plugin/linuxutil/ethtool_stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ func (er *EthtoolReader) readInterfaceStats() error {
}

for _, i := range ifaces {
// exclude loopback interface and bridge network interface
if strings.Contains(i.Name, "lo") || strings.Contains(i.Name, "cbr0") {
// exclude lo (loopback interface), cbr0 (bridge network interface), lxc (Linux containers interface), and azv (virtual interface)
if strings.Contains(i.Name, "lo") ||
strings.Contains(i.Name, "cbr0") ||
strings.Contains(i.Name, "lxc") ||
strings.Contains(i.Name, "azv") {
continue
}

Expand Down

0 comments on commit 0655c01

Please sign in to comment.