Skip to content

Commit 8f0e370

Browse files
committed
Merge branch 'udplite-dccp-print-deprecation-notice'
Kuniyuki Iwashima says: ==================== udplite/dccp: Print deprecation notice. UDP-Lite is assumed to have no users for 7 years, and DCCP is orphaned for 7 years too. Let's add deprecation notice and see if anyone responds to it. ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 9a36e2d + b144fca commit 8f0e370

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-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;

net/ipv4/udplite.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ static int udplite_sk_init(struct sock *sk)
2222
{
2323
udp_init_sock(sk);
2424
udp_sk(sk)->pcflag = UDPLITE_BIT;
25+
pr_warn_once("UDP-Lite is deprecated and scheduled to be removed in 2025, "
26+
"please contact the netdev mailing list\n");
2527
return 0;
2628
}
2729

net/ipv6/udplite.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Changes:
99
* Fixes:
1010
*/
11+
#define pr_fmt(fmt) "UDPLite6: " fmt
12+
1113
#include <linux/export.h>
1214
#include <linux/proc_fs.h>
1315
#include "udp_impl.h"
@@ -16,6 +18,8 @@ static int udplitev6_sk_init(struct sock *sk)
1618
{
1719
udpv6_init_sock(sk);
1820
udp_sk(sk)->pcflag = UDPLITE_BIT;
21+
pr_warn_once("UDP-Lite is deprecated and scheduled to be removed in 2025, "
22+
"please contact the netdev mailing list\n");
1923
return 0;
2024
}
2125

0 commit comments

Comments
 (0)