Skip to content

Commit b144fca

Browse files
q2venkuba-moo
authored andcommitted
dccp: Print deprecation notice.
DCCP was marked as Orphan in the MAINTAINERS entry 2 years ago in commit 054c461 ("MAINTAINERS: dccp: move Gerrit Renker to CREDITS"). It says we haven't heard from the maintainer for five years, so DCCP is not well maintained for 7 years now. Recently DCCP only receives updates for bugs, and major distros disable it by default. Removing DCCP would allow for better organisation of TCP fields to reduce the number of cache lines hit in the fast path. Let's add a deprecation notice when DCCP socket is created and schedule its removal to 2025. Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent be28c14 commit b144fca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/dccp/proto.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized)
191191
struct dccp_sock *dp = dccp_sk(sk);
192192
struct inet_connection_sock *icsk = inet_csk(sk);
193193

194+
pr_warn_once("DCCP is deprecated and scheduled to be removed in 2025, "
195+
"please contact the netdev mailing list\n");
196+
194197
icsk->icsk_rto = DCCP_TIMEOUT_INIT;
195198
icsk->icsk_syn_retries = sysctl_dccp_request_retries;
196199
sk->sk_state = DCCP_CLOSED;

0 commit comments

Comments
 (0)