diff options
author | Eric Dumazet <edumazet@google.com> | 2023-03-17 18:55:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-03-18 15:23:34 +0300 |
commit | 403a40f2304d4730a780ab9d6a2b93d1e4ac39d2 (patch) | |
tree | 9eb7c9b93e4d7a94703e9a1047bba34b0275164b /net/mptcp/protocol.c | |
parent | c7154ca8e075cc456fe773879263b33ae307a59e (diff) | |
download | linux-403a40f2304d4730a780ab9d6a2b93d1e4ac39d2.tar.xz |
mptcp: preserve const qualifier in mptcp_sk()
We can change mptcp_sk() to propagate its argument const qualifier,
thanks to container_of_const().
We need to change few things to avoid build errors:
mptcp_set_datafin_timeout() and mptcp_rtx_head() have to accept
non-const sk pointers.
@msk local variable in mptcp_pending_tail() must be const.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Matthieu Baerts <matthieu.baerts@tessares.net>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/protocol.c')
-rw-r--r-- | net/mptcp/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 6738181b2977..2d26b9114373 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -459,7 +459,7 @@ static bool mptcp_pending_data_fin(struct sock *sk, u64 *seq) return false; } -static void mptcp_set_datafin_timeout(const struct sock *sk) +static void mptcp_set_datafin_timeout(struct sock *sk) { struct inet_connection_sock *icsk = inet_csk(sk); u32 retransmits; |