[ovs-git] [openvswitch/ovs] 6d670e: lib/odp: Masked set action execution and printing.

GitHub noreply at github.com
Mon Sep 8 22:10:43 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6d670e7f0d45b014d47d1f172c12cf62c4f8bf7f
      https://github.com/openvswitch/ovs/commit/6d670e7f0d45b014d47d1f172c12cf62c4f8bf7f
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M datapath/linux/compat/include/linux/openvswitch.h
    M lib/dpif-netdev.c
    M lib/dpif.c
    M lib/odp-execute.c
    M lib/odp-util.c
    M lib/odp-util.h
    M tests/odp.at

  Log Message:
  -----------
  lib/odp: Masked set action execution and printing.

Add a new action type OVS_ACTION_ATTR_SET_MASKED, and support for
parsing, printing, and committing them.

Masked set actions add a mask, immediately following the netlink
attribute data, within the netlink attribute itself.  Thus the key
attribute size for a masked set action is exactly double of the
non-masked set action.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 53cb9c3edc3cc5ec323a1c0b21315e6ded61dadd
      https://github.com/openvswitch/ovs/commit/53cb9c3edc3cc5ec323a1c0b21315e6ded61dadd
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M lib/meta-flow.c
    M lib/odp-util.c
    M lib/util.c
    M lib/util.h

  Log Message:
  -----------
  lib/util: Change is_all_zeros and is_all_ones to take a void *.

is_all_zeros() and is_all_ones() operate on bytes, but just like with
memset, it is easier to use if the first argument is a void *.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 260974dcdfd707a8ee82ec97713211b76b08c82b
      https://github.com/openvswitch/ovs/commit/260974dcdfd707a8ee82ec97713211b76b08c82b
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M lib/odp-util.c

  Log Message:
  -----------
  lib/odp-util: Refine odp_mask_attr_is_exact().

Some attributes are exact matches even when all bits are not ones.
Make odp_mask_attr_is_exact() to return true if the mask is set for
all the bits we actually care about.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: ea2735d3cc23d062bd60ab442e48d6021ac4d15d
      https://github.com/openvswitch/ovs/commit/ea2735d3cc23d062bd60ab442e48d6021ac4d15d
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M lib/flow.h
    M lib/match.c
    M lib/odp-util.c
    M lib/odp-util.h
    M tests/ofp-print.at
    M tests/ofproto-dpif.at

  Log Message:
  -----------
  lib: Unify flags parsing and formatting.

Use the "+-" syntax more uniformly when printing masked flags, and use
the syntax of delimited 1-flags also for formatting fully masked TCP
flags.

The "+-" syntax only deals with masked flags, but if there are many of
those, the printout becomes long and confusing.  Typically there are
many flags only when flags are fully masked, but even then most of
them are zeros, so it makes sense to print the flags that are set
(ones) and omit the zero flags.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 5545e7826896e861c07a04161d6db64ed61289fe
      https://github.com/openvswitch/ovs/commit/5545e7826896e861c07a04161d6db64ed61289fe
  Author: Jarno Rajahalme <jrajahalme at nicira.com>
  Date:   2014-09-08 (Mon, 08 Sep 2014)

  Changed paths:
    M lib/odp-util.c
    M tests/bfd.at
    M tests/odp.at
    M tests/tunnel.at

  Log Message:
  -----------
  lib/odp-util: Add tunnel tp_src, tp_dst parsing and formatting.

tp_src and tp_dst fields were recently added to struct flow_tnl, but
parsing and printing was missing.

Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/2c622e5aa900...5545e7826896


More information about the git mailing list