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

GitHub noreply at github.com
Tue Feb 6 23:58:06 UTC 2018


  Branch: refs/heads/branch-2.8
  Home:   https://github.com/openvswitch/ovs
  Commit: 30ef3cdd95209a9b3b3268cd7c8c1b5bd28dc406
      https://github.com/openvswitch/ovs/commit/30ef3cdd95209a9b3b3268cd7c8c1b5bd28dc406
  Author: Zoltan Balogh <zoltan.balogh at ericsson.com>
  Date:   2018-02-06 (Tue, 06 Feb 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: 0d87cb5b6757b81be4951c6aae20eb0c38999216
      https://github.com/openvswitch/ovs/commit/0d87cb5b6757b81be4951c6aae20eb0c38999216
  Author: Zoltan Balogh <zoltan.balogh at ericsson.com>
  Date:   2018-02-06 (Tue, 06 Feb 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/1050f2e8952f...0d87cb5b6757


More information about the git mailing list