Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2020 22:16:14 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360711 - stable/11/sys/netinet
Message-ID:  <202005062216.046MGEZ0035630@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed May  6 22:16:14 2020
New Revision: 360711
URL: https://svnweb.freebsd.org/changeset/base/360711

Log:
  MFC r350216: Improve PD-API for SCTP
  
  Wakeup the application when doing PD-API for unordered DATA chunks.
  Work done with rrs@.

Modified:
  stable/11/sys/netinet/sctp_indata.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netinet/sctp_indata.c
==============================================================================
--- stable/11/sys/netinet/sctp_indata.c	Wed May  6 22:15:09 2020	(r360710)
+++ stable/11/sys/netinet/sctp_indata.c	Wed May  6 22:16:14 2020	(r360711)
@@ -913,6 +913,9 @@ restart:
 			break;
 		}
 	}
+	if (cnt_added && strm->pd_api_started) {
+		sctp_wakeup_the_read_socket(stcb->sctp_ep, stcb, SCTP_SO_NOT_LOCKED);
+	}
 	if ((control->length > pd_point) && (strm->pd_api_started == 0)) {
 		strm->pd_api_started = 1;
 		control->pdapi_started = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005062216.046MGEZ0035630>