-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
trex-console doesn't report xstats when len(values) doesn't match len(names) #1111
Comments
Civil
added a commit
to Civil/trex-core
that referenced
this issue
Feb 27, 2024
At least in DPDK 23.03 (and later) xstats_names might return more names than xstats_values and that is considered normal. See https://doc.dpdk.org/api-23.03/rte__ethdev_8h.html#a300d75b583c1f5acfe5b162a5d8c0ac1 In this case it seems appropriate to force names to be same length as values Fixes cisco-system-traffic-generator#1111
Civil
added a commit
to Civil/trex-core
that referenced
this issue
Mar 14, 2024
At least in DPDK 23.03 (and later) xstats_names might return more names than xstats_values and that is considered normal. See https://doc.dpdk.org/api-23.03/rte__ethdev_8h.html#a300d75b583c1f5acfe5b162a5d8c0ac1 In this case it seems appropriate to force names to be same length as values Fixes cisco-system-traffic-generator#1111
Civil
added a commit
to Civil/trex-core
that referenced
this issue
Mar 31, 2024
At least in DPDK 23.03 (and later) xstats_names might return more names than xstats_values and that is considered normal. See https://doc.dpdk.org/api-23.03/rte__ethdev_8h.html#a300d75b583c1f5acfe5b162a5d8c0ac1 In this case it seems appropriate to force names to be same length as values Fixes cisco-system-traffic-generator#1111
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In DPDK 23.03 (and later), it is possible that Length of xstats_name doesn't match lenth of xstats_values:
https://doc.dpdk.org/api-23.03/rte__ethdev_8h.html#a300d75b583c1f5acfe5b162a5d8c0ac1
This is exactly what happens in my case:
https://github.com/cisco-system-traffic-generator/trex-core/blob/master/scripts/automation/trex_control_plane/interactive/trex/common/stats/trex_port_stats.py#L226-L227
Simple workaround would be to do:
And that would make
stats -x
working again even if you combine multiple generations of connectx cards:The text was updated successfully, but these errors were encountered: