Skip to content

Commit

Permalink
Separate read-only XPN attribute
Browse files Browse the repository at this point in the history
Signed-off-by: dipankar-ba <dipankar@arista.com>
  • Loading branch information
dipankar-ba committed Dec 8, 2020
1 parent af9e8f6 commit 38cee49
Showing 1 changed file with 32 additions and 8 deletions.
40 changes: 32 additions & 8 deletions inc/saimacsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,36 @@ typedef enum _sai_macsec_attr_t
SAI_MACSEC_ATTR_SCI_IN_INGRESS_MACSEC_ACL,

/**
* @brief List of supported cipher-suites
* @brief Indicates if 32-bit Packer Number (PN) is supported.
*
* @type sai_s32_list_t sai_macsec_cipher_suite_t
* @type bool
* @flags READ_ONLY
*/
SAI_MACSEC_ATTR_PN_32BIT_SUPPORTED,

/**
* @brief Indicates if 64-bit Extended Packer Number (PN) is supported.
*
* @type bool
* @flags READ_ONLY
*/
SAI_MACSEC_ATTR_XPN_64BIT_SUPPORTED,

/**
* @brief Indicates if GCM-AES128 cipher-suite is supported.
*
* @type bool
* @flags READ_ONLY
*/
SAI_MACSEC_ATTR_GCM_AES128_SUPPORTED,

/**
* @brief Indicates if GCM-AES256 cipher-suite is supported.
*
* @type bool
* @flags READ_ONLY
*/
SAI_MACSEC_ATTR_SUPPORTED_CIPHER_SUITE_LIST,
SAI_MACSEC_ATTR_GCM_AES256_SUPPORTED,

/**
* @brief List of supported SecTAG offset values for both ingress parsing
Expand Down Expand Up @@ -737,24 +761,24 @@ typedef enum _sai_macsec_sa_attr_t
SAI_MACSEC_SA_ATTR_INITIAL_EGRESS_XPN,

/**
* @brief MACsec packet number (PN/XPN). For ingress, largest received
* packet number. For egress, 1 less than the next packet number.
* @brief MACsec current packet number (PN/XPN). For ingress, largest
* received packet number. For egress, 1 less than the next packet number.
*
* @type sai_uint64_t
* @flags READ_ONLY
*/
SAI_MACSEC_SA_ATTR_XPN,
SAI_MACSEC_SA_ATTR_CURRENT_XPN,

/**
* @brief Minimum value of ingress MACsec packet number (PN/XPN).
* @brief Configured minimum acceptable ingress MACsec packet number (PN/XPN).
* Updated by value from MACsec peer by Key Agreement protocol.
*
* @type sai_uint64_t
* @flags CREATE_AND_SET
* @default 1
* @validonly SAI_MACSEC_SA_ATTR_MACSEC_DIRECTION == SAI_MACSEC_DIRECTION_INGRESS
*/
SAI_MACSEC_SA_ATTR_MINIMUM_XPN,
SAI_MACSEC_SA_ATTR_MINIMUM_INGRESS_XPN,

/**
* @brief SSCI value for this Secure Association
Expand Down

0 comments on commit 38cee49

Please sign in to comment.