summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShu Shen <shu.shen@radisys.com>2014-11-12 16:29:59 -0800
committerBen Pfaff <blp@nicira.com>2014-11-13 08:40:20 -0800
commit424467c6dbd7d52212e4c97b8dca538e00f4ab77 (patch)
treebb7272ee3953f7affc95dd0437610f494816e7fb
parent2fd84d5e5f5ca52607c69bbc2c69ec7e15f8d88b (diff)
downloadopenvswitch-424467c6dbd7d52212e4c97b8dca538e00f4ab77.tar.gz
openflow: Add OpenFlow 1.4 packet-in reasons.
Signed-off-by: Shu Shen <shu.shen@radisys.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--include/openflow/openflow-common.h5
-rw-r--r--lib/ofp-util.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h
index 0915c9154..4a7486bd3 100644
--- a/include/openflow/openflow-common.h
+++ b/include/openflow/openflow-common.h
@@ -271,7 +271,10 @@ enum ofp_capabilities {
enum ofp_packet_in_reason {
OFPR_NO_MATCH, /* No matching flow. */
OFPR_ACTION, /* Action explicitly output to controller. */
- OFPR_INVALID_TTL /* Packet has invalid TTL. */,
+ OFPR_INVALID_TTL, /* Packet has invalid TTL. */
+ OFPR_ACTION_SET, /* Output to controller in action set */
+ OFPR_GROUP, /* Output to controller in group bucket */
+ OFPR_PACKET_OUT, /* Output to controller in packet-out */
OFPR_N_REASONS
};
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index a2b2556b3..94047fa49 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -3606,6 +3606,12 @@ ofputil_packet_in_reason_to_string(enum ofp_packet_in_reason reason,
return "action";
case OFPR_INVALID_TTL:
return "invalid_ttl";
+ case OFPR_ACTION_SET:
+ return "action_set";
+ case OFPR_GROUP:
+ return "group";
+ case OFPR_PACKET_OUT:
+ return "packet_out";
case OFPR_N_REASONS:
default: