Skip to content

Commit 81296fc

Browse files
borkmanndavem330
authored andcommitted
net: sctp: stop spamming klog with rfc6458, 5.3.2. deprecation warnings
Back then when we added support for SCTP_SNDINFO/SCTP_RCVINFO from RFC6458 5.3.4/5.3.5, we decided to add a deprecation warning for the (as per RFC deprecated) SCTP_SNDRCV via commit bbbea41 ("net: sctp: deprecate rfc6458, 5.3.2. SCTP_SNDRCV support"), see [1]. Imho, it was not a good idea, and we should just revert that message for a couple of reasons: 1) It's uapi and therefore set in stone forever. 2) To be able to run on older and newer kernels, an SCTP application would need to probe for both, SCTP_SNDRCV, but also SCTP_SNDINFO/ SCTP_RCVINFO support, so that on older kernels, it can make use of SCTP_SNDRCV, and on newer kernels SCTP_SNDINFO/SCTP_RCVINFO. In my (limited) experience, a lot of SCTP appliances are migrating to newer kernels only ve(ee)ry slowly. 3) Some people don't have the chance to change their applications, f.e. due to proprietary legacy stuff. So, they'll hit this warning in fast path and are stuck with older kernels. But i.e. due to point 1) I really fail to see the benefit of a warning. So just revert that for now, the issue was reported up Jamal. [1] http://thread.gmane.org/gmane.linux.network/321960/ Reported-by: Jamal Hadi Salim <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Cc: Michael Tuexen <[email protected]> Acked-by: Jamal Hadi Salim <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 10e59ee commit 81296fc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/sctp/socket.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,12 +2200,6 @@ static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
22002200
if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen))
22012201
return -EFAULT;
22022202

2203-
if (sctp_sk(sk)->subscribe.sctp_data_io_event)
2204-
pr_warn_ratelimited(DEPRECATED "%s (pid %d) "
2205-
"Requested SCTP_SNDRCVINFO event.\n"
2206-
"Use SCTP_RCVINFO through SCTP_RECVRCVINFO option instead.\n",
2207-
current->comm, task_pid_nr(current));
2208-
22092203
/* At the time when a user app subscribes to SCTP_SENDER_DRY_EVENT,
22102204
* if there is no data to be sent or retransmit, the stack will
22112205
* immediately send up this notification.

0 commit comments

Comments
 (0)