sctp: add SCTP_SEND_FAILED_EVENT event
authorXin Long <lucien.xin@gmail.com>
Tue, 8 Oct 2019 11:27:36 +0000 (19:27 +0800)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Thu, 10 Oct 2019 00:06:58 +0000 (17:06 -0700)
commitb6e6b5f1da7e8d092f86a4351802c27c0170c5a5
tree52b8bb64295d155ae03b0a79e072ad6a290a255a
parent5cd0b91733145be7260cf5988e25831d35e5e8fd
sctp: add SCTP_SEND_FAILED_EVENT event

This patch is to add a new event SCTP_SEND_FAILED_EVENT described in
rfc6458#section-6.1.11. It's a update of SCTP_SEND_FAILED event:

  struct sctp_sndrcvinfo ssf_info is replaced with
  struct sctp_sndinfo ssfe_info in struct sctp_send_failed_event.

SCTP_SEND_FAILED is being deprecated, but we don't remove it in this
patch. Both are being processed in sctp_datamsg_destroy() when the
corresp event flag is set.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
include/net/sctp/ulpevent.h
include/uapi/linux/sctp.h
net/sctp/chunk.c
net/sctp/ulpevent.c