p4c
p4c copied to clipboard
Dpdk Backend: Fix action selector and action profile to apply the group/member tables only on base table hit
A table wit action selector property is split into base table, group table and member table.
Prior to this PR, group and member tables were unconditionally applied
table.apply() ==>
table0.apply()
group_table.apply()
member_table.apply()
This PR adds conditions for applying the group and member tables The table apply can occur as independent MethodCallStatement, within IfStatement and SwitchStatement. Code comments explain how each of these cases are converted