From 9d9a0a0452a957472b0f3a9c132aea19cfb4e568 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Thu, 2 Jun 2011 15:50:47 -0700 Subject: [PATCH] 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 --- datapath/vport-capwap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datapath/vport-capwap.c b/datapath/vport-capwap.c index e2cf400b..f0bb3270 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 */ -- 2.30.2