enable rule statistic and time statistic for flower actions

This commit is contained in:
liuhao.0912
2023-07-27 14:37:55 +08:00
committed by Alessandro Boch
parent 004274e828
commit 0ced838538
6 changed files with 128 additions and 28 deletions

View File

@@ -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))
}
}
}