aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2016-07-09 07:47:42 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-11 16:25:39 -0400
commit826d253d57b11f69add81c8086d2e7f1dce5ec77 (patch)
treeb811d99d0748e7a3e84d39768e014f63adfa2d14 /include/uapi/linux
parentf959fb442c35f4b61fea341401b8463dd0a1b959 (diff)
sctp: add SCTP_PR_ASSOC_STATUS on sctp sockopt
This patch adds SCTP_PR_ASSOC_STATUS to sctp sockopt, which is used to dump the prsctp statistics info from the asoc. The prsctp statistics includes abandoned_sent/unsent from the asoc. abandoned_sent is the count of the packets we drop packets from retransmit/transmited queue, and abandoned_unsent is the count of the packets we drop from out_queue according to the policy. Note: another option for prsctp statistics dump described in rfc is SCTP_PR_STREAM_STATUS, which is used to dump the prsctp statistics info from each stream. But by now, linux doesn't yet have per stream statistics info, it needs rfc6525 to be implemented. As the prsctp statistics for each stream has to be based on per stream statistics, we will delay it until rfc6525 is done in linux. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/sctp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/sctp.h b/include/uapi/linux/sctp.h
index 984cf2e9a61d..d304f4c9792c 100644
--- a/include/uapi/linux/sctp.h
+++ b/include/uapi/linux/sctp.h
@@ -114,6 +114,7 @@ typedef __s32 sctp_assoc_t;
114#define SCTP_GET_ASSOC_STATS 112 /* Read only */ 114#define SCTP_GET_ASSOC_STATS 112 /* Read only */
115#define SCTP_PR_SUPPORTED 113 115#define SCTP_PR_SUPPORTED 113
116#define SCTP_DEFAULT_PRINFO 114 116#define SCTP_DEFAULT_PRINFO 114
117#define SCTP_PR_ASSOC_STATUS 115
117 118
118/* PR-SCTP policies */ 119/* PR-SCTP policies */
119#define SCTP_PR_SCTP_NONE 0x0000 120#define SCTP_PR_SCTP_NONE 0x0000
@@ -926,6 +927,17 @@ struct sctp_paddrthlds {
926 __u16 spt_pathpfthld; 927 __u16 spt_pathpfthld;
927}; 928};
928 929
930/*
931 * Socket Option for Getting the Association/Stream-Specific PR-SCTP Status
932 */
933struct sctp_prstatus {
934 sctp_assoc_t sprstat_assoc_id;
935 __u16 sprstat_sid;
936 __u16 sprstat_policy;
937 __u64 sprstat_abandoned_unsent;
938 __u64 sprstat_abandoned_sent;
939};
940
929struct sctp_default_prinfo { 941struct sctp_default_prinfo {
930 sctp_assoc_t pr_assoc_id; 942 sctp_assoc_t pr_assoc_id;
931 __u32 pr_value; 943 __u32 pr_value;