diff options
author | Ethan Jackson <ethan@nicira.com> | 2011-09-12 18:57:50 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2011-09-16 11:22:30 -0700 |
commit | 213a13ed774742939de4c162e572cfbea9ce77df (patch) | |
tree | ad079915572fc92602a9274cec5fdb362718d2e9 /lib/netlink-socket.h | |
parent | 8f4a4df5e354721ef8ae47f1e8aa8af55d10aa38 (diff) |
dpif-linux: Handle nl_lookup_genl_mcgroup() failures.
The nl_lookup_genl_mcgroup() function can fail on older kernels
which do not support the required netlink interface. Before this
patch, dpif-linux would refuse to create a datapath when this
happened. With this patch, it attempts to use a workaround. If
the workaround fails it simply disables the affected features
without completely disabling the dpif.
Diffstat (limited to 'lib/netlink-socket.h')
-rw-r--r-- | lib/netlink-socket.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h index f43c3d00..3ea790cf 100644 --- a/lib/netlink-socket.h +++ b/lib/netlink-socket.h @@ -76,6 +76,7 @@ int nl_dump_done(struct nl_dump *); /* Miscellaneous */ int nl_lookup_genl_family(const char *name, int *number); int nl_lookup_genl_mcgroup(const char *family_name, const char *group_name, - unsigned int *multicast_group); + unsigned int *multicast_group, + unsigned int fallback); #endif /* netlink-socket.h */ |