summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack/nic.go
diff options
context:
space:
mode:
authorSam Balana <sbalana@google.com>2020-11-24 14:20:15 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-24 14:22:03 -0800
commitf90ab60a8a5ce9663a878c7cabcc4ad66922e265 (patch)
tree8f1de88305c0f8fdf4cd70a9479adbee42f7ccd8 /pkg/tcpip/stack/nic.go
parentd492b21319676bc9a9f97b9633b3be387c0b60a5 (diff)
Track number of packets queued to Failed neighbors
Add a NIC-specific neighbor table statistic so we can determine how many packets have been queued to Failed neighbors, indicating an unhealthy local network. This change assists us to debug in-field issues where subsequent traffic to a neighbor fails. Fixes #4819 PiperOrigin-RevId: 344131119
Diffstat (limited to 'pkg/tcpip/stack/nic.go')
-rw-r--r--pkg/tcpip/stack/nic.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/tcpip/stack/nic.go b/pkg/tcpip/stack/nic.go
index 3e6ceff28..43696ba14 100644
--- a/pkg/tcpip/stack/nic.go
+++ b/pkg/tcpip/stack/nic.go
@@ -60,12 +60,14 @@ type NIC struct {
}
}
-// NICStats includes transmitted and received stats.
+// NICStats hold statistics for a NIC.
type NICStats struct {
Tx DirectionStats
Rx DirectionStats
DisabledRx DirectionStats
+
+ Neighbor NeighborStats
}
func makeNICStats() NICStats {