From: Jesse Gross Date: Thu, 2 Jun 2011 22:50:47 +0000 (-0700) Subject: tunneling: Warn if CAPWAP is not available on this kernel. X-Git-Tag: v1.2.0~258 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9d9a0a0452a957472b0f3a9c132aea19cfb4e568;p=sliver-openvswitch.git tunneling: Warn if CAPWAP is not available on this kernel. 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 Acked-by: Ben Pfaff --- diff --git a/datapath/vport-capwap.c b/datapath/vport-capwap.c index e2cf400b1..f0bb3270f 100644 --- a/datapath/vport-capwap.c +++ b/datapath/vport-capwap.c @@ -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 */