aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/timer.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2025-03-24 20:36:06 +0000
committerJakub Kicinski <[email protected]>2025-03-25 17:34:33 +0000
commita7c428ee8f59f171a3b57474f2bd5cee0ef1e036 (patch)
treeeb9c5084bf507d88a633ef4b6048bd8a65fe44a5 /net/dccp/timer.c
parentMerge branch 'net-skip-taking-rtnl_lock-for-queue-get' (diff)
downloadkernel-a7c428ee8f59f171a3b57474f2bd5cee0ef1e036.tar.gz
kernel-a7c428ee8f59f171a3b57474f2bd5cee0ef1e036.zip
tcp/dccp: remove icsk->icsk_timeout
icsk->icsk_timeout can be replaced by icsk->icsk_retransmit_timer.expires This saves 8 bytes in TCP/DCCP sockets and helps for better cache locality. Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/dccp/timer.c')
-rw-r--r--net/dccp/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/timer.c b/net/dccp/timer.c
index a4cfb47b60e5..9fd14a336189 100644
--- a/net/dccp/timer.c
+++ b/net/dccp/timer.c
@@ -139,9 +139,9 @@ static void dccp_write_timer(struct timer_list *t)
if (sk->sk_state == DCCP_CLOSED || !icsk->icsk_pending)
goto out;
- if (time_after(icsk->icsk_timeout, jiffies)) {
+ if (time_after(icsk_timeout(icsk), jiffies)) {
sk_reset_timer(sk, &icsk->icsk_retransmit_timer,
- icsk->icsk_timeout);
+ icsk_timeout(icsk));
goto out;
}