Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/testpmd: fix forwarding stats for Tx dropped
[ upstream commit c3fd1e6089cce14ad3f941ab5df0501e03b3356c ] There is an inconsistency at displaying Tx dropped value for per port forwarding stats and accumulated forwarding stats. While displaying per port TX-dropped value, it only takes 'ports_stats[pt_id].tx_dropped' into account, but for accumulated TX-dropped results it takes both 'ports_stats[pt_id].tx_dropped' & 'stats.oerrors' into account. To fix, make both per port and accumulated stats display 'tx_dropped' and 'stats.oerrors' (ports_stats[pt_id].tx_dropped + stats.oerrors). Fixes: 5332497 ("app/testpmd: display/clear forwarding stats on demand") Reported-by: Joshua Washington <joshwash@google.com> Signed-off-by: Ferruh Yigit <ferruh.yigit@amd.com> Acked-by: Huisong Li <lihuisong@huawei.com> Acked-by: Aman Singh <aman.deep.singh@intel.com>
- Loading branch information