diff options
Diffstat (limited to 'vendor/github.com/ema/qdisc/get.go')
-rw-r--r-- | vendor/github.com/ema/qdisc/get.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/ema/qdisc/get.go b/vendor/github.com/ema/qdisc/get.go index 9191594..c83024c 100644 --- a/vendor/github.com/ema/qdisc/get.go +++ b/vendor/github.com/ema/qdisc/get.go | |||
@@ -86,6 +86,8 @@ type QdiscInfo struct { | |||
86 | GcFlows uint64 | 86 | GcFlows uint64 |
87 | Throttled uint64 | 87 | Throttled uint64 |
88 | FlowsPlimit uint64 | 88 | FlowsPlimit uint64 |
89 | Qlen uint32 | ||
90 | Backlog uint32 | ||
89 | } | 91 | } |
90 | 92 | ||
91 | func parseTCAStats(attr netlink.Attribute) TC_Stats { | 93 | func parseTCAStats(attr netlink.Attribute) TC_Stats { |
@@ -237,6 +239,8 @@ func parseMessage(msg netlink.Message) (QdiscInfo, error) { | |||
237 | // requeues only available in TCA_STATS2, not in TCA_STATS | 239 | // requeues only available in TCA_STATS2, not in TCA_STATS |
238 | m.Requeues = s2.Requeues | 240 | m.Requeues = s2.Requeues |
239 | m.Overlimits = s2.Overlimits | 241 | m.Overlimits = s2.Overlimits |
242 | m.Qlen = s2.Qlen | ||
243 | m.Backlog = s2.Backlog | ||
240 | case TCA_STATS: | 244 | case TCA_STATS: |
241 | // Legacy | 245 | // Legacy |
242 | s = parseTCAStats(attr) | 246 | s = parseTCAStats(attr) |
@@ -244,6 +248,8 @@ func parseMessage(msg netlink.Message) (QdiscInfo, error) { | |||
244 | m.Packets = s.Packets | 248 | m.Packets = s.Packets |
245 | m.Drops = s.Drops | 249 | m.Drops = s.Drops |
246 | m.Overlimits = s.Overlimits | 250 | m.Overlimits = s.Overlimits |
251 | m.Qlen = s.Qlen | ||
252 | m.Backlog = s.Backlog | ||
247 | default: | 253 | default: |
248 | // TODO: TCA_OPTIONS and TCA_XSTATS | 254 | // TODO: TCA_OPTIONS and TCA_XSTATS |
249 | } | 255 | } |