sctp: add sctp_packet_singleton
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Mon, 14 May 2018 17:34:36 +0000 (14:34 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 May 2018 02:57:14 +0000 (22:57 -0400)
commitb9fd683982c9d190cbccd8a32d885bf84bb4a12d
tree5a7199d94b91d17c06839b624dcc370ebdbd6a41
parent98f3697f8d4129366b5215e47719581db2d54df2
sctp: add sctp_packet_singleton

Factor out the code for generating singletons. It's used only once, but
helps to keep the context contained.

The const variables are to ease the reading of subsequent calls in there.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c