Skip to content

Add per-port MACsec PFC mode attribute#2293

Open
darius-nexthop wants to merge 1 commit into
opencomputeproject:masterfrom
darius-nexthop:macsec-pfc-mode
Open

Add per-port MACsec PFC mode attribute#2293
darius-nexthop wants to merge 1 commit into
opencomputeproject:masterfrom
darius-nexthop:macsec-pfc-mode

Conversation

@darius-nexthop

Copy link
Copy Markdown

Define a new per-port attribute to control whether PFC frames on a MACsec-enabled port are handled as unencrypted (clear) or encrypted (secure) PFC frames.

Per-port control is needed because mixed rollout scenarios are possible on a single device, and a global knob does not scale well for dynamic port management and staged deployment.

The default behavior is set to unencrypted PFC.

Signed-off-by: Darius Grassi <darius@nexthop.ai>
@tjchadaga

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread inc/saiport.h
* @flags CREATE_AND_SET
* @default SAI_PORT_MACSEC_PFC_MODE_UNENCRYPTED
*/
SAI_PORT_ATTR_MACSEC_PFC_MODE,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is the SAI_PORT_ATTR_MACSEC_PFC_MODE placed in saiport.h rather than as a SAI_MACSEC_PORT_ATTR_* in saimacsec.h on SAI_OBJECT_TYPE_MACSEC_PORT? All other MACsec port config id defined there. Placing it on the generic port creates GET/SET ambiguity when MACSEC is not enabled on this port.

Comment thread inc/saiport.h
* @default SAI_PORT_MACSEC_PFC_MODE_UNENCRYPTED
*/
SAI_PORT_ATTR_MACSEC_PFC_MODE,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

New attr is placed in-between the existing attr - pl note that this placement changes the enum integer values of subsequent port attributes, which is an API break. The SAI community convention is to add new attributes at the end of the list, immediately before SAI_XXX_ATTR_END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants