netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS
@ 2015-07-09 10:38 Jamal Hadi Salim
  2015-07-09 11:54 ` Daniel Borkmann
  2015-07-22 11:48 ` David Laight
  0 siblings, 2 replies; 7+ messages in thread
From: Jamal Hadi Salim @ 2015-07-09 10:38 UTC (permalink / raw)
  To: Daniel Borkmann, Neil Horman, Vlad Yasevich
  Cc: David Miller, netdev@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]



In the newer kernels this message is extremely noisy. After a quick
discussion with Daniel it seems to me it will be very hard to get
existing apps that nobody is going to update to continue to work
(i.e no forward compat). And newer apps that desire to play in both
older kernels and new kernels will have to play some tricks to work
(i.e weak backward compatibility).  These are good reasons
to totally get rid of this message. At minimal to neutre it.
The attached change tries to do that. However, if you had multiple
apps, you will only get warning for the first one.

Will send proper patch when theres some consensus.

cheers,
jamal

[-- Attachment #2: sctp-denoise --]
[-- Type: text/plain, Size: 753 bytes --]

diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 5f6c4e6..0e8c937 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -2207,9 +2207,10 @@ static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
 		return -EFAULT;
 
 	if (sctp_sk(sk)->subscribe.sctp_data_io_event)
-		pr_warn_ratelimited(DEPRECATED "%s (pid %d) "
-				    "Requested SCTP_SNDRCVINFO event.\n"
-				    "Use SCTP_RCVINFO through SCTP_RECVRCVINFO option instead.\n",
+		pr_warn_once(DEPRECATED "%s (pid %d) "
+				    "SCTP_EVENTS Option - DEPRECATED\n"
+				    "Use SCTP_EVENT Option instead\n"
+				    "Refer to RFC6458 section 6.2\n",
 				    current->comm, task_pid_nr(current));
 
 	/* At the time when a user app subscribes to SCTP_SENDER_DRY_EVENT,

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-07-22 14:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 10:38 [RFC net-next 1/1] : sctp: denoise deprecation log on SCTP_EVENTS Jamal Hadi Salim
2015-07-09 11:54 ` Daniel Borkmann
2015-07-09 12:59   ` Marcelo Ricardo Leitner
2015-07-22 11:48 ` David Laight
2015-07-22 12:04   ` Daniel Borkmann
2015-07-22 12:30     ` Michael Tuexen
2015-07-22 14:36       ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).