mirror of
https://github.com/openvswitch/ovs
synced 2025-09-04 16:25:17 +00:00
dpif/stats: Add miniflow extract opt hits counter
This commit adds a new counter to be displayed to the user when requesting datapath packet statistics. It counts the number of packets that are parsed and a miniflow built up from it by the optimized miniflow extract parsers. The ovs-appctl command "dpif-netdev/pmd-perf-show" now has an extra entry indicating if the optimized MFEX was hit: - MFEX Opt hits: 6786432 (100.0 %) Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Ian Stokes <ian.stokes@intel.com>
This commit is contained in:
committed by
Ian Stokes
parent
50be6715c0
commit
dc39608d2a
@@ -247,6 +247,7 @@ pmd_perf_format_overall_stats(struct ds *str, struct pmd_perf_stats *s,
|
||||
" Rx packets: %12"PRIu64" (%.0f Kpps, %.0f cycles/pkt)\n"
|
||||
" Datapath passes: %12"PRIu64" (%.2f passes/pkt)\n"
|
||||
" - PHWOL hits: %12"PRIu64" (%5.1f %%)\n"
|
||||
" - MFEX Opt hits: %12"PRIu64" (%5.1f %%)\n"
|
||||
" - EMC hits: %12"PRIu64" (%5.1f %%)\n"
|
||||
" - SMC hits: %12"PRIu64" (%5.1f %%)\n"
|
||||
" - Megaflow hits: %12"PRIu64" (%5.1f %%, %.2f "
|
||||
@@ -258,6 +259,8 @@ pmd_perf_format_overall_stats(struct ds *str, struct pmd_perf_stats *s,
|
||||
passes, rx_packets ? 1.0 * passes / rx_packets : 0,
|
||||
stats[PMD_STAT_PHWOL_HIT],
|
||||
100.0 * stats[PMD_STAT_PHWOL_HIT] / passes,
|
||||
stats[PMD_STAT_MFEX_OPT_HIT],
|
||||
100.0 * stats[PMD_STAT_MFEX_OPT_HIT] / passes,
|
||||
stats[PMD_STAT_EXACT_HIT],
|
||||
100.0 * stats[PMD_STAT_EXACT_HIT] / passes,
|
||||
stats[PMD_STAT_SMC_HIT],
|
||||
|
Reference in New Issue
Block a user