From patchwork Mon Aug 22 15:44:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michio Honda X-Patchwork-Id: 110942 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 096A1B6F64 for ; Tue, 23 Aug 2011 01:44:47 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751533Ab1HVPon (ORCPT ); Mon, 22 Aug 2011 11:44:43 -0400 Received: from shonan.sfc.wide.ad.jp ([203.178.142.130]:41657 "EHLO mail.sfc.wide.ad.jp" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751022Ab1HVPol convert rfc822-to-8bit (ORCPT ); Mon, 22 Aug 2011 11:44:41 -0400 Received: from epi.ht.sfc.keio.ac.jp (epi.ht.sfc.keio.ac.jp [133.27.170.71]) by mail.sfc.wide.ad.jp (Postfix) with ESMTPSA id 1823227809B; Tue, 23 Aug 2011 00:44:41 +0900 (JST) From: Michio Honda Subject: [PATCH 1/2] sctp: HEARTBEAT negotiation after ASCONF Date: Tue, 23 Aug 2011 00:44:41 +0900 Message-Id: <4F387F15-897B-43B8-ACEA-D38085D42B69@sfc.wide.ad.jp> Cc: Wei Yongjun To: netdev@vger.kernel.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From c2f008caef8deb7dbb4ce629ec6b3c096bceddd9 Mon Sep 17 00:00:00 2001 From: Michio Honda Date: Thu, 16 Jun 2011 10:54:23 +0900 Subject: [PATCH 1/2] sctp: HEARTBEAT negotiation after ASCONF This patch fixes BUG that the ASCONF receiver transmits DATA chunks to the newly added UNCONFIRMED destination. Signed-off-by: Michio Honda --- net/sctp/outqueue.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c index a6d27bf..bcecdba 100644 --- a/net/sctp/outqueue.c +++ b/net/sctp/outqueue.c @@ -917,6 +917,8 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout) * current cwnd). */ if (!list_empty(&q->retransmit)) { + if (asoc->peer.retran_path->state == SCTP_UNCONFIRMED) + goto sctp_flush_out; if (transport == asoc->peer.retran_path) goto retran; @@ -989,6 +991,8 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout) ((new_transport->state == SCTP_INACTIVE) || (new_transport->state == SCTP_UNCONFIRMED))) new_transport = asoc->peer.active_path; + if (new_transport->state == SCTP_UNCONFIRMED) + continue; /* Change packets if necessary. */ if (new_transport != transport) {