[ovs-git] [openvswitch/ovs] 1cb200: tunnel: Support matching on the presence of Geneve...

GitHub noreply at github.com
Sun Aug 30 16:41:14 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 1cb20095c3c933aca1e7607ad2dd6ed9933b359e
      https://github.com/openvswitch/ovs/commit/1cb20095c3c933aca1e7607ad2dd6ed9933b359e
  Author: Jesse Gross <jesse at nicira.com>
  Date:   2015-08-28 (Fri, 28 Aug 2015)

  Changed paths:
    M lib/bitmap.h
    M lib/meta-flow.c
    M lib/meta-flow.h
    M lib/nx-match.c
    M lib/nx-match.h
    M lib/odp-util.c
    M lib/ofp-parse.c
    M lib/ofp-util.c
    M lib/tun-metadata.c
    M lib/tun-metadata.h
    M ofproto/ofproto-dpif-xlate.c
    M tests/ovs-ofctl.at
    M tests/tunnel.at
    M utilities/ovs-ofctl.8.in

  Log Message:
  -----------
  tunnel: Support matching on the presence of Geneve options.

Sometimes it is useful to match only on whether a Geneve option
is present even if the specific value is unimportant. A special
case of this is zero length options where there is no value at all
and the only information conveyed is whether the option was included
in the packet.

This operation was partially supported before but it was not consistent -
in particular, options were never serialized through NXM/OXM unless
they had a non-zero mask. Furthermore, zero length options were rejected
altogether when they were installed through the Geneve map OpenFlow
command.

This adds support for these types of matches by making any NXM/OXM for
tunnel metadata force a match on that field. In the case of a zero length
option, both the value and mask of the NXM are ignored.

Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>




More information about the git mailing list