dpif-linux: Handle nl_lookup_genl_mcgroup() failures.
authorEthan Jackson <ethan@nicira.com>
Tue, 13 Sep 2011 01:57:50 +0000 (18:57 -0700)
committerEthan Jackson <ethan@nicira.com>
Fri, 16 Sep 2011 18:22:30 +0000 (11:22 -0700)
commit213a13ed774742939de4c162e572cfbea9ce77df
treead079915572fc92602a9274cec5fdb362718d2e9
parent8f4a4df5e354721ef8ae47f1e8aa8af55d10aa38
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.
lib/dpif-linux.c
lib/netlink-socket.c
lib/netlink-socket.h