2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

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>
This commit is contained in:
Jesse Gross
2015-06-02 15:11:00 -07:00
parent 00fe22f85b
commit 6159c531d0
17 changed files with 574 additions and 0 deletions

View File

@@ -707,6 +707,34 @@ enum ofperr {
/* OF1.4+(16,7). Error in output port/group. */
OFPERR_OFPMOFC_BAD_OUT,
/* ## ----------------------------- ## */
/* ## OFPET_GENEVE_TABLE_MOD_FAILED ## */
/* ## ----------------------------- ## */
/* NX1.0-1.1(1,527), NX1.2+(16). The Geneve table mod command is not
* recognized as a valid operation. */
OFPERR_NXGTMFC_BAD_COMMAND,
/* NX1.0-1.1(1,528), NX1.2+(17). The option length is not a valid
* option size for Geneve. */
OFPERR_NXGTMFC_BAD_OPT_LEN,
/* NX1.0-1.1(1,529), NX1.2+(18). The field index is out of range for
* the supported NX_TUN_METADATA<n> match. */
OFPERR_NXGTMFC_BAD_FIELD_IDX,
/* NX1.0-1.1(1,530), NX1.2+(19). The total set of configured options
* exceeds the maximum supported by the switch. */
OFPERR_NXGTMFC_TABLE_FULL,
/* NX1.0-1.1(1,531), NX1.2+(20). The controller issued an NXGTMC_ADD
* command for a field index that is already mapped. */
OFPERR_NXGTMFC_ALREADY_MAPPED,
/* NX1.0-1.1(1,532), NX1.2+(21). The Geneve option that is attempting
* to be mapped is the same as one assigned to a different field. */
OFPERR_NXGTMFC_DUP_ENTRY,
/* ## ------------------ ## */
/* ## OFPET_EXPERIMENTER ## */
/* ## ------------------ ## */