sctp: do asoc update earlier in sctp_sf_do_dupcook_b
authorXin Long <lucien.xin@gmail.com>
Fri, 30 Apr 2021 20:03:00 +0000 (04:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Apr 2021 22:06:34 +0000 (15:06 -0700)
commit51eac7f2f06b5f60d22dfb06c48d98a227507b8e
tree5f5a2a3eeae31dce1af489113c3e1792fa834ee6
parent7e9269a5acec6d841d22e12770a0b02db4f5d8f2
sctp: do asoc update earlier in sctp_sf_do_dupcook_b

The same thing should be done for sctp_sf_do_dupcook_b().
Meanwhile, SCTP_CMD_UPDATE_ASSOC cmd can be removed.

v1->v2:
  - Fix the return value in sctp_sf_do_assoc_update().

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/command.h
net/sctp/sm_sideeffect.c
net/sctp/sm_statefuns.c