]> err.no Git - linux-2.6/commitdiff
[DCCP]: Adds the tx buffer sysctls
authorIan McDonald <ian.mcdonald@jandi.co.nz>
Mon, 20 Nov 2006 21:19:32 +0000 (19:19 -0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:24:42 +0000 (21:24 -0800)
This one got lost on the way from Ian to Gerrit to me, fix it.

Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Documentation/networking/dccp.txt
include/linux/sysctl.h
net/dccp/sysctl.c

index 1910d097a0add0edc837a3765f9d1ba2967992f5..dda15886bcb51045ad5168dcafb8e0e5048c6301 100644 (file)
@@ -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
 =====
 
index 2e8c5ad8279364779852b5155da5c8b33cb3ab06..61dd99c6c2a561d50d180b1a008dd25ad4e359c5 100644 (file)
@@ -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 */
index 8b62061e5701f4310099c107046b3c105126e351..4775ba3faa04aff1d473191abd49b282e85d4356 100644 (file)
@@ -91,6 +91,15 @@ static struct ctl_table dccp_default_table[] = {
                .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, }
 };