Lines Matching full:transport

45 				   struct sctp_transport *transport,
52 struct sctp_transport *transport,
101 struct sctp_transport *transport, in sctp_cacc_skip_3_1_d() argument
104 if (count_of_newacks >= 2 && transport != primary) in sctp_cacc_skip_3_1_d()
116 static inline int sctp_cacc_skip_3_1_f(struct sctp_transport *transport, in sctp_cacc_skip_3_1_f() argument
120 (transport && !transport->cacc.cacc_saw_newack)) in sctp_cacc_skip_3_1_f()
133 struct sctp_transport *transport, in sctp_cacc_skip_3_1() argument
137 if (sctp_cacc_skip_3_1_d(primary, transport, count_of_newacks)) in sctp_cacc_skip_3_1()
139 if (sctp_cacc_skip_3_1_f(transport, count_of_newacks)) in sctp_cacc_skip_3_1()
176 struct sctp_transport *transport, in sctp_cacc_skip() argument
181 (sctp_cacc_skip_3_1(primary, transport, count_of_newacks) || in sctp_cacc_skip()
208 struct sctp_transport *transport; in __sctp_outq_teardown() local
213 list_for_each_entry(transport, &q->asoc->peer.transport_addr_list, in __sctp_outq_teardown()
215 while ((lchunk = sctp_list_dequeue(&transport->transmitted)) != NULL) { in __sctp_outq_teardown()
368 if (chk->transport) in sctp_prsctp_prune_sent()
369 chk->transport->flight_size -= in sctp_prsctp_prune_sent()
423 struct sctp_transport *transport; in sctp_prsctp_prune() local
434 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_prsctp_prune()
437 &transport->transmitted, in sctp_prsctp_prune()
446 /* Mark all the eligible packets on a transport for retransmission. */
448 struct sctp_transport *transport, in sctp_retransmit_mark() argument
455 list_for_each_safe(lchunk, ltemp, &transport->transmitted) { in sctp_retransmit_mark()
470 if (chunk->transport) in sctp_retransmit_mark()
471 chunk->transport->flight_size -= in sctp_retransmit_mark()
496 if (chunk->transport) in sctp_retransmit_mark()
497 transport->flight_size -= sctp_data_size(chunk); in sctp_retransmit_mark()
514 transport->rto_pending = 0; in sctp_retransmit_mark()
525 pr_debug("%s: transport:%p, reason:%d, cwnd:%d, ssthresh:%d, " in sctp_retransmit_mark()
526 "flight_size:%d, pba:%d\n", __func__, transport, reason, in sctp_retransmit_mark()
527 transport->cwnd, transport->ssthresh, transport->flight_size, in sctp_retransmit_mark()
528 transport->partial_bytes_acked); in sctp_retransmit_mark()
531 /* Mark all the eligible packets on a transport for retransmission and force
534 void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, in sctp_retransmit() argument
542 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_T3_RTX); in sctp_retransmit()
546 if (transport == transport->asoc->peer.retran_path) in sctp_retransmit()
547 sctp_assoc_update_retran_path(transport->asoc); in sctp_retransmit()
548 transport->asoc->rtx_data_chunks += in sctp_retransmit()
549 transport->asoc->unack_data; in sctp_retransmit()
553 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_FAST_RTX); in sctp_retransmit()
561 transport->asoc->init_retries++; in sctp_retransmit()
567 sctp_retransmit_mark(q, transport, reason); in sctp_retransmit()
588 * We assume that pkt->transport has already been set.
595 struct sctp_transport *transport = pkt->transport; in __sctp_outq_flush_rtx() local
616 * destination transport address to which the retransmission in __sctp_outq_flush_rtx()
646 &transport->transmitted); in __sctp_outq_flush_rtx()
711 &transport->transmitted); in __sctp_outq_flush_rtx()
761 static int sctp_packet_singleton(struct sctp_transport *transport, in sctp_packet_singleton() argument
764 const struct sctp_association *asoc = transport->asoc; in sctp_packet_singleton()
770 sctp_packet_init(&singleton, transport, sport, dport); in sctp_packet_singleton()
779 /* Current transport being used. It's NOT the same as curr active one */
780 struct sctp_transport *transport; member
784 /* Packet on the current transport above */
789 /* transport: current transport */
793 struct sctp_transport *new_transport = chunk->transport; in sctp_outq_select_transport()
797 /* If we have a prior transport pointer, see if in sctp_outq_select_transport()
800 * current transport. If not a match, then in sctp_outq_select_transport()
801 * try to look up the transport with a given in sctp_outq_select_transport()
806 if (ctx->transport && sctp_cmp_addr_exact(&chunk->dest, in sctp_outq_select_transport()
807 &ctx->transport->ipaddr)) in sctp_outq_select_transport()
808 new_transport = ctx->transport; in sctp_outq_select_transport()
814 /* if we still don't have a new transport, then in sctp_outq_select_transport()
827 * send it to chunk->transport, even if it's in sctp_outq_select_transport()
850 /* Are we switching transports? Take care of transport locks. */ in sctp_outq_select_transport()
851 if (new_transport != ctx->transport) { in sctp_outq_select_transport()
852 ctx->transport = new_transport; in sctp_outq_select_transport()
853 ctx->packet = &ctx->transport->packet; in sctp_outq_select_transport()
855 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_select_transport()
856 list_add_tail(&ctx->transport->send_ready, in sctp_outq_select_transport()
863 * Burst limit to the new transport. in sctp_outq_select_transport()
865 sctp_transport_burst_limited(ctx->transport); in sctp_outq_select_transport()
890 /* Pick the right transport to use. Should always be true for in sctp_outq_flush_ctrl()
891 * the first chunk as we don't have a transport by then. in sctp_outq_flush_ctrl()
904 error = sctp_packet_singleton(ctx->transport, chunk, in sctp_outq_flush_ctrl()
955 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_ctrl()
956 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_ctrl()
960 sctp_transport_reset_reconf_timer(ctx->transport); in sctp_outq_flush_ctrl()
980 if (ctx->transport != ctx->asoc->peer.retran_path) { in sctp_outq_flush_rtx()
982 ctx->transport = ctx->asoc->peer.retran_path; in sctp_outq_flush_rtx()
983 ctx->packet = &ctx->transport->packet; in sctp_outq_flush_rtx()
985 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_flush_rtx()
986 list_add_tail(&ctx->transport->send_ready, in sctp_outq_flush_rtx()
999 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_rtx()
1000 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_rtx()
1056 /* Apply Max.Burst limitation to the current transport in in sctp_outq_flush_data()
1061 if (ctx->transport) in sctp_outq_flush_data()
1062 sctp_transport_burst_limited(ctx->transport); in sctp_outq_flush_data()
1123 &ctx->transport->transmitted); in sctp_outq_flush_data()
1125 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_data()
1126 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_data()
1170 .transport = NULL, in sctp_outq_flush()
1226 struct sctp_transport *transport; in sctp_outq_sack() local
1244 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1245 trace_sctp_probe_path(transport, asoc); in sctp_outq_sack()
1278 list_for_each_entry(transport, transport_list, in sctp_outq_sack()
1281 transport->cacc.cycling_changeover = 0; in sctp_outq_sack()
1283 transport->cacc.cacc_saw_newack = 0; in sctp_outq_sack()
1308 list_for_each_entry(transport, transport_list, transports) { in sctp_outq_sack()
1309 sctp_check_transmitted(q, &transport->transmitted, in sctp_outq_sack()
1310 transport, &chunk->source, sack, in sctp_outq_sack()
1317 if (transport->cacc.cacc_saw_newack) in sctp_outq_sack()
1332 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1333 sctp_mark_missing(q, &transport->transmitted, transport, in sctp_outq_sack()
1396 /* Go through a transport's transmitted list or the association's retransmit
1398 * The retransmit list will not have an associated transport.
1408 struct sctp_transport *transport, in sctp_check_transmitted() argument
1442 if (tchunk->transport) in sctp_check_transmitted()
1443 tchunk->transport->flight_size -= in sctp_check_transmitted()
1455 * count bytes associated with a transport. in sctp_check_transmitted()
1457 if (transport && !tchunk->tsn_gap_acked) { in sctp_check_transmitted()
1473 sctp_transport_update_rto(transport, in sctp_check_transmitted()
1494 transport->cacc.cacc_saw_newack in sctp_check_transmitted()
1501 * chunk had a valid transport (it will not in sctp_check_transmitted()
1502 * have a transport if ASCONF had deleted it in sctp_check_transmitted()
1510 if (!tchunk->transport) in sctp_check_transmitted()
1555 if (tchunk->transport) in sctp_check_transmitted()
1574 if (transport) { in sctp_check_transmitted()
1576 struct sctp_association *asoc = transport->asoc; in sctp_check_transmitted()
1579 * to this transport due to DEL-IP operation. in sctp_check_transmitted()
1581 * send on this transport and shouldn't be in sctp_check_transmitted()
1582 * credited to this transport. in sctp_check_transmitted()
1588 * the destination transport address to which the in sctp_check_transmitted()
1593 transport->error_count = 0; in sctp_check_transmitted()
1594 transport->asoc->overall_error_count = 0; in sctp_check_transmitted()
1608 /* Mark the destination transport address as in sctp_check_transmitted()
1611 if ((transport->state == SCTP_INACTIVE || in sctp_check_transmitted()
1612 transport->state == SCTP_UNCONFIRMED) && in sctp_check_transmitted()
1613 sctp_cmp_addr_exact(&transport->ipaddr, saddr)) { in sctp_check_transmitted()
1615 transport->asoc, in sctp_check_transmitted()
1616 transport, in sctp_check_transmitted()
1621 sctp_transport_raise_cwnd(transport, sack_ctsn, in sctp_check_transmitted()
1624 transport->flight_size -= bytes_acked; in sctp_check_transmitted()
1625 if (transport->flight_size == 0) in sctp_check_transmitted()
1626 transport->partial_bytes_acked = 0; in sctp_check_transmitted()
1651 transport->error_count = 0; in sctp_check_transmitted()
1661 if (!transport->flight_size) { in sctp_check_transmitted()
1662 if (del_timer(&transport->T3_rtx_timer)) in sctp_check_transmitted()
1663 sctp_transport_put(transport); in sctp_check_transmitted()
1665 if (!mod_timer(&transport->T3_rtx_timer, in sctp_check_transmitted()
1666 jiffies + transport->rto)) in sctp_check_transmitted()
1667 sctp_transport_hold(transport); in sctp_check_transmitted()
1671 if (transport->dst) in sctp_check_transmitted()
1672 sctp_transport_dst_confirm(transport); in sctp_check_transmitted()
1682 struct sctp_transport *transport, in sctp_mark_missing() argument
1710 if (!transport || !sctp_cacc_skip(primary, in sctp_mark_missing()
1711 chunk->transport, in sctp_mark_missing()
1732 if (transport) { in sctp_mark_missing()
1734 sctp_retransmit(q, transport, SCTP_RTXR_FAST_RTX); in sctp_mark_missing()
1736 pr_debug("%s: transport:%p, cwnd:%d, ssthresh:%d, " in sctp_mark_missing()
1737 "flight_size:%d, pba:%d\n", __func__, transport, in sctp_mark_missing()
1738 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
1739 transport->flight_size, transport->partial_bytes_acked); in sctp_mark_missing()