vswitchd wants to know the maximum number of datapaths, so DP_MAX needs to
be exported.
(This is not an ideal situation. Really the kernel should not have an
explicit limit on the number of datapaths, and userspace should be able
to query the current maximum.)
static struct genl_family dp_genl_family;
static struct genl_multicast_group mc_group;
-/* It's hard to imagine wanting more than one datapath, but... */
-#define DP_MAX 32
-
/* Datapaths. Protected on the read side by rcu_read_lock, on the write side
* by dp_mutex. dp_mutex is almost completely redundant with genl_mutex
* maintained by the Generic Netlink code, but the timeout path needs mutual
DP_GENL_C_MAX = __DP_GENL_C_MAX - 1
};
+/* Maximum number of datapaths. */
+#define DP_MAX 32
+
#endif /* openflow/openflow-netlink.h */