Lines Matching full:transport

202 	/* Make an empty list of remote transport addresses.  */  in sctp_association_init()
316 struct sctp_transport *transport; in sctp_association_free() local
374 /* Release the transport structures. */ in sctp_association_free()
376 transport = list_entry(pos, struct sctp_transport, transports); in sctp_association_free()
378 sctp_unhash_transport(transport); in sctp_association_free()
379 sctp_transport_free(transport); in sctp_association_free()
423 struct sctp_transport *transport) in sctp_assoc_set_primary() argument
431 asoc->peer.primary_path != transport) in sctp_assoc_set_primary()
434 asoc->peer.primary_path = transport; in sctp_assoc_set_primary()
435 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_set_primary()
439 memcpy(&asoc->peer.primary_addr, &transport->ipaddr, in sctp_assoc_set_primary()
445 if ((transport->state == SCTP_ACTIVE) || in sctp_assoc_set_primary()
446 (transport->state == SCTP_UNKNOWN)) in sctp_assoc_set_primary()
447 asoc->peer.active_path = transport; in sctp_assoc_set_primary()
466 if (transport->cacc.changeover_active) in sctp_assoc_set_primary()
467 transport->cacc.cycling_changeover = changeover; in sctp_assoc_set_primary()
472 transport->cacc.changeover_active = changeover; in sctp_assoc_set_primary()
477 transport->cacc.next_tsn_at_change = asoc->next_tsn; in sctp_assoc_set_primary()
480 /* Remove a transport from an association. */
484 struct sctp_transport *transport; in sctp_assoc_rm_peer() local
499 /* Remove this peer from the transport hashtable */ in sctp_assoc_rm_peer()
502 /* Get the first transport of asoc. */ in sctp_assoc_rm_peer()
504 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_rm_peer()
508 sctp_assoc_set_primary(asoc, transport); in sctp_assoc_rm_peer()
510 asoc->peer.active_path = transport; in sctp_assoc_rm_peer()
512 asoc->peer.retran_path = transport; in sctp_assoc_rm_peer()
514 asoc->peer.last_data_from = transport; in sctp_assoc_rm_peer()
517 asoc->strreset_chunk->transport == peer) { in sctp_assoc_rm_peer()
518 asoc->strreset_chunk->transport = transport; in sctp_assoc_rm_peer()
519 sctp_transport_reset_reconf_timer(transport); in sctp_assoc_rm_peer()
522 /* If we remove the transport an INIT was last sent to, set it to in sctp_assoc_rm_peer()
525 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
530 /* If we remove the transport an SHUTDOWN was last sent to, set it in sctp_assoc_rm_peer()
533 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
538 /* If we remove the transport an ASCONF was last sent to, set it to in sctp_assoc_rm_peer()
542 asoc->addip_last_asconf->transport == peer) in sctp_assoc_rm_peer()
543 asoc->addip_last_asconf->transport = NULL; in sctp_assoc_rm_peer()
551 /* Reset the transport of each chunk on this list */ in sctp_assoc_rm_peer()
554 ch->transport = NULL; in sctp_assoc_rm_peer()
572 if (ch->transport == peer) in sctp_assoc_rm_peer()
573 ch->transport = NULL; in sctp_assoc_rm_peer()
581 /* Add a transport address to an association. */
658 /* Initialize the pmtu of the transport. */ in sctp_assoc_add_peer()
661 /* If this is the first transport addr on this association, in sctp_assoc_add_peer()
700 /* Set the transport's RTO.initial value */ in sctp_assoc_add_peer()
707 /* Add this peer into the transport hashtable */ in sctp_assoc_add_peer()
713 /* Attach the remote transport to our asoc. */ in sctp_assoc_add_peer()
733 /* Delete a transport address from an association. */
739 struct sctp_transport *transport; in sctp_assoc_del_peer() local
742 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_del_peer()
743 if (sctp_cmp_addr_exact(addr, &transport->ipaddr)) { in sctp_assoc_del_peer()
745 sctp_assoc_rm_peer(asoc, transport); in sctp_assoc_del_peer()
751 /* Lookup a transport by address. */
778 /* if the current transport is not the primary one, delete it */ in sctp_assoc_del_nonprimary_peers()
784 /* Engage in transport control operations.
785 * Mark the transport up or down and send a notification to the user.
789 struct sctp_transport *transport, in sctp_assoc_control_transport() argument
796 /* Record the transition on the transport. */ in sctp_assoc_control_transport()
803 if (transport->state == SCTP_PF && in sctp_assoc_control_transport()
806 else if (transport->state == SCTP_UNCONFIRMED && in sctp_assoc_control_transport()
810 transport->state = SCTP_ACTIVE; in sctp_assoc_control_transport()
814 /* If the transport was never confirmed, do not transition it in sctp_assoc_control_transport()
818 if (transport->state != SCTP_UNCONFIRMED) { in sctp_assoc_control_transport()
819 transport->state = SCTP_INACTIVE; in sctp_assoc_control_transport()
822 sctp_transport_dst_release(transport); in sctp_assoc_control_transport()
828 transport->state = SCTP_PF; in sctp_assoc_control_transport()
843 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_control_transport()
913 * Find which transport this TSN was sent on.
920 struct sctp_transport *transport; in sctp_assoc_lookup_tsn() local
932 * The general strategy is to search each transport's transmitted in sctp_assoc_lookup_tsn()
933 * list. Return which transport this TSN lives on. in sctp_assoc_lookup_tsn()
953 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_assoc_lookup_tsn()
956 if (transport == active) in sctp_assoc_lookup_tsn()
958 list_for_each_entry(chunk, &transport->transmitted, in sctp_assoc_lookup_tsn()
961 match = transport; in sctp_assoc_lookup_tsn()
1032 asoc->peer.last_data_from = chunk->transport; in sctp_assoc_bh_rcv()
1040 if (chunk->transport) in sctp_assoc_bh_rcv()
1041 chunk->transport->last_time_heard = ktime_get(); in sctp_assoc_bh_rcv()
1195 * inactive destination transport address, before reporting
1197 * the data to an alternate active destination transport
1214 * transport with state SCTP_ACTIVE exists, round-robin through
1256 /* First, try a score-based selection if both transport states in sctp_trans_elect_best()
1318 /* Keep track of the best PF transport from our in sctp_select_active_and_retran_path()
1342 * destination transport address (and possibly source transport in sctp_select_active_and_retran_path()
1344 * bump the most recently used transport.] in sctp_select_active_and_retran_path()
1360 /* If we failed to find a usable transport, just camp on the in sctp_select_active_and_retran_path()
1417 * transports. This routine is called when a transport's PMTU has changed.