Skip to content

Commit a56c38e

Browse files
erohsikKishore Gummadidala
andauthored
Add a RIF attribute to specify if the corresponding My MAC entry should not be created.. (opencomputeproject#2021)
Signed-off-by: Kishore Gummadidala <[email protected]> Co-authored-by: Kishore Gummadidala <[email protected]>
1 parent 074e2e8 commit a56c38e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

inc/sairouterinterface.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,23 @@ typedef enum _sai_router_interface_attr_t
325325
*/
326326
SAI_ROUTER_INTERFACE_ATTR_LABEL,
327327

328+
/**
329+
* @brief Attribute used to specify external My MAC entry that will
330+
* be used in place of any implicit entry created during RIF processing
331+
* for this {port, vlan, MAC address}
332+
*
333+
* Note that the other matching entries (programmed via RIF and/or My MAC)
334+
* can allow the incoming packets to be considered for L3 forwarding.
335+
* There is no change in the behavior for packets egressing the RIF.
336+
*
337+
* @type sai_object_id_t
338+
* @flags CREATE_ONLY
339+
* @objects SAI_OBJECT_TYPE_MY_MAC
340+
* @allownull true
341+
* @default SAI_NULL_OBJECT_ID
342+
*/
343+
SAI_ROUTER_INTERFACE_ATTR_MY_MAC,
344+
328345
/**
329346
* @brief End of attributes
330347
*/

0 commit comments

Comments
 (0)