Lines Matching full:transport
202 /* Make an empty list of remote transport addresses. */ in sctp_association_init()
315 struct sctp_transport *transport; in sctp_association_free() local
373 /* Release the transport structures. */ in sctp_association_free()
375 transport = list_entry(pos, struct sctp_transport, transports); in sctp_association_free()
377 sctp_unhash_transport(transport); in sctp_association_free()
378 sctp_transport_free(transport); in sctp_association_free()
422 struct sctp_transport *transport) in sctp_assoc_set_primary() argument
430 asoc->peer.primary_path != transport) in sctp_assoc_set_primary()
433 asoc->peer.primary_path = transport; in sctp_assoc_set_primary()
434 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_set_primary()
438 memcpy(&asoc->peer.primary_addr, &transport->ipaddr, in sctp_assoc_set_primary()
444 if ((transport->state == SCTP_ACTIVE) || in sctp_assoc_set_primary()
445 (transport->state == SCTP_UNKNOWN)) in sctp_assoc_set_primary()
446 asoc->peer.active_path = transport; in sctp_assoc_set_primary()
465 if (transport->cacc.changeover_active) in sctp_assoc_set_primary()
466 transport->cacc.cycling_changeover = changeover; in sctp_assoc_set_primary()
471 transport->cacc.changeover_active = changeover; in sctp_assoc_set_primary()
476 transport->cacc.next_tsn_at_change = asoc->next_tsn; in sctp_assoc_set_primary()
479 /* Remove a transport from an association. */
483 struct sctp_transport *transport; in sctp_assoc_rm_peer() local
498 /* Remove this peer from the transport hashtable */ in sctp_assoc_rm_peer()
501 /* Get the first transport of asoc. */ in sctp_assoc_rm_peer()
503 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_rm_peer()
507 sctp_assoc_set_primary(asoc, transport); in sctp_assoc_rm_peer()
509 asoc->peer.active_path = transport; in sctp_assoc_rm_peer()
511 asoc->peer.retran_path = transport; in sctp_assoc_rm_peer()
513 asoc->peer.last_data_from = transport; in sctp_assoc_rm_peer()
516 asoc->strreset_chunk->transport == peer) { in sctp_assoc_rm_peer()
517 asoc->strreset_chunk->transport = transport; in sctp_assoc_rm_peer()
518 sctp_transport_reset_reconf_timer(transport); in sctp_assoc_rm_peer()
521 /* If we remove the transport an INIT was last sent to, set it to in sctp_assoc_rm_peer()
524 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
529 /* If we remove the transport an SHUTDOWN was last sent to, set it in sctp_assoc_rm_peer()
532 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
537 /* If we remove the transport an ASCONF was last sent to, set it to in sctp_assoc_rm_peer()
541 asoc->addip_last_asconf->transport == peer) in sctp_assoc_rm_peer()
542 asoc->addip_last_asconf->transport = NULL; in sctp_assoc_rm_peer()
550 /* Reset the transport of each chunk on this list */ in sctp_assoc_rm_peer()
553 ch->transport = NULL; in sctp_assoc_rm_peer()
571 if (ch->transport == peer) in sctp_assoc_rm_peer()
572 ch->transport = NULL; in sctp_assoc_rm_peer()
580 /* Add a transport address to an association. */
657 /* Initialize the pmtu of the transport. */ in sctp_assoc_add_peer()
660 /* If this is the first transport addr on this association, in sctp_assoc_add_peer()
699 /* Set the transport's RTO.initial value */ in sctp_assoc_add_peer()
706 /* Add this peer into the transport hashtable */ in sctp_assoc_add_peer()
712 /* Attach the remote transport to our asoc. */ in sctp_assoc_add_peer()
732 /* Delete a transport address from an association. */
738 struct sctp_transport *transport; in sctp_assoc_del_peer() local
741 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_del_peer()
742 if (sctp_cmp_addr_exact(addr, &transport->ipaddr)) { in sctp_assoc_del_peer()
744 sctp_assoc_rm_peer(asoc, transport); in sctp_assoc_del_peer()
750 /* Lookup a transport by address. */
777 /* if the current transport is not the primary one, delete it */ in sctp_assoc_del_nonprimary_peers()
783 /* Engage in transport control operations.
784 * Mark the transport up or down and send a notification to the user.
788 struct sctp_transport *transport, in sctp_assoc_control_transport() argument
795 /* Record the transition on the transport. */ in sctp_assoc_control_transport()
802 if (transport->state == SCTP_PF && in sctp_assoc_control_transport()
805 else if (transport->state == SCTP_UNCONFIRMED && in sctp_assoc_control_transport()
809 transport->state = SCTP_ACTIVE; in sctp_assoc_control_transport()
813 /* If the transport was never confirmed, do not transition it in sctp_assoc_control_transport()
817 if (transport->state != SCTP_UNCONFIRMED) { in sctp_assoc_control_transport()
818 transport->state = SCTP_INACTIVE; in sctp_assoc_control_transport()
821 sctp_transport_dst_release(transport); in sctp_assoc_control_transport()
827 transport->state = SCTP_PF; in sctp_assoc_control_transport()
842 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_control_transport()
912 * Find which transport this TSN was sent on.
919 struct sctp_transport *transport; in sctp_assoc_lookup_tsn() local
931 * The general strategy is to search each transport's transmitted in sctp_assoc_lookup_tsn()
932 * list. Return which transport this TSN lives on. in sctp_assoc_lookup_tsn()
952 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_assoc_lookup_tsn()
955 if (transport == active) in sctp_assoc_lookup_tsn()
957 list_for_each_entry(chunk, &transport->transmitted, in sctp_assoc_lookup_tsn()
960 match = transport; in sctp_assoc_lookup_tsn()
1031 asoc->peer.last_data_from = chunk->transport; in sctp_assoc_bh_rcv()
1039 if (chunk->transport) in sctp_assoc_bh_rcv()
1040 chunk->transport->last_time_heard = ktime_get(); in sctp_assoc_bh_rcv()
1194 * inactive destination transport address, before reporting
1196 * the data to an alternate active destination transport
1213 * transport with state SCTP_ACTIVE exists, round-robin through
1255 /* First, try a score-based selection if both transport states in sctp_trans_elect_best()
1317 /* Keep track of the best PF transport from our in sctp_select_active_and_retran_path()
1341 * destination transport address (and possibly source transport in sctp_select_active_and_retran_path()
1343 * bump the most recently used transport.] in sctp_select_active_and_retran_path()
1359 /* If we failed to find a usable transport, just camp on the in sctp_select_active_and_retran_path()
1416 * transports. This routine is called when a transport's PMTU has changed.