aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-09-12 14:09:34 -0700
committerEthan Jackson <ethan@nicira.com>2011-09-16 11:22:30 -0700
commit7fad428207c1d2ef50878da0740ee94dd57eb8bf (patch)
tree61b48924af0bd50aa5541b8486781ee1f5d64d39 /include
parent2ee6545f2bff7eb27e8c84965e3ff38dfa909bf6 (diff)
datapath: Hardcode vport multicast group ID on older kernels.
Older kernels do not advertise the multicast groups of families when requested by userspace. As a workaround, this patch hardcodes the multicast group ID of the ovs_vport family on these kernels. Userspace will be able to fall back to this hardcoded value if the standard mechanism is unavailable. Signed-off-by: Ethan Jackson <ethan@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'include')
-rw-r--r--include/openvswitch/automake.mk1
-rw-r--r--include/openvswitch/datapath-compat.h45
2 files changed, 46 insertions, 0 deletions
diff --git a/include/openvswitch/automake.mk b/include/openvswitch/automake.mk
index b7c6723a..24a68264 100644
--- a/include/openvswitch/automake.mk
+++ b/include/openvswitch/automake.mk
@@ -1,5 +1,6 @@
noinst_HEADERS += \
include/openvswitch/brcompat-netlink.h \
+ include/openvswitch/datapath-compat.h \
include/openvswitch/datapath-protocol.h \
include/openvswitch/tunnel.h \
include/openvswitch/types.h
diff --git a/include/openvswitch/datapath-compat.h b/include/openvswitch/datapath-compat.h
new file mode 100644
index 00000000..cf0e519c
--- /dev/null
+++ b/include/openvswitch/datapath-compat.h
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2011 Nicira Networks.
+ *
+ * This file is offered under your choice of two licenses: Apache 2.0 or GNU
+ * GPL 2.0 or later. The permission statements for each of these licenses is
+ * given below. You may license your modifications to this file under either
+ * of these licenses or both. If you wish to license your modifications under
+ * only one of these licenses, delete the permission text for the other
+ * license.
+ *
+ * ----------------------------------------------------------------------
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at:
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ----------------------------------------------------------------------
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * ----------------------------------------------------------------------
+ */
+
+#ifndef OPENVSWITCH_DATAPATH_COMPAT_H
+#define OPENVSWITCH_DATAPATH_COMPAT_H 1
+
+#define OVS_VPORT_MCGROUP_FALLBACK_ID 33
+
+#endif /* openvswitch/datapath-compat.h */