mirror of
https://github.com/vishvananda/netlink.git
synced 2025-10-22 07:20:10 +08:00
enable rule statistic and time statistic for flower actions
This commit is contained in:

committed by
Alessandro Boch

parent
004274e828
commit
0ced838538
@@ -388,6 +388,11 @@ func parseTcStats2(data []byte) (*ClassStatistics, error) {
|
||||
return nil, fmt.Errorf("Failed to parse ClassStatistics.RateEst with: %v\n%s",
|
||||
err, hex.Dump(datum.Value))
|
||||
}
|
||||
case nl.TCA_STATS_BASIC_HW:
|
||||
if err := parseGnetStats(datum.Value, stats.BasicHw); err != nil {
|
||||
return nil, fmt.Errorf("Failed to parse ClassStatistics.BasicHw with: %v\n%s",
|
||||
err, hex.Dump(datum.Value))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user