* @return
* 0 upon success, error code otherwise
*/
-__rte_experimental
int
rte_meter_trtcm_rfc4115_profile_config(
struct rte_meter_trtcm_rfc4115_profile *p,
* @return
* 0 upon success, error code otherwise
*/
-__rte_experimental
int
rte_meter_trtcm_rfc4115_config(struct rte_meter_trtcm_rfc4115 *m,
struct rte_meter_trtcm_rfc4115_profile *p);
* @return
* Color assigned to the current IP packet
*/
-__rte_experimental
static inline enum rte_color
rte_meter_trtcm_rfc4115_color_blind_check(
struct rte_meter_trtcm_rfc4115 *m,
* @return
* Color assigned to the current IP packet
*/
-__rte_experimental
static inline enum rte_color
rte_meter_trtcm_rfc4115_color_aware_check(
struct rte_meter_trtcm_rfc4115 *m,
return RTE_COLOR_GREEN;
}
-__rte_experimental
static inline enum rte_color
rte_meter_trtcm_rfc4115_color_blind_check(
struct rte_meter_trtcm_rfc4115 *m,
return RTE_COLOR_RED;
}
-__rte_experimental
static inline enum rte_color
rte_meter_trtcm_rfc4115_color_aware_check(
struct rte_meter_trtcm_rfc4115 *m,