netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sctp: do not mark chunk abandoned if peer has no PRSCTP capable
@ 2011-03-03  4:20 Wei Yongjun
  2011-03-03 14:14 ` Vladislav Yasevich
  0 siblings, 1 reply; 5+ messages in thread
From: Wei Yongjun @ 2011-03-03  4:20 UTC (permalink / raw)
  To: netdev@vger.kernel.org, lksctp, David Miller, Vlad Yasevich

Chunk is marked abandoned if the chunk is expires, and it not be
retransmited even if the peer has no PRSCTP capable, but the peer
will still wait for retransmit it to update CTSN.
This patch disable mark chunk abandoned if peer has no PRSCTP
capable.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
 net/sctp/chunk.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/sctp/chunk.c b/net/sctp/chunk.c
index 6c85564..0d4832d 100644
--- a/net/sctp/chunk.c
+++ b/net/sctp/chunk.c
@@ -347,6 +347,9 @@ int sctp_chunk_abandoned(struct sctp_chunk *chunk)
 {
 	struct sctp_datamsg *msg = chunk->msg;
 
+	if (!chunk->asoc->peer.prsctp_capable)
+		return 0;
+
 	if (!msg->can_abandon)
 		return 0;
 
-- 
1.6.5.2



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

end of thread, other threads:[~2011-03-07  7:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03  4:20 [PATCH] sctp: do not mark chunk abandoned if peer has no PRSCTP capable Wei Yongjun
2011-03-03 14:14 ` Vladislav Yasevich
2011-03-04  5:10   ` Wei Yongjun
2011-03-04 13:08     ` Vlad Yasevich
2011-03-07  7:08       ` Wei Yongjun

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