sctp: implement enqueue_event for sctp_stream_interleave
enqueue_event is added as a member of sctp_stream_interleave, used to enqueue either data, idata or notification events into user socket rx queue. It replaces sctp_ulpq_tail_event used in the other places with enqueue_event. 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
bd4d627dbd
commit
9162e0ed9e
@@ -41,6 +41,8 @@ struct sctp_stream_interleave {
|
||||
bool (*validate_data)(struct sctp_chunk *chunk);
|
||||
int (*ulpevent_data)(struct sctp_ulpq *ulpq,
|
||||
struct sctp_chunk *chunk, gfp_t gfp);
|
||||
int (*enqueue_event)(struct sctp_ulpq *ulpq,
|
||||
struct sctp_ulpevent *event);
|
||||
};
|
||||
|
||||
void sctp_stream_interleave_init(struct sctp_stream *stream);
|
||||
|
Reference in New Issue
Block a user