Skip to content

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