Commit Graph

2 Commits

Author SHA1 Message Date
Ravi Joshi f80b5935a2 msm-3.10: Create shadow files under /sys/kernel/ipv4
The TCP delayed ack parameters can be configured from user space
application which runs with non-root credentials and does not have
direct write access to /proc entries. This commit creates shadow
files under /sys/kernel/ipv4 which maps to /proc/sys/net/ipv4.

CRs-Fixed: 628139
Change-Id: I4e0cd003b312f9ed9c1f1668ef78e126f2212c9b
Signed-off-by: Ravi Joshi <ravij@codeaurora.org>
2014-04-28 15:36:07 -07:00
Robert Love 0602c1f91f sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size
Add a family of knobs to /sys/kernel/ipv4 for controlling the TCP window size:

	tcp_wmem_min
	tcp_wmem_def
	tcp_wmem_max
	tcp_rmem_min
	tcp_rmem_def
	tcp_rmem_max

This six values mirror the sysctl knobs in /proc/sys/net/ipv4/tcp_wmem and
/proc/sys/net/ipv4/tcp_rmem.

Sysfs, unlike sysctl, allows us to set and manage the files' permissions and
owners.

Signed-off-by: Robert Love <rlove@google.com>
2013-07-01 13:40:20 -07:00