projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: OXM VLAN match encoding and decoding
[openvswitch]
/
datapath
/
linux
/
compat
/
genetlink.inc
diff --git
a/datapath/linux/compat/genetlink.inc
b/datapath/linux/compat/genetlink.inc
index d381e4f0c56670cb8824f5a2d568d98ca2715395..bf969802763f0e2ddafa1b9977f062431ac2684a 100644
(file)
--- a/
datapath/linux/compat/genetlink.inc
+++ b/
datapath/linux/compat/genetlink.inc
@@
-5,6
+5,9
@@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
#include <linux/mutex.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
#include <linux/mutex.h>
+#include <linux/openvswitch.h>
+
+#include "openvswitch/datapath-compat.h"
static DEFINE_MUTEX(mc_group_mutex);
static DEFINE_MUTEX(mc_group_mutex);
@@
-13,9
+16,15
@@
int genl_register_mc_group(struct genl_family *family,
{
static int next_group = GENL_FIRST_MCGROUP;
{
static int next_group = GENL_FIRST_MCGROUP;
+ grp->family = family;
+
+ if (!strcmp(grp->name, OVS_VPORT_MCGROUP)) {
+ grp->id = OVS_VPORT_MCGROUP_FALLBACK_ID;
+ return 0;
+ }
+
mutex_lock(&mc_group_mutex);
grp->id = next_group;
mutex_lock(&mc_group_mutex);
grp->id = next_group;
- grp->family = family;
if (++next_group > GENL_LAST_MCGROUP)
next_group = GENL_FIRST_MCGROUP;
if (++next_group > GENL_LAST_MCGROUP)
next_group = GENL_FIRST_MCGROUP;