sctp: implement start_pd for sctp_stream_interleave
start_pd is added as a member of sctp_stream_interleave, used to do partial_delivery for data or idata when datalen >= asoc->rwnd in sctp_eat_data. The codes have been done in last patches, but they need to be extracted into start_pd, so that it could be used for SCTP_CMD_PART_DELIVER cmd as well. Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
94014e8d87
commit
be4e0ce10d
@@ -45,6 +45,7 @@ struct sctp_stream_interleave {
|
||||
struct sctp_ulpevent *event);
|
||||
void (*renege_events)(struct sctp_ulpq *ulpq,
|
||||
struct sctp_chunk *chunk, gfp_t gfp);
|
||||
void (*start_pd)(struct sctp_ulpq *ulpq, gfp_t gfp);
|
||||
};
|
||||
|
||||
void sctp_stream_interleave_init(struct sctp_stream *stream);
|
||||
|
Reference in New Issue
Block a user