openflow: Table maintenance commands for Geneve options.
authorJesse Gross <jesse@nicira.com>
Tue, 2 Jun 2015 22:11:00 +0000 (15:11 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 25 Jun 2015 18:08:58 +0000 (11:08 -0700)
commit6159c531d09a19f5eb6865fc5221c04156aa0bf4
tree406926cec3ff3b727a4924e768053047607692fa
parent00fe22f85baf76f5a4dca0312d4a7d7c920065af
openflow: Table maintenance commands for Geneve options.

In order to work with Geneve options, we need to maintain a mapping
table between an option (defined by <class, type, length>) and
an NXM field that can be operated on for the purposes of matches,
actions, etc. This mapping must be explicitly specified by the
user.

Conceptually, this table could be communicated using either OpenFlow
or OVSDB. Using OVSDB requires less code and definition of extensions
than OpenFlow but introduces the possibility that mapping table
updates and flow modifications are desynchronized from each other.
This is dangerous because the mapping table signifcantly impacts the
way that flows using Geneve options are installed and processed by
OVS. Therefore, the mapping table is maintained using OpenFlow commands
instead, which opens the possibility of using synchronization between
table changes and flow modifications through barriers, bundles, etc.

There are two primary groups of OpenFlow messages that are introduced
as Nicira extensions: modification commands (add, delete, clear mappings)
and table status request/reply to dump the current table along with switch
information.

Note that mappings should not be changed while they are in active use by
a flow. The result of doing so is undefined.

This only adds the OpenFlow infrastructure but doesn't actually
do anything with the information yet after the messages have been
decoded.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
17 files changed:
include/openflow/nicira-ext.h
lib/automake.mk
lib/learning-switch.c
lib/ofp-errors.h
lib/ofp-msgs.h
lib/ofp-parse.c
lib/ofp-parse.h
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h
lib/packets.h
lib/rconn.c
lib/tun-metadata.h [new file with mode: 0644]
ofproto/ofproto.c
ovn/controller/ofctrl.c
utilities/ovs-ofctl.8.in
utilities/ovs-ofctl.c