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

sctp_ulpevent_nofity_peer_addr_change() would be called in
sctp_assoc_set_primary() to send SCTP_ADDR_MADE_PRIM event
when this transport is set to the primary path of the asoc.

This event is described in rfc6458#section-6.1.2:

  SCTP_ADDR_MADE_PRIM:  This address has now been made the primary
     destination address.  This notification is provided whenever an
     address is made primary.

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>
net/sctp/associola.c