From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] sctp: get pr_assoc and pr_stream all status with SCTP_PR_SCTP_ALL instead Date: Tue, 16 Oct 2018 09:59:18 -0700 (PDT) Message-ID: <20181016.095918.2016842324386473147.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, marcelo.leitner@gmail.com, nhorman@tuxdriver.com To: lucien.xin@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:53380 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbeJQAuh (ORCPT ); Tue, 16 Oct 2018 20:50:37 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Xin Long Date: Tue, 16 Oct 2018 15:52:02 +0800 > According to rfc7496 section 4.3 or 4.4: > > sprstat_policy: This parameter indicates for which PR-SCTP policy > the user wants the information. It is an error to use > SCTP_PR_SCTP_NONE in sprstat_policy. If SCTP_PR_SCTP_ALL is used, > the counters provided are aggregated over all supported policies. > > We change to dump pr_assoc and pr_stream all status by SCTP_PR_SCTP_ALL > instead, and return error for SCTP_PR_SCTP_NONE, as it also said "It is > an error to use SCTP_PR_SCTP_NONE in sprstat_policy. " > > Fixes: 826d253d57b1 ("sctp: add SCTP_PR_ASSOC_STATUS on sctp sockopt") > Fixes: d229d48d183f ("sctp: add SCTP_PR_STREAM_STATUS sockopt for prsctp") > Reported-by: Ying Xu > Signed-off-by: Xin Long Applied and queued up for -stable.