diff options
| author | Jesse Gross <jesse@nicira.com> | 2011-06-02 15:50:47 -0700 |
|---|---|---|
| committer | Jesse Gross <jesse@nicira.com> | 2011-06-02 17:09:10 -0700 |
| commit | 9d9a0a0452a957472b0f3a9c132aea19cfb4e568 (patch) | |
| tree | c9991b0f57f44d0483e731fe877feae8f4d74600 | |
| parent | b3e9b2eda9ae5be2ac2b7917858732738a818b66 (diff) | |
| download | openvswitch-9d9a0a0452a957472b0f3a9c132aea19cfb4e568.tar.gz | |
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 <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
| -rw-r--r-- | datapath/vport-capwap.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |
