Before when implementing sctp prsctp, SCTP_PR_STREAM_STATUS wasn't added, as it needs to save abandoned_(un)sent for every stream. After sctp stream reconf is added in sctp, assoc has structure sctp_stream_out to save per stream info. This patch is to add SCTP_PR_STREAM_STATUS by putting the prsctp per stream statistics into sctp_stream_out. v1->v2: fix an indent issue.
Showing the changes to include (2 of 5 files). Show all
Unified · Split
| @@ -1315,6 +1315,8 @@ struct sctp_inithdr_host { · 1314 unmodified lines | |||
| 1315 | struct sctp_stream_out { | 1315 | struct sctp_stream_out { |
| 1316 | __u16 ssn; | 1316 | __u16 ssn; |
| 1317 | __u8 state; | 1317 | __u8 state; |
| 1318 | __u64 abandoned_unsent[SCTP_PR_INDEX(MAX) + 1]; | ||
| 1319 | __u64 abandoned_sent[SCTP_PR_INDEX(MAX) + 1]; | ||
| 1318 | }; | 1320 | }; |
| 1319 | 1321 | ||
| 1320 | struct sctp_stream_in { | 1322 | struct sctp_stream_in { |
| @@ -115,6 +115,7 @@ typedef __s32 sctp_assoc_t; · 114 unmodified lines | |||
| 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 | #define SCTP_PR_ASSOC_STATUS 115 |
| 118 | #define SCTP_PR_STREAM_STATUS 116 | ||
| 118 | #define SCTP_RECONFIG_SUPPORTED 117 | 119 | #define SCTP_RECONFIG_SUPPORTED 117 |
| 119 | #define SCTP_ENABLE_STREAM_RESET 118 | 120 | #define SCTP_ENABLE_STREAM_RESET 118 |
| 120 | #define SCTP_RESET_STREAMS 119 | 121 | #define SCTP_RESET_STREAMS 119 |