25#if !defined (__SAIWRED_H_)
639 _Out_ sai_object_id_t *wred_id,
640 _In_ sai_object_id_t switch_id,
641 _In_ uint32_t attr_count,
652 _In_ sai_object_id_t wred_id);
663 _In_ sai_object_id_t wred_id,
676 _In_ sai_object_id_t wred_id,
677 _In_ uint32_t attr_count,
sai_status_t(* sai_get_wred_attribute_fn)(_In_ sai_object_id_t wred_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
Get WRED profile attribute.
sai_status_t(* sai_set_wred_attribute_fn)(_In_ sai_object_id_t wred_id, _In_ const sai_attribute_t *attr)
Set attributes to WRED profile.
sai_status_t(* sai_remove_wred_fn)(_In_ sai_object_id_t wred_id)
Remove WRED Profile.
struct _sai_wred_api_t sai_wred_api_t
WRED methods table retrieved with sai_api_query()
_sai_ecn_mark_mode_t
Attribute data for SAI_WRED_ATTR_ECN_MARK_MODE.
enum _sai_ecn_mark_mode_t sai_ecn_mark_mode_t
Attribute data for SAI_WRED_ATTR_ECN_MARK_MODE.
sai_status_t(* sai_create_wred_fn)(_Out_ sai_object_id_t *wred_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
Create WRED Profile.
_sai_wred_attr_t
Enum defining WRED profile attributes.
enum _sai_wred_attr_t sai_wred_attr_t
Enum defining WRED profile attributes.
@ SAI_ECN_MARK_MODE_GREEN
@ SAI_ECN_MARK_MODE_YELLOW_RED
@ SAI_ECN_MARK_MODE_YELLOW
@ SAI_ECN_MARK_MODE_GREEN_YELLOW
@ SAI_ECN_MARK_MODE_GREEN_RED
@ SAI_WRED_ATTR_ECN_RED_MIN_THRESHOLD
Red minimum threshold for ECT traffic In absence of this attribute, red ECT traffic would use SAI_WRE...
@ SAI_WRED_ATTR_ECN_GREEN_MARK_PROBABILITY
Marking percentage 0 ~ 100 for green ECT traffic In absence of this attribute, green ECT traffic woul...
@ SAI_WRED_ATTR_ECN_YELLOW_MAX_THRESHOLD_64
Yellow maximum threshold for ECT traffic for large buffer size. In absence of this attribute,...
@ SAI_WRED_ATTR_ECN_COLOR_UNAWARE_MIN_THRESHOLD
Color unaware minimum threshold for ECT traffic.
@ SAI_WRED_ATTR_ECN_GREEN_MAX_THRESHOLD
Green maximum threshold for ECT traffic In absence of this attribute, green ECT traffic would use SAI...
@ SAI_WRED_ATTR_YELLOW_MAX_THRESHOLD_64
Yellow maximum threshold for large buffer size.
@ SAI_WRED_ATTR_ECN_COLOR_UNAWARE_MAX_THRESHOLD
Color unaware maximum threshold for ECT traffic.
@ SAI_WRED_ATTR_ECN_GREEN_MIN_THRESHOLD
Green minimum threshold bytes for ECT traffic. In absence of this attribute, green ECT traffic would ...
@ SAI_WRED_ATTR_ECN_MARK_MODE
ECN mark mode.
@ SAI_WRED_ATTR_GREEN_DROP_PROBABILITY
Percentage 0 ~ 100.
@ SAI_WRED_ATTR_YELLOW_MIN_THRESHOLD
Yellow minimum threshold.
@ SAI_WRED_ATTR_ECN_YELLOW_MIN_THRESHOLD_64
Yellow minimum threshold for ECT traffic for large buffer size. In absence of this attribute,...
@ SAI_WRED_ATTR_CUSTOM_RANGE_START
@ SAI_WRED_ATTR_YELLOW_DROP_PROBABILITY
Percentage 0 ~ 100.
@ SAI_WRED_ATTR_RED_MAX_THRESHOLD_64
Red maximum threshold for large buffer size.
@ SAI_WRED_ATTR_YELLOW_MAX_THRESHOLD
Yellow maximum threshold.
@ SAI_WRED_ATTR_RED_ENABLE
Red enable.
@ SAI_WRED_ATTR_ECN_RED_MARK_PROBABILITY
Marking percentage 0 ~ 100 for red ECT traffic In absence of this attribute, red ECT traffic would us...
@ SAI_WRED_ATTR_YELLOW_ENABLE
Yellow enable.
@ SAI_WRED_ATTR_ECN_RED_MIN_THRESHOLD_64
Red minimum threshold for ECT traffic for large buffer size. In absence of this attribute,...
@ SAI_WRED_ATTR_GREEN_ENABLE
Green enable.
@ SAI_WRED_ATTR_ECN_GREEN_MIN_THRESHOLD_64
Green minimum threshold bytes for ECT traffic for large buffer size. In absence of this attribute,...
@ SAI_WRED_ATTR_GREEN_MAX_THRESHOLD
Green maximum threshold.
@ SAI_WRED_ATTR_ECN_RED_MAX_THRESHOLD
Red maximum threshold for ECT traffic In absence of this attribute, red ECT traffic would use SAI_WRE...
@ SAI_WRED_ATTR_ECN_COLOR_UNAWARE_MIN_THRESHOLD_64
Color unaware minimum threshold for ECT traffic for large buffer size.
@ SAI_WRED_ATTR_GREEN_MAX_THRESHOLD_64
Green maximum threshold for large buffer size.
@ SAI_WRED_ATTR_GREEN_MIN_THRESHOLD
Green minimum threshold bytes.
@ SAI_WRED_ATTR_ECN_COLOR_UNAWARE_MARK_PROBABILITY
Marking percentage 0 ~ 100 for color unaware ECT traffic.
@ SAI_WRED_ATTR_ECN_COLOR_UNAWARE_MAX_THRESHOLD_64
Color unaware maximum threshold for ECT traffic for large buffer size.
@ SAI_WRED_ATTR_ECN_YELLOW_MARK_PROBABILITY
Marking percentage 0 ~ 100 for yellow ECT traffic In absence of this attribute, yellow ECT traffic wo...
@ SAI_WRED_ATTR_RED_MAX_THRESHOLD
Red maximum threshold.
@ SAI_WRED_ATTR_START
Start of attributes.
@ SAI_WRED_ATTR_RED_DROP_PROBABILITY
Percentage 0 ~ 100.
@ SAI_WRED_ATTR_ECN_RED_MAX_THRESHOLD_64
Red maximum threshold for ECT traffic for large buffer size In absence of this attribute,...
@ SAI_WRED_ATTR_ECN_GREEN_MAX_THRESHOLD_64
Green maximum threshold bytes for ECT traffic for large buffer size. In absence of this attribute,...
@ SAI_WRED_ATTR_WEIGHT
Weight 0 ~ 15.
@ SAI_WRED_ATTR_ECN_YELLOW_MAX_THRESHOLD
Yellow maximum threshold for ECT traffic In absence of this attribute, yellow ECT traffic would use S...
@ SAI_WRED_ATTR_ECN_YELLOW_MIN_THRESHOLD
Yellow minimum threshold for ECT traffic In absence of this attribute, yellow ECT traffic would use S...
@ SAI_WRED_ATTR_YELLOW_MIN_THRESHOLD_64
Yellow minimum threshold for large buffer size.
@ SAI_WRED_ATTR_RED_MIN_THRESHOLD_64
Red minimum threshold for large buffer size.
@ SAI_WRED_ATTR_END
End of attributes.
@ SAI_WRED_ATTR_RED_MIN_THRESHOLD
Red minimum threshold.
@ SAI_WRED_ATTR_GREEN_MIN_THRESHOLD_64
Green minimum threshold bytes for large buffer size.
@ SAI_WRED_ATTR_CUSTOM_RANGE_END
This module defines SAI portable types.
WRED methods table retrieved with sai_api_query()