Lines Matching full:transport
205 /* Make an empty list of remote transport addresses. */ in sctp_association_init()
319 struct sctp_transport *transport; in sctp_association_free() local
377 /* Release the transport structures. */ in sctp_association_free()
379 transport = list_entry(pos, struct sctp_transport, transports); in sctp_association_free()
381 sctp_unhash_transport(transport); in sctp_association_free()
382 sctp_transport_free(transport); in sctp_association_free()
426 struct sctp_transport *transport) in sctp_assoc_set_primary() argument
434 asoc->peer.primary_path != transport) in sctp_assoc_set_primary()
437 asoc->peer.primary_path = transport; in sctp_assoc_set_primary()
438 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_set_primary()
442 memcpy(&asoc->peer.primary_addr, &transport->ipaddr, in sctp_assoc_set_primary()
448 if ((transport->state == SCTP_ACTIVE) || in sctp_assoc_set_primary()
449 (transport->state == SCTP_UNKNOWN)) in sctp_assoc_set_primary()
450 asoc->peer.active_path = transport; in sctp_assoc_set_primary()
469 if (transport->cacc.changeover_active) in sctp_assoc_set_primary()
470 transport->cacc.cycling_changeover = changeover; in sctp_assoc_set_primary()
475 transport->cacc.changeover_active = changeover; in sctp_assoc_set_primary()
480 transport->cacc.next_tsn_at_change = asoc->next_tsn; in sctp_assoc_set_primary()
483 /* Remove a transport from an association. */
487 struct sctp_transport *transport; in sctp_assoc_rm_peer() local
502 /* Remove this peer from the transport hashtable */ in sctp_assoc_rm_peer()
505 /* Get the first transport of asoc. */ in sctp_assoc_rm_peer()
507 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_rm_peer()
511 sctp_assoc_set_primary(asoc, transport); in sctp_assoc_rm_peer()
513 asoc->peer.active_path = transport; in sctp_assoc_rm_peer()
515 asoc->peer.retran_path = transport; in sctp_assoc_rm_peer()
517 asoc->peer.last_data_from = transport; in sctp_assoc_rm_peer()
520 asoc->strreset_chunk->transport == peer) { in sctp_assoc_rm_peer()
521 asoc->strreset_chunk->transport = transport; in sctp_assoc_rm_peer()
522 sctp_transport_reset_reconf_timer(transport); in sctp_assoc_rm_peer()
525 /* If we remove the transport an INIT was last sent to, set it to in sctp_assoc_rm_peer()
528 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
533 /* If we remove the transport an SHUTDOWN was last sent to, set it in sctp_assoc_rm_peer()
536 * transport, maintaining the cycle. in sctp_assoc_rm_peer()
541 /* If we remove the transport an ASCONF was last sent to, set it to in sctp_assoc_rm_peer()
545 asoc->addip_last_asconf->transport == peer) in sctp_assoc_rm_peer()
546 asoc->addip_last_asconf->transport = NULL; in sctp_assoc_rm_peer()
554 /* Reset the transport of each chunk on this list */ in sctp_assoc_rm_peer()
557 ch->transport = NULL; in sctp_assoc_rm_peer()
575 if (ch->transport == peer) in sctp_assoc_rm_peer()
576 ch->transport = NULL; in sctp_assoc_rm_peer()
584 /* Add a transport address to an association. */
664 /* Initialize the pmtu of the transport. */ in sctp_assoc_add_peer()
667 /* If this is the first transport addr on this association, in sctp_assoc_add_peer()
706 /* Set the transport's RTO.initial value */ in sctp_assoc_add_peer()
713 /* Add this peer into the transport hashtable */ in sctp_assoc_add_peer()
721 /* Attach the remote transport to our asoc. */ in sctp_assoc_add_peer()
741 /* Delete a transport address from an association. */
747 struct sctp_transport *transport; in sctp_assoc_del_peer() local
750 transport = list_entry(pos, struct sctp_transport, transports); in sctp_assoc_del_peer()
751 if (sctp_cmp_addr_exact(addr, &transport->ipaddr)) { in sctp_assoc_del_peer()
753 sctp_assoc_rm_peer(asoc, transport); in sctp_assoc_del_peer()
759 /* Lookup a transport by address. */
786 /* if the current transport is not the primary one, delete it */ in sctp_assoc_del_nonprimary_peers()
792 /* Engage in transport control operations.
793 * Mark the transport up or down and send a notification to the user.
797 struct sctp_transport *transport, in sctp_assoc_control_transport() argument
804 /* Record the transition on the transport. */ in sctp_assoc_control_transport()
811 if (transport->state == SCTP_PF && in sctp_assoc_control_transport()
814 else if (transport->state == SCTP_UNCONFIRMED && in sctp_assoc_control_transport()
818 transport->state = SCTP_ACTIVE; in sctp_assoc_control_transport()
819 sctp_transport_pl_reset(transport); in sctp_assoc_control_transport()
823 /* If the transport was never confirmed, do not transition it in sctp_assoc_control_transport()
827 if (transport->state != SCTP_UNCONFIRMED) { in sctp_assoc_control_transport()
828 transport->state = SCTP_INACTIVE; in sctp_assoc_control_transport()
829 sctp_transport_pl_reset(transport); in sctp_assoc_control_transport()
832 sctp_transport_dst_release(transport); in sctp_assoc_control_transport()
838 transport->state = SCTP_PF; in sctp_assoc_control_transport()
853 sctp_ulpevent_notify_peer_addr_change(transport, in sctp_assoc_control_transport()
923 * Find which transport this TSN was sent on.
930 struct sctp_transport *transport; in sctp_assoc_lookup_tsn() local
942 * The general strategy is to search each transport's transmitted in sctp_assoc_lookup_tsn()
943 * list. Return which transport this TSN lives on. in sctp_assoc_lookup_tsn()
963 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_assoc_lookup_tsn()
966 if (transport == active) in sctp_assoc_lookup_tsn()
968 list_for_each_entry(chunk, &transport->transmitted, in sctp_assoc_lookup_tsn()
971 match = transport; in sctp_assoc_lookup_tsn()
1042 asoc->peer.last_data_from = chunk->transport; in sctp_assoc_bh_rcv()
1050 if (chunk->transport) in sctp_assoc_bh_rcv()
1051 chunk->transport->last_time_heard = ktime_get(); in sctp_assoc_bh_rcv()
1205 * inactive destination transport address, before reporting
1207 * the data to an alternate active destination transport
1224 * transport with state SCTP_ACTIVE exists, round-robin through
1266 /* First, try a score-based selection if both transport states in sctp_trans_elect_best()
1328 /* Keep track of the best PF transport from our in sctp_select_active_and_retran_path()
1352 * destination transport address (and possibly source transport in sctp_select_active_and_retran_path()
1354 * bump the most recently used transport.] in sctp_select_active_and_retran_path()
1370 /* If we failed to find a usable transport, just camp on the in sctp_select_active_and_retran_path()
1427 * transports. This routine is called when a transport's PMTU has changed.