datapath: Extend compatibility code for genl_register_mc_group().
authorBen Pfaff <blp@nicira.com>
Tue, 18 Jan 2011 23:23:48 +0000 (15:23 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 28 Jan 2011 05:08:41 +0000 (21:08 -0800)
commit9f2e8c9ef975181317ded7d71c8b5bec172ccb8f
treea4f2435d02c86e3de4b208fb2c52aa3770f6ab72
parent82272eded1ede569bcec3ba4ab212e5e3fb632ff
datapath: Extend compatibility code for genl_register_mc_group().

The existing compatibility code for genl_register_mc_group() always returns
the same value because the only caller (in brcompat_mod) only needs a
single multicast group.  However, when the datapath is converted over to
using Netlink in an upcoming commit, openvswitch_mod will start needing a
number of multicast groups, so this commit adds this ability.

The multicast group ranges differ for brcompat_mod and openvswitch_mod so
that they don't interfere with one another.  (This would waste time in
ovs-brcompatd and ovs-vswitchd, although it would not be fatal.)

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/Modules.mk
datapath/linux-2.6/compat-2.6/genetlink-brcompat.c
datapath/linux-2.6/compat-2.6/genetlink-openvswitch.c
datapath/linux-2.6/compat-2.6/genetlink.inc [new file with mode: 0644]
datapath/linux-2.6/compat-2.6/include/net/genetlink.h