tunneling: Warn if CAPWAP is not available on this kernel.
authorJesse Gross <jesse@nicira.com>
Thu, 2 Jun 2011 22:50:47 +0000 (15:50 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 3 Jun 2011 00:09:10 +0000 (17:09 -0700)
For most of our kernel module we support back to 2.6.18 but we only
work with 2.6.26 or newer for CAPWAP.  On later kernels support for
CAPWAP silently disappears.  In these situations, emit a warning so
that people aren't suprised when their tunnels fail.

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/vport-capwap.c

index e2cf400..f0bb327 100644 (file)
@@ -664,5 +664,6 @@ const struct vport_ops capwap_vport_ops = {
        .get_operstate  = vport_gen_get_operstate,
        .send           = tnl_send,
 };
-
-#endif /* Linux kernel >= 2.6.26 */
+#else
+#warning CAPWAP tunneling will not be available on kernels before 2.6.26
+#endif /* Linux kernel < 2.6.26 */