diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-03-08 11:21:14 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2022-04-13 10:08:40 +0300 |
commit | d7f42a7ac3761fe4d1269e686193f6c68b30736e (patch) | |
tree | 27cd67939537b7b0717adb9c9a38092f95beccbf /include/odp | |
parent | ba0308ba59be3fca30e3ffb0dcfa0cf181c23340 (diff) |
api: tm: split tm queue threshold capability into byte and packet modes
Split odp_tm_capabilities_t.tm_queue_threshold capability. This enables
an implementation to support only byte or packet mode, and they don't have
to be supported simultaneously.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Diffstat (limited to 'include/odp')
-rw-r--r-- | include/odp/api/spec/traffic_mngr.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/odp/api/spec/traffic_mngr.h b/include/odp/api/spec/traffic_mngr.h index 75d785b3c..3b7b05d4c 100644 --- a/include/odp/api/spec/traffic_mngr.h +++ b/include/odp/api/spec/traffic_mngr.h @@ -510,11 +510,18 @@ typedef struct { /** TM queue statistics counter capabilities */ odp_tm_queue_stats_capability_t queue_stats; - /** tm_queue_threshold indicates support for threshold profile on a - * TM queue. When TRUE, users can set/clear/update threshold profile - * on a TM queue. When false none of it is supported. - */ - odp_bool_t tm_queue_threshold; + /** TM queue threshold profile support */ + struct { + /** Threshold given as bytes */ + uint8_t byte : 1; + + /** Threshold given as packets */ + uint8_t packet : 1; + + /** Threshold given as bytes and packets simultaneously */ + uint8_t byte_and_packet : 1; + + } tm_queue_threshold; /** tm_queue_query_flags indicates supported types of TM queue query. * Types of TM queue query are same as query_flags that are passed to |