Skip to content
  • Alin Serdean's avatar
    tests: Fix race in MPLS translate. · 6d43b84c
    Alin Serdean authored
    
    
    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,
    this commit adds a time/stop to bypass the problem.
    
    Signed-off-by: default avatarAlin Gabriel Serdean <aserdean@cloudbasesolutions.com>
    Signed-off-by: default avatarBen Pfaff <blp@ovn.org>
    6d43b84c