mbox series

[net-next,v2,0/3] sctp: Introduce sctp_flush_ctx

Message ID cover.1526142994.git.marcelo.leitner@gmail.com
Headers show
Series sctp: Introduce sctp_flush_ctx | expand


'Marcelo Ricardo Leitner' May 12, 2018, 10:21 p.m. UTC
This struct will hold all the context used during the outq flush, so we
don't have to pass lots of pointers all around.

Checked on x86_64, the compiler inlines all these functions and there is no
derreference added because of the struct.

This patchset depends on 'sctp: refactor sctp_outq_flush'

Changes since v1:
- updated to build on top of v2 of 'sctp: refactor sctp_outq_flush'

Marcelo Ricardo Leitner (3):
  sctp: add sctp_flush_ctx, a context struct on outq_flush routines
  sctp: add asoc and packet to sctp_flush_ctx
  sctp: checkpatch fixups

 net/sctp/outqueue.c | 259 ++++++++++++++++++++++++----------------------------
 1 file changed, 119 insertions(+), 140 deletions(-)