linux_dsm_epyc7002/net
Cambda Zhu f0628c524f net: Replace the limit of TCP_LINGER2 with TCP_FIN_TIMEOUT_MAX
This patch changes the behavior of TCP_LINGER2 about its limit. The
sysctl_tcp_fin_timeout used to be the limit of TCP_LINGER2 but now it's
only the default value. A new macro named TCP_FIN_TIMEOUT_MAX is added
as the limit of TCP_LINGER2, which is 2 minutes.

Since TCP_LINGER2 used sysctl_tcp_fin_timeout as the default value
and the limit in the past, the system administrator cannot set the
default value for most of sockets and let some sockets have a greater
timeout. It might be a mistake that let the sysctl to be the limit of
the TCP_LINGER2. Maybe we can add a new sysctl to set the max of
TCP_LINGER2, but FIN-WAIT-2 timeout is usually no need to be too long
and 2 minutes are legal considering TCP specs.

Changes in v3:
- Remove the new socket option and change the TCP_LINGER2 behavior so
  that the timeout can be set to value between sysctl_tcp_fin_timeout
  and 2 minutes.

Changes in v2:
- Add int overflow check for the new socket option.

Changes in v1:
- Add a new socket option to set timeout greater than
  sysctl_tcp_fin_timeout.

Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-01 15:12:14 -07:00
..
6lowpan
9p
802
8021q
appletalk
atm docs: networking: convert atm.txt to ReST 2020-04-28 14:38:38 -07:00
ax25 docs: networking: convert ax25.txt to ReST 2020-04-28 14:38:38 -07:00
batman-adv batman-adv: remove unused inline function batadv_arp_change_timeout 2020-04-24 15:22:41 +02:00
bluetooth
bpf
bpfilter
bridge net: bridge: Add checks for enabling the STP. 2020-04-27 11:40:25 -07:00
caif net: caif: Fix use correct return type for ndo_start_xmit() 2020-04-30 12:13:07 -07:00
can
ceph docs: networking: convert dns_resolver.txt to ReST 2020-04-28 14:39:46 -07:00
core docs: networking: convert pktgen.txt to ReST 2020-04-30 12:56:37 -07:00
dcb
dccp dccp: remove unused inline function dccp_set_seqno 2020-04-25 20:42:57 -07:00
decnet docs: networking: convert decnet.txt to ReST 2020-04-28 14:39:45 -07:00
dns_resolver docs: networking: convert dns_resolver.txt to ReST 2020-04-28 14:39:46 -07:00
dsa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-04-25 20:18:53 -07:00
ethernet
ethtool
hsr hsr: remove hsr interface if all slaves are removed 2020-04-30 13:25:18 -07:00
ieee802154
ife
ipv4 net: Replace the limit of TCP_LINGER2 with TCP_FIN_TIMEOUT_MAX 2020-05-01 15:12:14 -07:00
ipv6 ila: remove unused inline function ila_addr_is_ila 2020-04-29 12:01:31 -07:00
iucv
kcm
key
l2tp
l3mdev
lapb docs: networking: convert lapb-module.txt to ReST 2020-04-30 12:56:35 -07:00
llc
mac80211 docs: networking: convert mac80211-injection.txt to ReST 2020-04-30 12:56:36 -07:00
mac802154
mpls
mptcp tcp: mptcp: use mptcp receive buffer space to select rcv window 2020-04-25 20:37:52 -07:00
ncsi
netfilter docs: networking: convert tproxy.txt to ReST 2020-04-30 12:56:38 -07:00
netlabel netlabel: Kconfig: Update reference for NetLabel Tools project 2020-04-22 19:55:01 -07:00
netlink netlink: add infrastructure to expose policies to userspace 2020-04-30 17:51:42 -07:00
netrom
nfc
nsh
openvswitch net: openvswitch: use div_u64() for 64-by-32 divisions 2020-04-25 20:48:21 -07:00
packet
phonet
psample
qrtr net: qrtr: Add tracepoint support 2020-04-22 12:55:54 -07:00
rds
rfkill
rose
rxrpc docs: networking: convert rxrpc.txt to ReST 2020-04-30 12:56:38 -07:00
sched netlink: remove type-unsafe validation_data pointer 2020-04-30 17:51:41 -07:00
sctp sctp: Fix SHUTDOWN CTSN Ack in the peer restart case 2020-04-22 19:27:40 -07:00
smc net/smc: remove obsolete link state DELETING 2020-04-30 12:44:34 -07:00
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wimax
wireless netlink: remove NLA_EXACT_LEN_WARN 2020-04-30 17:51:42 -07:00
x25 docs: networking: convert x25.txt to ReST 2020-05-01 12:24:40 -07:00
xdp
xfrm
compat.c
Kconfig docs: networking: convert pktgen.txt to ReST 2020-04-30 12:56:37 -07:00
Makefile
socket.c
sysctl_net.c