Skip to content

Avoid manual translation of table names for softnpu#227

Open
Nieuwejaar wants to merge 1 commit intomainfrom
tables
Open

Avoid manual translation of table names for softnpu#227
Nieuwejaar wants to merge 1 commit intomainfrom
tables

Conversation

@Nieuwejaar
Copy link
Collaborator

This modifies dpd to use a TableType enum to identify tables rather than passing around strings. This gets rid of the brittle, error-prone mapping of tofino's table names to softnpu's table names. We are now also using the CounterId enum to track counters in places we were previously using strings.

This seemed like a pretty simple change when I started, but the blast radius has turned out to be surprisingly large. Apologies.

}
if (!meta.dropped && meta.nat_egress_hit && !meta.is_mcast) {
if (!meta.dropped && meta.nat_egress_hit &&
!meta.is_mcast && !meta.service_routed) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a cherry-picked commit from the dendrite#225 bugfix.

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.

1 participant