@@ -152,4 +152,9 @@ struct eth_addr {
};
};
+/* Moved from ofproto/ofproto-dpif-mirror.h to avoid including the whole file,
+ * which introduces function name collisions. */
+#define MAX_MIRRORS 32
+typedef uint32_t mirror_mask_t;
+
#endif /* openvswitch/types.h */
@@ -18,9 +18,7 @@
#include <stdint.h>
#include "util.h"
-
-#define MAX_MIRRORS 32
-typedef uint32_t mirror_mask_t;
+#include "openvswitch/types.h"
struct ofproto_dpif;
struct ofbundle;
@@ -21,9 +21,9 @@
#include <stdint.h>
#include "cmap.h"
-#include "ofproto-dpif-mirror.h"
#include "openvswitch/list.h"
#include "openvswitch/ofp-actions.h"
+#include "openvswitch/types.h"
#include "ovs-thread.h"
#include "uuid.h"
Move mirror_mask_t from ofproto/ofproto-dpif-mirror.h to openvswitch/types.h to avoid including function definitions with colliding names (e.g., mirror_destroy(), which is also the name of a static function in bridge.c). Signed-off-by: Jarno Rajahalme <jarno@ovn.org> --- include/openvswitch/types.h | 5 +++++ ofproto/ofproto-dpif-mirror.h | 4 +--- ofproto/ofproto-dpif-rid.h | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-)