Skip to content

Commit

Permalink
[DCCP]: Adds the tx buffer sysctls
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian McDonald authored and David S. Miller committed Dec 3, 2006
1 parent 4554317 commit 82e3ab9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Documentation/networking/dccp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
=====

Expand Down
1 change: 1 addition & 0 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
9 changes: 9 additions & 0 deletions net/dccp/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, }
};

Expand Down

0 comments on commit 82e3ab9

Please sign in to comment.