From: Zhu Yanjun <zyjzyj2000@gmail.com>
To: dborkman@redhat.com, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, vyasevich@gmail.com,
tuexen@fh-muenster.de, khandelwal.deepak.1987@gmail.com,
Yue.Tao@windriver.com, alexandre.dietsch@windriver.com,
davem@davemloft.net, zyjzyj2000@gmail.com
Cc: Zhu Yanjun <Yanjun.Zhu@windriver.com>
Subject: [PATCH V2] sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe
Date: Wed, 20 Aug 2014 17:31:42 +0800 [thread overview]
Message-ID: <1408527103-22772-1-git-send-email-Yanjun.Zhu@windriver.com> (raw)
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
next reply other threads:[~2014-08-20 9:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-20 9:31 Zhu Yanjun [this message]
2014-08-20 9:31 ` [PATCH 1/1] sctp: not send SCTP_PEER_ADDR_CHANGE notifications with failed probe Zhu Yanjun
2014-08-21 2:06 ` Vlad Yasevich
2014-08-21 8:47 ` Daniel Borkmann
2014-08-22 4:35 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1408527103-22772-1-git-send-email-Yanjun.Zhu@windriver.com \
--to=zyjzyj2000@gmail.com \
--cc=Yanjun.Zhu@windriver.com \
--cc=Yue.Tao@windriver.com \
--cc=alexandre.dietsch@windriver.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=khandelwal.deepak.1987@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=tuexen@fh-muenster.de \
--cc=vyasevich@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).