History

sctp: add SCTP_PR_STREAM_STATUS sockopt for prsctp

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.

Xin Long committed 9 years ago

Commit d229d481 parent cdccf745 files · +84 −2Browse files

Showing the changes to include (2 of 5 files). Show all

Unified · Split

2 files
  1. include/net/sctp/structs.h +2 −0
  2. include/uapi/linux/sctp.h +1 −0
include/net/sctp/structs.h+2−0
@@ -1315,6 +1315,8 @@ struct sctp_inithdr_host { · 1314 unmodified lines
13151315 struct sctp_stream_out {
13161316 __u16 ssn;
13171317 __u8 state;
1318+ __u64 abandoned_unsent[SCTP_PR_INDEX(MAX) + 1];
1319+ __u64 abandoned_sent[SCTP_PR_INDEX(MAX) + 1];
13181320 };
13191321
13201322 struct sctp_stream_in {
include/uapi/linux/sctp.h+1−0
@@ -115,6 +115,7 @@ typedef __s32 sctp_assoc_t; · 114 unmodified lines
115115 #define SCTP_PR_SUPPORTED 113
116116 #define SCTP_DEFAULT_PRINFO 114
117117 #define SCTP_PR_ASSOC_STATUS 115
118+#define SCTP_PR_STREAM_STATUS 116
118119 #define SCTP_RECONFIG_SUPPORTED 117
119120 #define SCTP_ENABLE_STREAM_RESET 118
120121 #define SCTP_RESET_STREAMS 119

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t