Skip to content

Commit 834c83a

Browse files
committed
Support Qos Map on Router Interface
Signed-off-by: Komal Shah <kshah2@marvell.com>
1 parent 0bed1a5 commit 834c83a

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

inc/sairouterinterface.h

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,94 @@ typedef enum _sai_router_interface_attr_t
342342
*/
343343
SAI_ROUTER_INTERFACE_ATTR_MY_MAC,
344344

345+
/**
346+
* @brief Enable DSCP -> TC MAP on Router Interface.
347+
*
348+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
349+
* To enable/disable trust DSCP, map ID should be added/removed on Router Interface.
350+
* Default no map.
351+
*
352+
* @type sai_object_id_t
353+
* @flags CREATE_AND_SET
354+
* @objects SAI_OBJECT_TYPE_QOS_MAP
355+
* @allownull true
356+
* @default SAI_NULL_OBJECT_ID
357+
*/
358+
SAI_ROUTER_INTERFACE_ATTR_QOS_DSCP_TO_TC_MAP,
359+
360+
/**
361+
* @brief Enable DSCP -> COLOR MAP on Router Interface.
362+
*
363+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
364+
* To enable/disable trust DSCP, map ID should be added/removed on Router Interface.
365+
* Default no map.
366+
*
367+
* @type sai_object_id_t
368+
* @flags CREATE_AND_SET
369+
* @objects SAI_OBJECT_TYPE_QOS_MAP
370+
* @allownull true
371+
* @default SAI_NULL_OBJECT_ID
372+
*/
373+
SAI_ROUTER_INTERFACE_ATTR_QOS_DSCP_TO_COLOR_MAP,
374+
375+
/**
376+
* @brief Enable DOT1P -> TC MAP on Router Interface.
377+
*
378+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
379+
* To enable/disable trust Dot1p, map ID should be added/removed on Router Interface.
380+
* Default no map.
381+
*
382+
* @type sai_object_id_t
383+
* @flags CREATE_AND_SET
384+
* @objects SAI_OBJECT_TYPE_QOS_MAP
385+
* @allownull true
386+
* @default SAI_NULL_OBJECT_ID
387+
*/
388+
SAI_ROUTER_INTERFACE_ATTR_QOS_DOT1P_TO_TC_MAP,
389+
390+
/**
391+
* @brief Enable DOT1P -> COLOR MAP on Router Interface.
392+
*
393+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
394+
* To enable/disable trust Dot1p, map ID should be added/removed on Router Interface.
395+
* Default no map.
396+
*
397+
* @type sai_object_id_t
398+
* @flags CREATE_AND_SET
399+
* @objects SAI_OBJECT_TYPE_QOS_MAP
400+
* @allownull true
401+
* @default SAI_NULL_OBJECT_ID
402+
*/
403+
SAI_ROUTER_INTERFACE_ATTR_QOS_DOT1P_TO_COLOR_MAP,
404+
405+
/**
406+
* @brief Enable TC AND COLOR -> DSCP MAP on Router Interface.
407+
*
408+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
409+
* Default no map.
410+
*
411+
* @type sai_object_id_t
412+
* @flags CREATE_AND_SET
413+
* @objects SAI_OBJECT_TYPE_QOS_MAP
414+
* @allownull true
415+
* @default SAI_NULL_OBJECT_ID
416+
*/
417+
SAI_ROUTER_INTERFACE_ATTR_QOS_TC_AND_COLOR_TO_DSCP_MAP,
418+
419+
/**
420+
* @brief Enable TC AND COLOR -> DOT1P MAP on Router Interface.
421+
*
422+
* Map id = #SAI_NULL_OBJECT_ID to disable map on Router Interface.
423+
* Default no map.
424+
*
425+
* @type sai_object_id_t
426+
* @flags CREATE_AND_SET
427+
* @objects SAI_OBJECT_TYPE_QOS_MAP
428+
* @allownull true
429+
* @default SAI_NULL_OBJECT_ID
430+
*/
431+
SAI_ROUTER_INTERFACE_ATTR_QOS_TC_AND_COLOR_TO_DOT1P_MAP,
432+
345433
/**
346434
* @brief End of attributes
347435
*/

0 commit comments

Comments
 (0)