ovs-brcompatd: Run ovs-vsctl instead of accessing database directly.
[openvswitch] / datapath / linux-2.6 / compat-2.6 / genetlink-brcompat.c
index c43b3ce469a106dcbe816d8614c03966b8461e6b..31108cda39df18cade3f6a38d28295048efe0bdf 100644 (file)
@@ -1,20 +1,10 @@
-#include "net/genetlink.h"
-
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
-
 /* We fix grp->id to 32 so that it doesn't collide with any of the multicast
  * groups selected by openvswitch_mod, which uses groups 16 through 31.
  * Collision isn't fatal--multicast listeners should check that the family is
  * the one that they want and discard others--but it wastes time and memory to
  * receive unwanted messages. */
-int genl_register_mc_group(struct genl_family *family,
-                          struct genl_multicast_group *grp)
-{
-       grp->id = 32;
-       grp->family = family;
 
-       return 0;
-}
+#define GENL_FIRST_MCGROUP 32
+#define GENL_LAST_MCGROUP  32
 
-#endif /* kernel < 2.6.23 */
+#include "genetlink.inc"