linux-stable/net/sctp
Xin Long cdb32abc20 sctp: update hb timer immediately after users change hb_interval
[ Upstream commit 1f4e803cd9 ]

Currently, when hb_interval is changed by users, it won't take effect
until the next expiry of hb timer. As the default value is 30s, users
have to wait up to 30s to wait its hb_interval update to work.

This becomes pretty bad in containers where a much smaller value is
usually set on hb_interval. This patch improves it by resetting the
hb timer immediately once the value of hb_interval is updated by users.

Note that we don't address the already existing 'problem' when sending
a heartbeat 'on demand' if one hb has just been sent(from the timer)
mentioned in:

  https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg590224.html

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/75465785f8ee5df2fb3acdca9b8fafdc18984098.1696172660.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 21:43:41 +02:00
..
Kconfig
Makefile
associola.c sctp: update transport state when processing a dupcook packet 2023-10-10 21:43:41 +02:00
auth.c sctp: fix sctp_auth_init_hmacs() error path 2020-10-14 09:51:12 +02:00
bind_addr.c sctp: fail if no bound addresses can be used for a given scope 2023-02-06 07:46:32 +01:00
chunk.c sctp: fix erroneous inc of snmp SctpFragUsrMsgs 2018-08-24 13:09:03 +02:00
debug.c
endpointola.c sctp: use call_rcu to free endpoint 2022-01-05 12:33:49 +01:00
input.c sctp: read sk->sk_bound_dev_if once in sctp_rcv() 2022-06-14 16:53:50 +02:00
inqueue.c sctp: fix the issue that the cookie-ack with auth can't get processed 2018-05-19 10:20:25 +02:00
ipv6.c sctp: validate from_addr_param return 2021-07-20 16:17:45 +02:00
objcnt.c
offload.c sctp: call gso_reset_checksum when computing checksum in sctp_gso_segment 2019-02-27 10:08:06 +01:00
output.c
outqueue.c
primitive.c
probe.c
proc.c sctp: hold transport before accessing its asoc in sctp_transport_get_next 2018-09-15 09:45:25 +02:00
protocol.c sctp: move 198 addresses from unusable to private scope 2021-08-04 12:22:15 +02:00
sctp_diag.c sctp: fix kernel-infoleak for SCTP sockets 2022-03-16 12:57:07 +01:00
sm_make_chunk.c sctp: account stream padding length for reconf chunk 2021-10-20 10:42:05 +02:00
sm_sideeffect.c sctp: handle invalid error codes without calling BUG() 2023-09-23 10:46:54 +02:00
sm_statefuns.c sctp: fix an error code in sctp_sf_eat_auth() 2023-06-21 15:38:58 +02:00
sm_statetable.c
socket.c sctp: update hb timer immediately after users change hb_interval 2023-10-10 21:43:41 +02:00
stream.c sctp: improve the events for sctp stream reset 2019-02-06 17:31:33 +01:00
sysctl.c
transport.c sctp: do not check hb_timer.expires when resetting hb_timer 2023-02-22 12:46:01 +01:00
tsnmap.c
ulpevent.c sctp: remove sctp_chunk_put from fail_mark err path in sctp_ulpevent_make_rcvmsg 2018-05-19 10:20:25 +02:00
ulpqueue.c