Skip to contentSkip to conversation

: fix no_cong_thresh sysctl

PATCH Applied Patrick McHardy 2 participants 2 messages Jul 22, 2003 – Jul 23, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : fix no_cong_thresh sysctl

Hi David,
these two patches fix the net.core.no_cong_thresh sysctl, the value accessed is in fact no_cong.

Best regards,
Patrick

===== net/core/sysctl_net_core.c 1.4 vs edited =====

net/core/sysctl_net_core.c +1 -1
@@ -55,7 +55,7 @@
 	 &netdev_max_backlog, sizeof(int), 0644, NULL,
 	 &proc_dointvec},
 	{NET_CORE_NO_CONG_THRESH, "no_cong_thresh",
-	 &no_cong, sizeof(int), 0644, NULL,
+	 &no_cong_thresh, sizeof(int), 0644, NULL,
 	 &proc_dointvec},
 	{NET_CORE_NO_CONG, "no_cong",
 	 &no_cong, sizeof(int), 0644, NULL,

===== net/core/sysctl_net_core.c 1.4 vs edited =====

net/core/sysctl_net_core.c +1 -1
@@ -86,7 +86,7 @@
 	{
 		.ctl_name	= NET_CORE_NO_CONG_THRESH,
 		.procname	= "no_cong_thresh",
-		.data		= &no_cong,
+		.data		= &no_cong_thresh,
 		.maxlen		= sizeof(int),
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec
#1 lore raw
Quoted 2 lines · On Tue, 22 Jul 2003 17:35:16 +0200 Patrick McHardy <[email protected]> wrote:

these two patches fix the net.core.no_cong_thresh sysctl, the value accessed is in fact no_cong.

Applied, thanks a lot Patrick.