From b4ddb72299cc9e40d4b939dd132d7bda573098a8 Mon Sep 17 00:00:00 2001 From: Mobin Mohan Date: Fri, 9 Oct 2026 23:20:30 +0000 Subject: [PATCH] [switch] Add SAI_SWITCH_ATTR_MIRROR_QUEUE_INDEX attribute - Add SAI_SWITCH_ATTR_MIRROR_QUEUE_INDEX to set the queue of mirrored packets for all mirror sessions. The value is the SAI_QUEUE_ATTR_INDEX of the egress queue on the monitor port. - Default of 255 = disabled. When disabled, the queue of the mirrored frame is selected by the platform default behavior. - If both this attribute and SAI_SWITCH_ATTR_MIRROR_TC are set, the last set attribute takes precedence. Signed-off-by: Mobin Mohan --- inc/saiswitch.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/inc/saiswitch.h b/inc/saiswitch.h index bac19de4..2f30c02c 100644 --- a/inc/saiswitch.h +++ b/inc/saiswitch.h @@ -3788,6 +3788,25 @@ typedef enum _sai_switch_attr_t */ SAI_SWITCH_ATTR_BRIDGE_PORT_HW_PROTECTION_SWITCHOVER_NOTIFY, + /** + * @brief Set queue of mirrored packets + * + * This setting will apply to all mirror sessions. The value is the + * #SAI_QUEUE_ATTR_INDEX of the egress queue on the monitor port. + * + * Default of 255 = disabled. When this attribute is disabled, the + * queue of the mirrored frame will be selected by the platform + * default behavior. + * + * If both this attribute and #SAI_SWITCH_ATTR_MIRROR_TC are set, the + * last set attribute takes precedence. + * + * @type sai_uint8_t + * @flags CREATE_AND_SET + * @default 255 + */ + SAI_SWITCH_ATTR_MIRROR_QUEUE_INDEX, + /** * @brief End of attributes */