]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ofp-monitor: Make OFP_FLOW_REMOVED_REASON_BUFSIZE public.
authorBen Pfaff <blp@ovn.org>
Wed, 4 Dec 2019 23:06:08 +0000 (15:06 -0800)
committerWilliam Tu <u9012063@gmail.com>
Thu, 12 Dec 2019 18:16:09 +0000 (10:16 -0800)
This constant is needed to use ofp_flow_removed_reason_to_string(),
which is itself public.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: William Tu <u9012063@gmail.com>
include/openvswitch/ofp-monitor.h
lib/ofp-monitor.c

index 5951260d20ff3c0d05f3e86218e87765283b566f..237cef85eb4020ad09a3cbd585090739e0bd5a74 100644 (file)
@@ -22,6 +22,7 @@
 #include "openvswitch/match.h"
 #include "openvswitch/ofp-protocol.h"
 #include "openvswitch/ofpbuf.h"
+#include "openvswitch/type-props.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -29,6 +30,7 @@ extern "C" {
 
 struct ofputil_table_map;
 
+#define OFP_FLOW_REMOVED_REASON_BUFSIZE (INT_STRLEN(int) + 1)
 const char *ofp_flow_removed_reason_to_string(enum ofp_flow_removed_reason,
                                               char *reasonbuf, size_t bufsize);
 
index 2fffb3bf6d24bfacd85cc9c15d959ac25f168bcf..e12fa6d2b666a2fbbc0ab0ba644b12e233519839 100644 (file)
@@ -38,7 +38,6 @@ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
 /* Returns a string form of 'reason'.  The return value is either a statically
  * allocated constant string or the 'bufsize'-byte buffer 'reasonbuf'.
  * 'bufsize' should be at least OFP_FLOW_REMOVED_REASON_BUFSIZE. */
-#define OFP_FLOW_REMOVED_REASON_BUFSIZE (INT_STRLEN(int) + 1)
 const char *
 ofp_flow_removed_reason_to_string(enum ofp_flow_removed_reason reason,
                                   char *reasonbuf, size_t bufsize)