Skip to content

Commit 82e3ab9

Browse files
imcdnzlDavid S. Miller
authored andcommitted
[DCCP]: Adds the tx buffer sysctls
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>
1 parent 4554317 commit 82e3ab9

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎Documentation/networking/dccp.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ rx_ccid = 2
100100
seq_window = 100
101101
The initial sequence window (sec. 7.5.2).
102102

103+
tx_qlen = 5
104+
The size of the transmit buffer in packets. A value of 0 corresponds
105+
to an unbounded transmit buffer.
106+
103107
Notes
104108
=====
105109

‎include/linux/sysctl.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ enum {
617617
NET_DCCP_DEFAULT_REQ_RETRIES = 7,
618618
NET_DCCP_DEFAULT_RETRIES1 = 8,
619619
NET_DCCP_DEFAULT_RETRIES2 = 9,
620+
NET_DCCP_DEFAULT_TX_QLEN = 10,
620621
};
621622

622623
/* /proc/sys/net/ipx */

‎net/dccp/sysctl.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ static struct ctl_table dccp_default_table[] = {
9191
.mode = 0644,
9292
.proc_handler = proc_dointvec,
9393
},
94+
{
95+
.ctl_name = NET_DCCP_DEFAULT_TX_QLEN,
96+
.procname = "tx_qlen",
97+
.data = &sysctl_dccp_tx_qlen,
98+
.maxlen = sizeof(sysctl_dccp_tx_qlen),
99+
.mode = 0644,
100+
.proc_handler = proc_dointvec,
101+
},
102+
94103
{ .ctl_name = 0, }
95104
};
96105

0 commit comments

Comments
 (0)