Skip to content

sctp: unify sctp_make_op_error_fixed and sctp_make_op_error_space

Marcelo Ricardo Leitner linux-sctp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sctp: allow sctp_init_cause to return errorsinclude/net/sctp/sm.h net/sctp/sm_make_chunk.c+10 -40 replies
2/2sctp: add sctp_make_op_error_limited and reuse inner functionsnet/sctp/sm_make_chunk.c+46 -847 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/2] sctp: unify sctp_make_op_error_fixed and sctp_make_op_error_space

These two variants are very close to each other and can be merged to avoid code duplication. That's what this patchset does.

First, we allow sctp_init_cause to return errors, which then allow us to add sctp_make_op_error_limited that handles both situations.

Marcelo Ricardo Leitner (2):
sctp: allow sctp_init_cause to return errors
sctp: add sctp_make_op_error_limited and reuse inner functions

 include/net/sctp/sm.h    |   2 +-
 net/sctp/sm_make_chunk.c | 134 ++++++++++++++++++-----------------------------
 2 files changed, 52 insertions(+), 84 deletions(-)

--
2.14.3