]> 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)
commitacbb7f385fbb2ac56f328e286cbaf21e28baf45f
tree5a7199d94b91d17c06839b624dcc370ebdbd6a41
parent2caf23ba41c831c780f19dd632233c1432f37cae
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