2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-21 14:49:41 +00:00

ofproto: Implement OF1.4 error code for set-async-config

This patch adds support for Openflow1.4 error codes for set-async-config.
In this patch, a new error type, OFPET_ASYNC_CONFIG_FAILED is introduced
that enables the switch to properly inform the controller when controller
tries to set invalid mask or unsupported configuration.

Signed-off-by: Ambika Arora <ambika.arora@tcs.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Ambika Arora
2015-11-30 16:52:47 +05:30
committed by Ben Pfaff
parent cd26c1dc41
commit d18cc1eec4
9 changed files with 155 additions and 8 deletions

View File

@@ -134,6 +134,7 @@ enum ofp14_table_mod_prop_eviction_flag {
enum ofp14_table_reason {
OFPTR_VACANCY_DOWN = 3, /* Vacancy down threshold event. */
OFPTR_VACANCY_UP = 4, /* Vacancy up threshold event. */
OFPTR_N_REASONS /* Denotes number of reasons. */
};
struct ofp14_table_mod_prop_eviction {
@@ -259,6 +260,7 @@ OFP_ASSERT(sizeof(struct ofp14_async_config) == 8);
enum ofp14_requestforward_reason {
OFPRFR_GROUP_MOD = 0, /* Forward group mod requests. */
OFPRFR_METER_MOD = 1, /* Forward meter mod requests. */
OFPRFR_N_REASONS /* Denotes number of reasons. */
};
/* Async Config property types.
@@ -332,6 +334,7 @@ enum ofp14_controller_role_reason {
OFPCRR_MASTER_REQUEST = 0, /* Another controller asked to be master. */
OFPCRR_CONFIG = 1, /* Configuration changed on the switch. */
OFPCRR_EXPERIMENTER = 2, /* Experimenter data changed. */
OFPCRR_N_REASONS /* Denotes number of reasons. */
};
/* Role property types.

View File

@@ -308,7 +308,8 @@ enum ofp_flow_removed_reason {
enum ofp_port_reason {
OFPPR_ADD, /* The port was added. */
OFPPR_DELETE, /* The port was removed. */
OFPPR_MODIFY /* Some attribute of the port has changed. */
OFPPR_MODIFY, /* Some attribute of the port has changed. */
OFPPR_N_REASONS /* Denotes number of reasons. */
};
/* A physical port has changed in the datapath */