Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate XPN configuration attribute from read-only attribute #1169

Merged
merged 4 commits into from
Jan 14, 2021
Merged
Changes from 2 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
15 changes: 12 additions & 3 deletions inc/saimacsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -758,18 +758,27 @@ typedef enum _sai_macsec_sa_attr_t
* @default 0
* @validonly SAI_MACSEC_SA_ATTR_MACSEC_DIRECTION == SAI_MACSEC_DIRECTION_EGRESS
*/
SAI_MACSEC_SA_ATTR_XPN,
SAI_MACSEC_SA_ATTR_INITIAL_EGRESS_XPN,
Copy link
Collaborator

Choose a reason for hiding this comment

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

i think we can do alias here so that we can maintain backward compatible here.


/**
* @brief Minimum value of ingress MACsec packet number (PN/XPN).
* @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_CURRENT_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,
dipankar-ba marked this conversation as resolved.
Show resolved Hide resolved

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