From c0e2da885d9781917cf2c1c94583da72492395b5 Mon Sep 17 00:00:00 2001 From: Bandaru Viswanath Date: Sun, 15 Dec 2019 23:30:45 +0530 Subject: [PATCH 1/2] Support for static FDB Entries to allow MAC Move --- inc/saifdb.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/inc/saifdb.h b/inc/saifdb.h index 57824367e..b1b2a6947 100644 --- a/inc/saifdb.h +++ b/inc/saifdb.h @@ -178,6 +178,16 @@ typedef enum _sai_fdb_entry_attr_t */ SAI_FDB_ENTRY_ATTR_COUNTER_ID, + /** + * @brief Specifies whether a MAC move is allowed + * + * @type bool + * @flags CREATE_AND_SET + * @default false + * @validonly SAI_FDB_ENTRY_ATTR_TYPE == SAI_FDB_ENTRY_TYPE_STATIC + */ + SAI_FDB_ENTRY_ATTR_ALLOW_MAC_MOVE, + /** * @brief End of attributes */ From 902441aed49e04e1d3de7ec599d43a9c4db2afcb Mon Sep 17 00:00:00 2001 From: Bandaru Viswanath Date: Mon, 1 Jun 2020 15:54:24 +0530 Subject: [PATCH 2/2] Added additional clarification for the attribute Added additional clarification for the attribute based on community feedback --- inc/saifdb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/saifdb.h b/inc/saifdb.h index b1b2a6947..a52f4f3f1 100644 --- a/inc/saifdb.h +++ b/inc/saifdb.h @@ -180,6 +180,8 @@ typedef enum _sai_fdb_entry_attr_t /** * @brief Specifies whether a MAC move is allowed + * When MAC_MOVE is explicitly disabled for a static MAC entry via this + * attribute, the trap introduced in #696 would also not be generated. * * @type bool * @flags CREATE_AND_SET