netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2] sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe
@ 2014-08-20  9:31 Zhu Yanjun
  2014-08-20  9:31 ` [PATCH 1/1] " Zhu Yanjun
  0 siblings, 1 reply; 5+ messages in thread
From: Zhu Yanjun @ 2014-08-20  9:31 UTC (permalink / raw)
  To: dborkman, linux-kernel, netdev, vyasevich, tuexen,
	khandelwal.deepak.1987, Yue.Tao, alexandre.dietsch, davem,
	zyjzyj2000
  Cc: Zhu Yanjun

Hi, Vlad && Deepak && Michael && David && Daniel

V2: Following the advice from Daniel Borkmann, I modified the comments and short log.

>From Michael && Deepak
"
 lxr SCTP implementation, doesn't transit the path state to INACTIVE, if it was never confirmed. this leads to SCTP_PEER_ADDRESS_CHANGE notification after each failed probe from this time.
 Is there any specific reason to have same notification to SCTP User with each probe in RTO time period ?
 806 case SCTP_TRANSPORT_DOWN:
 807 /* If the transport was never confirmed, do not transition it
 808 * to inactive state. Also, release the cached route since
 809 * there may be a better route next time.
 810 */
 811 if (transport->state != SCTP_UNCONFIRMED)

 812 transport->state = SCTP_INACTIVE;

 http://lxr.free-electrons.com/source/net/sctp/associola.c#L806

 ......

 I would also only expect a  SCTP_PEER_ADDRESS_CHANGE notification when a path state changes, not on every  try.

"

I made a patch to disable sending SCTP_PEER_ADDRESS_CHANGE notification every try. Now the patch is in the attachment. Please check it.

Zhu Yanjun


Zhu Yanjun (1):
  sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe

 net/sctp/associola.c | 1 +
 1 file changed, 1 insertion(+)

-- 
1.9.1

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

end of thread, other threads:[~2014-08-22  4:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-20  9:31 [PATCH V2] sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe Zhu Yanjun
2014-08-20  9:31 ` [PATCH 1/1] " Zhu Yanjun
2014-08-21  2:06   ` Vlad Yasevich
2014-08-21  8:47   ` Daniel Borkmann
2014-08-22  4:35   ` David Miller

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).