kernel 3.5 added a switch to turn on UDP encap, capwap needs
to enable it.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
}
#endif /* HAVE_SKBUFF_HEADER_HELPERS */
}
#endif /* HAVE_SKBUFF_HEADER_HELPERS */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)
+static inline void udp_encap_enable(void)
+{
+}
+#endif
capwap_net->frag_state.low_thresh = CAPWAP_FRAG_PRUNE_MEM;
inet_frags_init_net(&capwap_net->frag_state);
capwap_net->frag_state.low_thresh = CAPWAP_FRAG_PRUNE_MEM;
inet_frags_init_net(&capwap_net->frag_state);
capwap_net->n_tunnels++;
return 0;
capwap_net->n_tunnels++;
return 0;