]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c58cc2bc702b91c1e6f40262a871e869d6f8b1c
tree5a7199d94b91d17c06839b624dcc370ebdbd6a41
parentc6f74ff98840ea2bc31c8bb1736f775b46b2890a
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