On slow systems ofproto/trace in combination with a recirculation ID
causes issues because the flow is evicted before the second packet
can reach it.

I.e:
"
Flow: recirc_id=0x2,ip,in_port=1,vlan_tci=0x0000,dl_src=f8:bc:12:44:34:b6,
dl_dst=f8:bc:12:46:58:e0,nw_src=1.1.2.92,nw_dst=1.1.2.88,nw_proto=47,
nw_tos=0,nw_ecn=0,nw_ttl=64

bridge("br0")
-------------
     >>>> Recirculation context not found for ID 2 <<<<

Final flow: unchanged
Megaflow: recirc_id=0x2,ip,in_port=1,nw_frag=no
Datapath actions: drop
Translation failed (No recirculation context), packet is dropped.
"

Since eviction of the flows is not needed for the current logic,
add a time/stop to bypass the problem.

I.e.:


Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 tests/mpls-xlate.at | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/mpls-xlate.at b/tests/mpls-xlate.at
index 04c6193..9bbf22a 100644
--- a/tests/mpls-xlate.at
+++ b/tests/mpls-xlate.at
@@ -38,7 +38,9 @@ AT_CHECK([ovs-ofctl -O OpenFlow13 add-flow br0 
dl_type=0x8847,in_port=1,mpls_lab
 
 AT_CHECK([ovs-ofctl -O OpenFlow13 add-flow br1 in_port=1,action=output:LOCAL])
 
-
+dnl The following is needed on slow systems, because the flows in the datapath
+dnl will be evicted before the packet can match the recirculation context
+ovs-appctl time/stop
 
 dnl Test MPLS push
 AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 
'in_port(100),eth(src=f8:bc:12:44:34:b6,dst=f8:bc:12:46:58:e0),eth_type(0x0800),ipv4(src=1.1.2.92,dst=1.1.2.88,proto=17,tos=0,ttl=64,frag=no),udp(src=7777,dst=80)'],
 [0], [stdout])
-- 
2.10.2.windows.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to