@@ -220,7 +220,7 @@ def init_build_flows_clause(options):
220220 (Match == Match1 + Match2 )
221221 )
222222
223- # build const trace flow for in first stage of lsp ingress
223+ # build const trace flow in first stage of lsp ingress
224224 build_flows_lsp (Table , Priority , Match , Action ) <= (
225225 (Table == TABLE_LSP_TRACE_INGRESS_IN ) &
226226 action .load (0 , NXM_Reg (REG_DST_IDX ), Action1 ) &
@@ -253,6 +253,27 @@ def init_build_flows_clause(options):
253253 (Action == Action1 + Action2 )
254254 )
255255
256+ # build const flows to forward packet to third party table
257+ build_flows_lsp (Table , Priority , Match , Action ) <= (
258+ (Table == TABLE_LSP_INGRESS_PROCESS_EXT_LOGIC ) &
259+ (Priority == 0 ) &
260+ match .match_none (Match ) &
261+ action .resubmit_table (TABLE_THIRD_PARTY , Action1 ) &
262+ action .note (flows_note2idx ('process_third_logic' ), Action2 ) &
263+ (Action == Action1 + Action2 )
264+ )
265+
266+ build_flows_lsp (Table , Priority , Match , Action ) <= (
267+ (Table == TABLE_THIRD_PARTY ) &
268+ (Priority == 0 ) &
269+ match .match_none (Match ) &
270+ action .resubmit_table (TABLE_LSP_INGRESS_PROCESS_EXT_LOGIC + 1 , Action1 ) &
271+ action .note (flows_note2idx ('process_third_logic' ), Action2 ) &
272+ (Action == Action1 + Action2 )
273+ )
274+
275+ # build trace flow in end stage of lsp egress
276+ # build trace flow in end stage of lsp egress
256277 # build trace flow in end stage of lsp egress
257278 # because the end stage of lsp egress has no uniq path, so
258279 # we have to add similar flows(simliar to regular flow) to trace
@@ -452,6 +473,7 @@ def init_build_flows_clause(options):
452473 (Action == Action1 + Action2 + Action3 )
453474 )
454475
476+
455477#---------------------const drop table--------------------------------
456478 build_flows_drop (Table , Priority , Match , Action ) <= (
457479 (Priority == 0 ) &
@@ -469,3 +491,4 @@ def init_build_flows_clause(options):
469491 action .note (flows_note2idx ('pkt_trace_drop_packet' ), Action2 ) &
470492 (Action == Action1 + Action2 )
471493 )
494+
0 commit comments