Skip to content

Commit

Permalink
Add attribute for number of available SAs per SC
Browse files Browse the repository at this point in the history
Add attribute for number of available SAs per SC

Add attribute for number of available SAs per SC

Add attribute for number of available SAs per SC

Signed-off-by: Sambath Kumar Balasubramanian <[email protected]>
  • Loading branch information
skbarista committed Feb 28, 2022
1 parent 30f57a5 commit 8138e1c
Showing 1 changed file with 21 additions and 0 deletions.
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;

/**
* @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

0 comments on commit 8138e1c

Please sign in to comment.