Skip to content

Commit

Permalink
Restore call to handleTableImplementation
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
  • Loading branch information
jafingerhut committed Jan 18, 2025
1 parent 688b842 commit 43c21c3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backends/bmv2/common/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class ControlConverter : public Inspector {
P4::P4CoreLibrary &corelib;

protected:
Util::IJson *convertTable(const CFG::TableNode *node) {
Util::IJson *convertTable(const CFG::TableNode *node, Util::JsonArray *action_profiles,
BMV2::SharedActionSelectorCheck<arch> *selector_check) {
auto table = node->table;
LOG3("Processing " << dbp(table));
auto result = new Util::JsonObject();
Expand Down Expand Up @@ -141,6 +142,10 @@ class ControlConverter : public Inspector {
result->emplace("match_type", table_match_type);
ctxt->conv->simpleExpressionsOnly = false;

auto propertyName = Standard::ActionProfileTraits<arch>::propertyName();
auto impl = table->properties->getProperty(propertyName);
(void) handleTableImplementation(impl, key, result, action_profiles, selector_check);

unsigned size = 0;
auto sz = table->properties->getProperty("size");
if (sz != nullptr) {
Expand Down Expand Up @@ -789,7 +794,7 @@ class ControlConverter : public Inspector {
// the CFG is implementable.
continue;
done.emplace(tn->table);
auto j = convertTable(tn);
auto j = convertTable(tn, action_profiles, selector_check);
if (::P4::errorCount() > 0) return false;
tables->append(j);
} else if (node->is<CFG::IfNode>()) {
Expand Down

0 comments on commit 43c21c3

Please sign in to comment.