aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sctp/stream_interleave.h
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2017-12-15 00:41:26 +0800
committerDavid S. Miller <davem@davemloft.net>2017-12-15 13:52:21 -0500
commit8e0c3b73cec1b943affde91b3c412ad8266b4694 (patch)
tree1fe6fd360a75d7c56967aebc41cabf95d54949fa /include/net/sctp/stream_interleave.h
parentsctp: add basic structures and make chunk function for ifwdtsn (diff)
downloadlinux-dev-8e0c3b73cec1b943affde91b3c412ad8266b4694.tar.xz
linux-dev-8e0c3b73cec1b943affde91b3c412ad8266b4694.zip
sctp: implement generate_ftsn for sctp_stream_interleave
generate_ftsn is added as a member of sctp_stream_interleave, used to create fwdtsn or ifwdtsn chunk according to abandoned chunks, called in sctp_retransmit and sctp_outq_sack. sctp_generate_iftsn works for ifwdtsn, and sctp_generate_fwdtsn is still used for making fwdtsn. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo R. Leitner <marcelo.leitner@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/stream_interleave.h')
-rw-r--r--include/net/sctp/stream_interleave.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sctp/stream_interleave.h b/include/net/sctp/stream_interleave.h
index 501b2be049a3..66267dbcecba 100644
--- a/include/net/sctp/stream_interleave.h
+++ b/include/net/sctp/stream_interleave.h
@@ -47,6 +47,8 @@ struct sctp_stream_interleave {
struct sctp_chunk *chunk, gfp_t gfp);
void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
void (*abort_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
+ /* (I-)FORWARD-TSN process */
+ void (*generate_ftsn)(struct sctp_outq *q, __u32 ctsn);
};
void sctp_stream_interleave_init(struct sctp_stream *stream);