[ovs-dev] [PATCH 1/2] Extending Packet-In reasons definition

Shu Shen shu.shen at radisys.com
Thu Nov 13 00:29:59 UTC 2014


Signed-off-by: Shu Shen <shu.shen at radisys.com>
---
 include/openflow/openflow-common.h | 5 ++++-
 lib/ofp-util.c                     | 6 ++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h
index 0915c91..4a7486b 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 a2b2556..94047fa 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:
-- 
1.9.3




More information about the dev mailing list