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 e2cf400b1613a2b8a402cce432fd92cc38332b5b..f0bb3270fc45c9f692f014cd3da83535a2b84d23 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 */