p4c icon indicating copy to clipboard operation
p4c copied to clipboard

Dpdk Backend: Fix action selector and action profile to apply the group/member tables only on base table hit

Open usha1830 opened this issue 3 years ago • 0 comments

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

usha1830 avatar Dec 06 '22 03:12 usha1830