Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
komaljai committed Apr 11, 2024
1 parent df5644f commit 2611ff6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backends/tc/backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ void ConvertToBackendIR::updateAddOnMissTable(const IR::P4Table *t) {
add_on_miss_tables.push_back(t);
auto tableDefinition = ((IR::TCTable *)table);
tableDefinition->setTableAddOnMiss();
tableDefinition->setTablePermisson(HandleTableAccessPermission(t));
tableDefinition->setTablePermission(HandleTableAccessPermission(t));
}
}
}
Expand Down Expand Up @@ -670,7 +670,7 @@ void ConvertToBackendIR::postorder(const IR::P4Table *t) {
}
}
}
tableDefinition->setTablePermisson(HandleTableAccessPermission(t));
tableDefinition->setTablePermission(HandleTableAccessPermission(t));
auto actionlist = t->getActionList();
for (auto action : actionlist->actionList) {
for (auto actionDef : tcPipeline->actionDefs) {
Expand Down
1 change: 1 addition & 0 deletions backends/tc/introspection.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ struct TableAttributes {
safe_vector<struct ActionAttributes *> actions;
TableAttributes() {
name = nullptr;
permissions = nullptr;
id = 0;
tentries = 0;
numMask = 0;
Expand Down
2 changes: 1 addition & 1 deletion backends/tc/tc.def
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class TCTable {
ordered_map<TCAction, unsigned> actionList;
safe_vector<TCEntry> const_entries;

void setTablePermisson(cstring p) {
void setTablePermission(cstring p) {
permissions = p;
}
void setKeySize(unsigned k) {
Expand Down

0 comments on commit 2611ff6

Please sign in to comment.