[PATCH] ip_conntrack_enable_ve0 warn for development kernels
Patch from Dmitry (dim@): - added warn message for obsoleted ip_conntrack_enable_ve0 param. -- Thanks, Dmitry. --- ./net/ipv4/netfilter/ip_conntrack_standalone.c.ctenablewarn 2006-03-13 14:06:37.000000000 +0300 +++ ./net/ipv4/netfilter/ip_conntrack_standalone.c 2006-03-27 16:20:35.000000000 +0400 @@ -60,6 +60,18 @@ extern atomic_t ip_conntrack_count; #endif DECLARE_PER_CPU(struct ip_conntrack_stat, ip_conntrack_stat); +/* Prior to 2.6.15, we had a ip_conntrack_enable_ve0 param. */ +static int warn_set(const char *val, struct kernel_param *kp) +{ + printk(KERN_INFO KBUILD_MODNAME + ": parameter ip_conntrack_enable_ve0 is obsoleted. In ovzkernel" + " >= 2.6.15 connection tracking on hardware node is enabled by " + "default, use ip_conntrack_disable_ve0=1 parameter to " + "disable.\n"); + return 0; +} +module_param_call(ip_conntrack_enable_ve0, warn_set, NULL, NULL, 0); + static int kill_proto(struct ip_conntrack *i, void *data) { return (i->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum ==