Skip to content

Conversation

@ffoulkes
Copy link

  • In BuildP4TableEntry, only set the action profile member and group IDs if the action ID is zero, instead of setting them unconditionally.

Signed-off-by: Derek G Foster derek.foster@intel.com

- In BuildP4TableEntry, only set the action profile member and group
  IDs if the action ID is zero, instead of setting them unconditionally.

Signed-off-by: Derek G Foster <derek.foster@intel.com>
Copy link

@ravi861 ravi861 left a comment

Choose a reason for hiding this comment

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

I presume this is because the log file is inundated with error messages saying $ACTION_MEMBER_ID and $SELECTOR_GROUP_ID are not found. I was also looking to address this. Thanks for taking care of this.
Upstream stratum addressed this differently by making the changes within GetSelectorGroupId and GetActionMemberId.
https://github.com/stratum/stratum/blob/a341191e2b9bda2e700f12d7414b9652b2c4f53e/stratum/hal/lib/barefoot/bf_sde_wrapper.cc#L801

@ravi861 ravi861 requested a review from saynb November 17, 2022 17:42
@ravi861
Copy link

ravi861 commented Nov 17, 2022

@saynb Is there any case where there is an action spec present and still containing ACTION_MEMBER_ID or SELECTOR_MEMBER_ID for a table type?

@ffoulkes
Copy link
Author

I presume this is because the log file is inundated with error messages saying $ACTION_MEMBER_ID and $SELECTOR_GROUP_ID are not found. I was also looking to address this. Thanks for taking care of this. Upstream stratum addressed this differently by making the changes within GetSelectorGroupId and GetActionMemberId.

Do you prefer one solution over the other?

@ffoulkes
Copy link
Author

@saynb Is there any case where there is an action spec present and still containing ACTION_MEMBER_ID or SELECTOR_MEMBER_ID for a table type?

I have no idea. I'm porting someone else's undocumented code changes.

@ravi861
Copy link

ravi861 commented Nov 17, 2022

I presume this is because the log file is inundated with error messages saying $ACTION_MEMBER_ID and $SELECTOR_GROUP_ID are not found. I was also looking to address this. Thanks for taking care of this. Upstream stratum addressed this differently by making the changes within GetSelectorGroupId and GetActionMemberId.

Do you prefer one solution over the other?

This is a safe change in my opinion. We will get the other change anyway when we merge from upstream. LGTM.

@ffoulkes ffoulkes merged commit 2a35026 into split-arch Nov 17, 2022
@ffoulkes ffoulkes deleted the table-manager-fix branch November 17, 2022 21:01
ffoulkes added a commit that referenced this pull request Apr 27, 2023
- Rename the IPsecManager class to conform to Stratum naming
  and capitalization conventions.

Signed-off-by: Derek G Foster <derek.foster@intel.com>
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