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:
@@ -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.
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user