Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions inc/saimacsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ typedef enum _sai_macsec_cipher_suite_t
SAI_MACSEC_CIPHER_SUITE_GCM_AES_XPN_256
} sai_macsec_cipher_suite_t;

/**
* @brief Max number of secure associations for each secure channel
*
* An implementation may support either two or four associations
* depending on whether it stores the secure association
* number in one or two bits.
*/
typedef enum _sai_macsec_max_secure_associations_per_sc_t
{
SAI_MACSEC_MAX_SECURE_ASSOCIATIONS_PER_SC_TWO,
SAI_MACSEC_MAX_SECURE_ASSOCIATIONS_PER_SC_FOUR,
} sai_macsec_max_secure_associations_per_sc_t;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are secure association always power of 2?

/**
* @brief Attribute Id for sai_macsec
*/
Expand Down Expand Up @@ -292,6 +305,14 @@ typedef enum _sai_macsec_attr_t
*/
SAI_MACSEC_ATTR_AVAILABLE_MACSEC_SA,

/**
* @brief MACsec Secure Associations Limit
*
* @type sai_macsec_max_secure_associations_per_sc_t
* @flags READ_ONLY
*/
SAI_MACSEC_ATTR_MAX_SECURE_ASSOCIATIONS_PER_SC,

/**
* @brief End of MACsec attributes
*/
Expand Down