nf_conntrack_core: port to module_param
Hello,
as Yasuyuki KOZAKAI directed, I'm sending nf_conntrack patches here instead of usagi-users.
This one is 1 addition I forget to fold into last patch I sent.
Make nf_conntrack_core use module_param() and turn of debugging by default.
Michal
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/10/15 23:52:28+02:00 [email protected]
# Forgot to port nf_conntrack_core to module_param too.
#
# net/netfilter/nf_conntrack_core.c # 2004/10/15 23:52:17+02:00 [email protected] +2 -2 # Port nf_conntrack_core to module_param too. # diff -Nru a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c --- a/net/netfilter/nf_conntrack_core.c 2004-10-16 00:07:30 +02:00 +++ b/net/netfilter/nf_conntrack_core.c 2004-10-16 00:07:30 +02:00 @@ -53,7 +53,7 @@
#define NF_CONNTRACK_VERSION "0.3"
-#if 1
+#if 0
#define DEBUGP printk
#else
#define DEBUGP(format, args...)
@@ -1653,7 +1653,7 @@
}
static int hashsize;
-MODULE_PARM(hashsize, "i");
+module_param(hashsize, int, 0400);
int __init nf_conntrack_init(void)
{
Hi, Michal,
As I said at usagi-users ML, I have already started synchronizing nf_conntrack with ip_conntrack in linux 2.9.6-rc4, and already done same changes in your patch.
By the way, I reviewed your patches sent to usagi-users ML.
- 3 patches to introduce seq_file API.
- a patch to introduce module_param to ftp module.
They were almost fine for me, and applied them. Thank you! Then could you send your Signed-off-by ?
And, I'm changing many parts and afraid of double work. After more some changes and tests, I'll send the latest nf_conntrack (or commit it to tree in netfilter site). I use the branch for nf_conntrack in USAGI tree as snapshot only. Moreover, I think that almost people check nf_conntrack in only netfilter site.
So, could you wait for a while to prevent double work and use nf_conntrack in netfilter site if you want to make patches ?
Regards,
-----------------------------------------------------------------
Yasuyuki KOZAKAI @ USAGI Project <[email protected]>
From: Michal Rokos <[email protected]>
Date: Sat, 16 Oct 2004 00:10:40 +0200
Quoted 46 lines
Hello,
as Yasuyuki KOZAKAI directed, I'm sending
nf_conntrackpatches here instead of usagi-users.This one is 1 addition I forget to fold into last patch I sent.
Make
nf_conntrack_coreusemodule_param()and turn of debugging by default.Michal
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/10/15 23:52:28+02:00 [email protected]
# Forgot to portnf_conntrack_coretomodule_paramtoo.
## net/netfilter/nf_conntrack_core.c # 2004/10/15 23:52:17+02:00 [email protected] +2 -2 # Port nf_conntrack_core to module_param too. # diff -Nru a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.cnet/netfilter/nf_conntrack_core.c 2004-10-16 00:07:30 +02:00 +2
-2@@ -53,7 +53,7 @@ #define NF_CONNTRACK_VERSION "0.3" -#if 1 +#if 0 #define DEBUGP printk #else #define DEBUGP(format, args...)@@ -1653,7 +1653,7 @@ } static int hashsize; -MODULE_PARM(hashsize, "i"); +module_param(hashsize, int, 0400); int __init nf_conntrack_init(void) {
Hello,
Quoted 3 lines · Yasuyuki Kozakai
As I said at usagi-users ML, I have already started synchronizing
nf_conntrackwithip_conntrackin linux 2.9.6-rc4, and already done same changes in your patch.
I'm very pleased to see it's happening.
Quoted 5 lines
By the way, I reviewed your patches sent to usagi-users ML.
- 3 patches to introduceseq_fileAPI.
- a patch to introducemodule_paramto ftp module.They were almost fine for me, and applied them. Thank you!
No - I thank you!
Quoted 1 line
Then could you send your Signed-off-by ?
(and I'll append this in all latter patches)
Quoted 8 lines
And, I'm changing many parts and afraid of double work. After more some changes and tests, I'll send the latest
nf_conntrack(or commit it to tree in netfilter site). I use the branch fornf_conntrackin USAGI tree as snapshot only. Moreover, I think that almost people checknf_conntrackin only netfilter site.So, could you wait for a while to prevent double work and use
nf_conntrackin netfilter site if you want to make patches ?
Of course! I'd hate that (double work) too.
I'll be checking out netfilter repository only.
Michal
Quoted 51 lines
Regards,
-----------------------------------------------------------------
Yasuyuki KOZAKAI @ USAGI Project <[email protected]>From: Michal Rokos <[email protected]>
Date: Sat, 16 Oct 2004 00:10:40 +0200Quoted 40 lines
Hello,
as Yasuyuki KOZAKAI directed, I'm sending
nf_conntrackpatches here instead of usagi-users.This one is 1 addition I forget to fold into last patch I sent.
Make
nf_conntrack_coreusemodule_param()and turn of debugging by default.Michal
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/10/15 23:52:28+02:00 [email protected] # Forgot to portnf_conntrack_coretomodule_paramtoo.
# #net/netfilter/nf_conntrack_core.c
# 2004/10/15 23:52:17+02:00 [email protected] +2 -2
# Portnf_conntrack_coretomodule_paramtoo.# diff -Nru a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.cnet/netfilter/nf_conntrack_core.c 2004-10-16 00:07:30 +02:00 +2
-2@@ -53,7 +53,7 @@ #define NF_CONNTRACK_VERSION "0.3" -#if 1 +#if 0 #define DEBUGP printk #else #define DEBUGP(format, args...)@@ -1653,7 +1653,7 @@ } static int hashsize; -MODULE_PARM(hashsize, "i"); +module_param(hashsize, int, 0400); int __init nf_conntrack_init(void) {
Quoted 5 lines · Yasuyuki Kozakai
And, I'm changing many parts and afraid of double work. After more some changes and tests, I'll send the latest
nf_conntrack(or commit it to tree in netfilter site). I use the branch fornf_conntrackin USAGI tree as snapshot only. Moreover, I think that almost people checknf_conntrackin only netfilter site.
Plese note that we have migrated from CVS to subversion meanwhile. I will give you a subversion key and instructions in seperate private email laater today.
I'm looking forward to see your synchronized nf_conntrack version, let's hope we can include it soon.
Quoted 1 line
Regards,
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie