[ovs-git] [openvswitch/ovs] c3594c: ofproto-dpif-xlate: add uuid to xports

GitHub noreply at github.com
Tue Jan 23 19:13:39 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: c3594cc320ef060dea45391dce9ae3b451bf012b
      https://github.com/openvswitch/ovs/commit/c3594cc320ef060dea45391dce9ae3b451bf012b
  Author: Zoltan Balogh <zoltan.balogh at ericsson.com>
  Date:   2018-01-23 (Tue, 23 Jan 2018)

  Changed paths:
    M ofproto/ofproto-dpif-xlate.c

  Log Message:
  -----------
  ofproto-dpif-xlate: add uuid to xports

This should make possible to look up xport by UUID and will be used by a
later commit.

Signed-off-by: Zoltan Balogh <zoltan.balogh at ericsson.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>


  Commit: 00135b869d7c848527aa22caa4698694202eb762
      https://github.com/openvswitch/ovs/commit/00135b869d7c848527aa22caa4698694202eb762
  Author: Zoltan Balogh <zoltan.balogh at ericsson.com>
  Date:   2018-01-23 (Tue, 23 Jan 2018)

  Changed paths:
    M ofproto/ofproto-dpif-rid.c
    M ofproto/ofproto-dpif-rid.h
    M ofproto/ofproto-dpif-xlate.c
    M ofproto/ofproto-dpif-xlate.h
    M tests/packet-type-aware.at

  Log Message:
  -----------
  xlate: fix xport lookup for recirc

Xlate_lookup and xlate_lookup_ofproto_() provides in_port and ofproto
based on xport determined using flow, which is extracted from packet.
The lookup can happen due to recirculation as well. It can happen, that
packet_type has been modified during xlate before recirculation is
triggered, so the lookup fails or delivers wrong xport.
This can be worked around by propagating xport to ctx->xin after the very
first lookup and store it in frozen state of the recirculation.
So, when lookup is performed due to recirculation, the xport can be
retrieved from the frozen state.

The packet-type-aware unit tests are updated with a new one to verify
this behavior.

Signed-off-by: Zoltan Balogh <zoltan.balogh at ericsson.com>
CC: Jan Scheurich <jan.scheurich at ericsson.com>
Fixes: beb75a40fdc2 ("userspace: Switching of L3 packets in L2 pipeline")
Signed-off-by: Ben Pfaff <blp at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/283d866294b1...00135b869d7c


More information about the git mailing list