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

LNW nexthop changes for LAG scenario #155

Merged
merged 3 commits into from
Jul 12, 2024
Merged

LNW nexthop changes for LAG scenario #155

merged 3 commits into from
Jul 12, 2024

Conversation

5abeel
Copy link
Collaborator

@5abeel 5abeel commented Jul 12, 2024

  • Removed unused router_interface_id argument from set_nexthop_lag action in nexthop_table.
  • Added router_interface_id with set_egress_port action for tx_lag_table to resolve source MAC address population for LAG scenario.

This aligns with recent changes in the P4 program to address a LAG bug.

Signed-off-by: Sabeel Ansari <[email protected]>
Copy link
Contributor

@ffoulkes ffoulkes left a comment

Choose a reason for hiding this comment

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

This PR needs a good changelist comment.

See Writing good CL descriptions for an excellent description of how to do this.

I'd recommend doing this in the comment box at the top of the PR, and then copy/pasting it into the comment box when merging the PR.

See my second comment for ideas on what information you might provide.

switchapi/es2k/lnw_v3/lnw_nexthop_table.h Outdated Show resolved Hide resolved
switchapi/es2k/lnw_v3/switch_pd_routing.c Outdated Show resolved Hide resolved
Signed-off-by: Sabeel Ansari <[email protected]>
Copy link
Contributor

@ffoulkes ffoulkes left a comment

Choose a reason for hiding this comment

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

LGTM

@ffoulkes ffoulkes merged commit 2fd1746 into main Jul 12, 2024
4 checks passed
@ffoulkes ffoulkes deleted the lag_rif_changes branch July 12, 2024 18:32
status = tdi_data_field_set_value(data_hdl, rif_data_field_id, lag_id);
if (status != TDI_SUCCESS) {
krnlmon_log_error("Unable to set action value for ID: %d, error: %d",
data_field_id, status);
Copy link
Collaborator

Choose a reason for hiding this comment

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

data_field_id, --> change this to rif_data_field_id for correct error message.

Copy link
Collaborator Author

@5abeel 5abeel Jul 12, 2024

Choose a reason for hiding this comment

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

Opened PR #156 to address this

&rif_data_field_id);
if (status != TDI_SUCCESS) {
krnlmon_log_error("Unable to get data field id param for: %s, error: %d",
ACTION_SET_EGRESS_PORT_PARAM_EGRESS_PORT, status);
Copy link
Collaborator

Choose a reason for hiding this comment

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

ACTION_SET_EGRESS_PORT_PARAM_EGRESS_PORT -> Change this to ACTION_SET_EGRESS_PORT_PARAM_ROUTER_INTF_ID for correct error message.

Copy link
Collaborator Author

@5abeel 5abeel Jul 12, 2024

Choose a reason for hiding this comment

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

Opened PR #156 to address this

@5abeel 5abeel mentioned this pull request Jul 12, 2024
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