android_kernel_xiaomi_sm8350/net
Xin Long 3c2f536c3d sctp: update hb timer immediately after users change hb_interval
[ Upstream commit 1f4e803cd9c9166eb8b6c8b0b8e4124f7499fc07 ]

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:46:45 +02:00
..
6lowpan
9p 9p: virtio: make sure 'offs' is initialized in zc_request 2023-09-23 10:59:37 +02:00
802
8021q
appletalk
atm
ax25
batman-adv batman-adv: Hold rtnl lock during MTU update via netlink 2023-08-30 16:27:25 +02:00
bluetooth Bluetooth: L2CAP: Fix use-after-free 2023-08-30 16:27:11 +02:00
bpf
bpfilter
bridge net: bridge: use DEV_STATS_INC() 2023-10-10 21:46:37 +02:00
caif
can
ceph libceph: fix potential hang in ceph_osdc_notify() 2023-08-11 11:53:58 +02:00
core net: fix possible store tearing in neigh_periodic_work() 2023-10-10 21:46:44 +02:00
dcb net: dcb: choose correct policy to parse DCB_ATTR_BCN 2023-08-11 11:53:57 +02:00
dccp dccp: fix dccp_v4_err()/dccp_v6_err() again 2023-10-10 21:46:37 +02:00
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154
ife
ipv4 tcp: fix delayed ACKs for MSS boundary condition 2023-10-10 21:46:44 +02:00
ipv6 net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr 2023-09-23 10:59:58 +02:00
iucv
kcm kcm: Fix error handling for SOCK_DGRAM in kcm_sendmsg(). 2023-09-23 11:00:02 +02:00
key net: af_key: fix sadb_x_filter validation 2023-08-30 16:27:16 +02:00
l2tp ipv4, ipv6: Fix handling of transhdrlen in __ip{,6}_append_data() 2023-10-10 21:46:44 +02:00
l3mdev
lapb
llc
mac80211
mac802154
mpls
ncsi ncsi: Propagate carrier gain/loss events to the NCSI controller 2023-10-10 21:46:40 +02:00
netfilter netfilter: handle the connecting collision properly in nf_conntrack_proto_sctp 2023-10-10 21:46:44 +02:00
netlabel netlabel: fix shift wrapping bug in netlbl_catmap_setlong() 2023-09-23 10:59:39 +02:00
netlink
netrom netrom: Deny concurrent connect(). 2023-09-23 10:59:43 +02:00
nfc net: nfc: llcp: Add lock when modifying device list 2023-10-10 21:46:44 +02:00
nsh
openvswitch
packet net/packet: annotate data-races around tp->status 2023-08-16 18:19:23 +02:00
phonet
psample
qrtr
rds net: replace calls to sock->ops->connect() with kernel_connect() 2023-10-10 21:46:43 +02:00
rfkill
rose
rxrpc
sched net/sched: Retire rsvp classifier 2023-09-23 11:00:07 +02:00
sctp sctp: update hb timer immediately after users change hb_interval 2023-10-10 21:46:45 +02:00
smc
strparser
sunrpc SUNRPC: Mark the cred for revalidation if the server rejects it 2023-10-10 21:46:35 +02:00
switchdev
tipc
tls net/tls: do not free tls_rec on async operation in bpf_exec_tx_verdict() 2023-09-23 11:00:02 +02:00
unix af_unix: Fix data-race around unix_tot_inflight. 2023-09-23 10:59:58 +02:00
vmw_vsock
wimax
wireless
x25
xdp
xfrm net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure 2023-08-30 16:27:20 +02:00
compat.c
Kconfig
Makefile
socket.c net: prevent rewrite of msg_name in sock_sendmsg() 2023-10-10 21:46:43 +02:00
sysctl_net.c