[ovs-git] [openvswitch/ovs] 67842e: meta-flow: New functions mf_subfield_copy() and mf...

GitHub noreply at github.com
Tue Aug 16 02:30:57 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 67842eba196c126ebe0dbc28f03a7bb3b27540f3
      https://github.com/openvswitch/ovs/commit/67842eba196c126ebe0dbc28f03a7bb3b27540f3
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2016-08-15 (Mon, 15 Aug 2016)

  Changed paths:
    M include/openvswitch/meta-flow.h
    M lib/meta-flow.c
    M lib/nx-match.c
    M lib/nx-match.h
    M ofproto/ofproto-dpif-xlate.c

  Log Message:
  -----------
  meta-flow: New functions mf_subfield_copy() and mf_subfield_swap().

The function nxm_execute_reg_move() was almost a general-purpose function
for manipulating subfields, except for its awkward interface that took a
struct ofpact_reg_move instead of a plain source and destination.  This
commit introduces a general-purpose function in meta-flow that corrects
this flaw, and updates the callers.  An upcoming commit will introduce a
new user of the function.

This commit also introduces a related function mf_subfield_swap() to swap
the contents of subfields.  An upcoming commit will introduce the first
user.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Ryan Moats <rmoats at us.ibm.com>
Acked-by: Justin Pettit <jpettit at ovn.org>




More information about the git mailing list