[ovs-git] [openvswitch/ovs] 6d43b8: tests: Fix race in MPLS translate.

GitHub noreply at github.com
Thu Feb 2 17:53:12 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6d43b84c2119410a0d6bfd27a7117d4cec4862e7
      https://github.com/openvswitch/ovs/commit/6d43b84c2119410a0d6bfd27a7117d4cec4862e7
  Author: Alin Serdean <aserdean at cloudbasesolutions.com>
  Date:   2017-02-02 (Thu, 02 Feb 2017)

  Changed paths:
    M tests/mpls-xlate.at

  Log Message:
  -----------
  tests: Fix race in MPLS translate.

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: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list