Skip to contentSkip to conversation

: Adds the tx buffer sysctls

PATCH Arnaldo Carvalho de Melo 1 participant 1 message Nov 20, 2006

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

David, this was a latecomer, its there together with the previous 9.

Best Regards,

- Arnaldo

This one got lost on the way from Ian to Gerrit to me, fix it.

------------------------------------------------------------------------------

 Documentation/networking/dccp.txt |    4 ++++
 include/linux/sysctl.h            |    1 +
 net/dccp/sysctl.c                 |    9 +++++++++
 3 files changed, 14 insertions(+)

------------------------------------------------------------------------------

Documentation/networking/dccp.txt +4 -0
index 1910d09..dda1588 100644
@@ -100,6 +100,10 @@ rx_ccid = 2
 seq_window = 100
 	The initial sequence window (sec. 7.5.2).
 
+tx_qlen = 5
+	The size of the transmit buffer in packets. A value of 0 corresponds
+	to an unbounded transmit buffer.
+
 Notes
 == 
include/linux/sysctl.h +1 -0
index 2e8c5ad..61dd99c 100644
@@ -617,6 +617,7 @@ enum {
 	NET_DCCP_DEFAULT_REQ_RETRIES = 7,
 	NET_DCCP_DEFAULT_RETRIES1    = 8,
 	NET_DCCP_DEFAULT_RETRIES2    = 9,
+	NET_DCCP_DEFAULT_TX_QLEN     = 10,
 };
 
 /* /proc/sys/net/ipx */
net/dccp/sysctl.c +9 -0
index 8b62061..4775ba3 100644
@@ -91,6 +91,15 @@ static struct ctl_table dccp_default_tab
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
+	{
+		.ctl_name	= NET_DCCP_DEFAULT_TX_QLEN,
+		.procname	= "tx_qlen",
+		.data		= &sysctl_dccp_tx_qlen,
+		.maxlen		= sizeof(sysctl_dccp_tx_qlen),
+		.mode		= 0644,
+		.proc_handler	= proc_dointvec,
+	},
+
 	{ .ctl_name = 0, }
 };