[ovs-git] [openvswitch/ovs] b87d22: ovn: Add ct_commit(ct_mark=INT, ct_label=INT); act...

GitHub noreply at github.com
Thu Jun 30 20:07:39 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: b87d22ab4da4a0ad21a4926a9db4bf8a699de5aa
      https://github.com/openvswitch/ovs/commit/b87d22ab4da4a0ad21a4926a9db4bf8a699de5aa
  Author: Russell Bryant <russell at ovn.org>
  Date:   2016-06-30 (Thu, 30 Jun 2016)

  Changed paths:
    M ovn/lib/actions.c
    M ovn/ovn-sb.xml
    M tests/ovn.at

  Log Message:
  -----------
  ovn: Add ct_commit(ct_mark=INT, ct_label=INT); action.

Update the "ct_commit;" logical flow action to optionally take
one or two parameters, setting the value of "ct_mark" or "ct_label".
Supported ct_commit syntax now includes:

    ct_commit;
    ct_commit();
    ct_commit(ct_mark=1);
    ct_commit(ct_mark=1/1);
    ct_commit(ct_label=1);
    ct_commit(ct_label=1/1);
    ct_commit(ct_mark=1, ct_label=1);

Setting ct_mark via this type of logical flow results in an OpenFlow
flow that looks like:

    actions=ct(commit,zone=NXM_NX_REG5[0..15],exec(set_field:0x1->ct_mark))

Similarly, setting ct_label results in:

    actions=ct(commit,zone=NXM_NX_REG5[0..15],exec(set_field:0x1->ct_label))

A future commit will make use of this feature.

Signed-off-by: Russell Bryant <russell at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>




More information about the git mailing list