diff mbox series

[ovs-dev,v2,09/29] tests: Add macro for OFTABLE_OUTPUT_LARGE_PKT_PROCESS table number.

Message ID 20240206094043.530335-10-amusil@redhat.com
State Accepted
Headers show
Series Remove most of the hardcoded table numbers | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Ales Musil Feb. 6, 2024, 9:40 a.m. UTC
Add macro for OFTABLE_OUTPUT_LARGE_PKT_PROCESS and replace all table=38
occurrences in OF with table=OFTABLE_OUTPUT_LARGE_PKT_PROCESS.

Signed-off-by: Ales Musil <amusil@redhat.com>
---
 tests/ovn-macros.at | 1 +
 tests/ovn.at        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at
index 7736eeb51..38e44b62c 100644
--- a/tests/ovn-macros.at
+++ b/tests/ovn-macros.at
@@ -992,3 +992,4 @@  m4_define([TAG_UNSTABLE], [
 m4_define([OFTABLE_PHY_TO_LOG], [0])
 m4_define([OFTABLE_LOG_INGRESS_PIPELINE], [8])
 m4_define([OFTABLE_OUTPUT_LARGE_PKT_DETECT], [37])
+m4_define([OFTABLE_OUTPUT_LARGE_PKT_PROCESS], [38])
diff --git a/tests/ovn.at b/tests/ovn.at
index 935ef8246..9646f1887 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -21078,7 +21078,7 @@  check ovn-nbctl set logical_router_policy $policy options:pkt_mark=100
 check ovn-nbctl --wait=hv sync
 as hv2
 # add a flow in egress pipeline to check pkt marking
-ovs-ofctl --protocols=OpenFlow13 add-flow br-int "table=OFTABLE_OUTPUT_LARGE_PKT_DETECT,priority=200,ip,nw_src=172.16.1.2,pkt_mark=0x64 actions=resubmit(,38)"
+ovs-ofctl --protocols=OpenFlow13 add-flow br-int "table=OFTABLE_OUTPUT_LARGE_PKT_DETECT,priority=200,ip,nw_src=172.16.1.2,pkt_mark=0x64 actions=resubmit(,OFTABLE_OUTPUT_LARGE_PKT_PROCESS)"
 
 dst_ip=$(ip_to_hex 172 16 2 10)
 fip_ip=$(ip_to_hex 172 16 1 2)