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

Remove RIF SMAC attribute from HLD #280

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vmytnykx
Copy link
Collaborator

Based on BMv2 discussion, the SRC mac of egress packet should be set based on SMAC of switch, not RIF. So, looks like this RIF SAI_ROUTER_INTERFACE_ATTR_SRC_MAC_ADDRESS attribute is redundant in the doc, thus removing it. The SAI_SWITCH_ATTR_SRC_MAC_ADDRESS should used instead.

@prsunny
Copy link
Collaborator

prsunny commented Nov 11, 2022

In general, the switch mac shall be same as RIF mac, but for packet forwarding, it is expected to use the RIF mac as src mac. So please keep the attribute.

@marian-pritsak
Copy link
Collaborator

@prsunny While this is true for the switch, is it expected to be configured on a DPU? That's the additional attribute to support.

@prsunny
Copy link
Collaborator

prsunny commented Nov 30, 2022

SAI_ROUTER_INTERFACE_ATTR_SRC_MAC_ADDRESS

I think yes, because router interface creation for DPU is similar to switch and we pass this attribute by default

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