-
Notifications
You must be signed in to change notification settings - Fork 135
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
[PATCH v6] api: tm: add queue specific statistics counters #1305
Conversation
This probably needs to be harmonized with the statistics proposed in PR 1237. Maybe the statistics to be enabled should be configurable so that they do not need to be tracked when not needed. |
|
||
/** Number of packets discarded due to other reasons (e.g. aging) than | ||
* errors. */ | ||
uint64_t discards; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discarded octets counter will be added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in V4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
include/odp/api/spec/traffic_mngr.h
Outdated
* @param odp_tm Odp_tm is used to identify the TM system into which this | ||
* odp_tm_node object is created. | ||
* @param tm Handle of the TM system into which this odp_tm_node object is | ||
* created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original text has copy-paste error from create call - this is lookup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in V5
include/odp/api/spec/traffic_mngr.h
Outdated
|
||
/** Number of packets discarded due to other reasons (e.g. aging) than | ||
* errors. */ | ||
uint64_t discard_packets; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be simply "discards" as in other APIs. If other APIs add discard_octets later, we have the same logic in all APIs (discards + discard_octets)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in V5
uint64_t discard_packets; | ||
|
||
/** Number of packets which transmission errors. */ | ||
uint64_t errors; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type: ... with ....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in V5
Fix typos and style issues and make variable naming more consistent in the traffic manager API documentation. Signed-off-by: Matias Elo <[email protected]> Reviewed-by: Petri Savolainen <[email protected]> Reviewed-by: Nithin Dabilpuram <[email protected]>
Add traffic manager queue specific statistics counters (odp_tm_queue_stats_t) and matching capabilities (odp_tm_queue_stats_capability_t). Statistics counters can be read with odp_tm_queue_stats() function. Signed-off-by: Matias Elo <[email protected]> Reviewed-by: Petri Savolainen <[email protected]> Reviewed-by: Nithin Dabilpuram <[email protected]>
Add implementation for the new odp_tm_queue_stats() function. Signed-off-by: Matias Elo <[email protected]> Reviewed-by: Petri Savolainen <[email protected]>
Add validation test for the new TM queue statistics APIs. Signed-off-by: Matias Elo <[email protected]> Reviewed-by: Petri Savolainen <[email protected]>
Add traffic manager queue specific statistics counters
(odp_tm_queue_stats_t) and matching capabilities
(odp_tm_stats_capability_t). Statistics counters can be reset with
odp_tm_queue_stats_reset() function and read with odp_tm_queue_stats().
V2:
odp_tm_queue_stats_reset()
V3:
odp_tm_stats_capability_t
->odp_tm_queue_stats_capability_t
V4:
odp_tm_queue_stats_t.discard_octets
andodp_tm_queue_stats_t.discard_packets
V5:
odp_tm_queue_stats_t.discard_packets
toodp_tm_queue_stats_t.discards