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()
783 /* Current transport being used. It's NOT the same as curr active one */
784 struct sctp_transport *transport; member
788 /* Packet on the current transport above */
793 /* transport: current transport */
797 struct sctp_transport *new_transport = chunk->transport; in sctp_outq_select_transport()
801 /* If we have a prior transport pointer, see if in sctp_outq_select_transport()
804 * current transport. If not a match, then in sctp_outq_select_transport()
805 * try to look up the transport with a given in sctp_outq_select_transport()
810 if (ctx->transport && sctp_cmp_addr_exact(&chunk->dest, in sctp_outq_select_transport()
811 &ctx->transport->ipaddr)) in sctp_outq_select_transport()
812 new_transport = ctx->transport; in sctp_outq_select_transport()
818 /* if we still don't have a new transport, then in sctp_outq_select_transport()
831 * send it to chunk->transport, even if it's in sctp_outq_select_transport()
854 /* Are we switching transports? Take care of transport locks. */ in sctp_outq_select_transport()
855 if (new_transport != ctx->transport) { in sctp_outq_select_transport()
856 ctx->transport = new_transport; in sctp_outq_select_transport()
857 ctx->packet = &ctx->transport->packet; in sctp_outq_select_transport()
859 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_select_transport()
860 list_add_tail(&ctx->transport->send_ready, in sctp_outq_select_transport()
867 * Burst limit to the new transport. in sctp_outq_select_transport()
869 sctp_transport_burst_limited(ctx->transport); in sctp_outq_select_transport()
894 /* Pick the right transport to use. Should always be true for in sctp_outq_flush_ctrl()
895 * the first chunk as we don't have a transport by then. in sctp_outq_flush_ctrl()
908 error = sctp_packet_singleton(ctx->transport, chunk, in sctp_outq_flush_ctrl()
938 sctp_packet_singleton(ctx->transport, chunk, ctx->gfp); in sctp_outq_flush_ctrl()
964 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_ctrl()
965 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_ctrl()
969 sctp_transport_reset_reconf_timer(ctx->transport); in sctp_outq_flush_ctrl()
989 if (ctx->transport != ctx->asoc->peer.retran_path) { in sctp_outq_flush_rtx()
991 ctx->transport = ctx->asoc->peer.retran_path; in sctp_outq_flush_rtx()
992 ctx->packet = &ctx->transport->packet; in sctp_outq_flush_rtx()
994 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_flush_rtx()
995 list_add_tail(&ctx->transport->send_ready, in sctp_outq_flush_rtx()
1008 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_rtx()
1009 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_rtx()
1065 /* Apply Max.Burst limitation to the current transport in in sctp_outq_flush_data()
1070 if (ctx->transport) in sctp_outq_flush_data()
1071 sctp_transport_burst_limited(ctx->transport); in sctp_outq_flush_data()
1132 &ctx->transport->transmitted); in sctp_outq_flush_data()
1134 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_data()
1135 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_data()
1186 .transport = NULL, in sctp_outq_flush()
1242 struct sctp_transport *transport; in sctp_outq_sack() local
1260 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1261 trace_sctp_probe_path(transport, asoc); in sctp_outq_sack()
1294 list_for_each_entry(transport, transport_list, in sctp_outq_sack()
1297 transport->cacc.cycling_changeover = 0; in sctp_outq_sack()
1299 transport->cacc.cacc_saw_newack = 0; in sctp_outq_sack()
1324 list_for_each_entry(transport, transport_list, transports) { in sctp_outq_sack()
1325 sctp_check_transmitted(q, &transport->transmitted, in sctp_outq_sack()
1326 transport, &chunk->source, sack, in sctp_outq_sack()
1333 if (transport->cacc.cacc_saw_newack) in sctp_outq_sack()
1348 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1349 sctp_mark_missing(q, &transport->transmitted, transport, in sctp_outq_sack()
1412 /* Go through a transport's transmitted list or the association's retransmit
1414 * The retransmit list will not have an associated transport.
1424 struct sctp_transport *transport, in sctp_check_transmitted() argument
1458 if (tchunk->transport) in sctp_check_transmitted()
1459 tchunk->transport->flight_size -= in sctp_check_transmitted()
1471 * count bytes associated with a transport. in sctp_check_transmitted()
1473 if (transport && !tchunk->tsn_gap_acked) { in sctp_check_transmitted()
1489 sctp_transport_update_rto(transport, in sctp_check_transmitted()
1510 transport->cacc.cacc_saw_newack in sctp_check_transmitted()
1517 * chunk had a valid transport (it will not in sctp_check_transmitted()
1518 * have a transport if ASCONF had deleted it in sctp_check_transmitted()
1526 if (!tchunk->transport) in sctp_check_transmitted()
1571 if (tchunk->transport) in sctp_check_transmitted()
1590 if (transport) { in sctp_check_transmitted()
1592 struct sctp_association *asoc = transport->asoc; in sctp_check_transmitted()
1595 * to this transport due to DEL-IP operation. in sctp_check_transmitted()
1597 * send on this transport and shouldn't be in sctp_check_transmitted()
1598 * credited to this transport. in sctp_check_transmitted()
1604 * the destination transport address to which the in sctp_check_transmitted()
1609 transport->error_count = 0; in sctp_check_transmitted()
1610 transport->asoc->overall_error_count = 0; in sctp_check_transmitted()
1624 /* Mark the destination transport address as in sctp_check_transmitted()
1627 if ((transport->state == SCTP_INACTIVE || in sctp_check_transmitted()
1628 transport->state == SCTP_UNCONFIRMED) && in sctp_check_transmitted()
1629 sctp_cmp_addr_exact(&transport->ipaddr, saddr)) { in sctp_check_transmitted()
1631 transport->asoc, in sctp_check_transmitted()
1632 transport, in sctp_check_transmitted()
1637 sctp_transport_raise_cwnd(transport, sack_ctsn, in sctp_check_transmitted()
1640 transport->flight_size -= bytes_acked; in sctp_check_transmitted()
1641 if (transport->flight_size == 0) in sctp_check_transmitted()
1642 transport->partial_bytes_acked = 0; in sctp_check_transmitted()
1667 transport->error_count = 0; in sctp_check_transmitted()
1677 if (!transport->flight_size) { in sctp_check_transmitted()
1678 if (del_timer(&transport->T3_rtx_timer)) in sctp_check_transmitted()
1679 sctp_transport_put(transport); in sctp_check_transmitted()
1681 if (!mod_timer(&transport->T3_rtx_timer, in sctp_check_transmitted()
1682 jiffies + transport->rto)) in sctp_check_transmitted()
1683 sctp_transport_hold(transport); in sctp_check_transmitted()
1687 if (transport->dst) in sctp_check_transmitted()
1688 sctp_transport_dst_confirm(transport); in sctp_check_transmitted()
1698 struct sctp_transport *transport, in sctp_mark_missing() argument
1726 if (!transport || !sctp_cacc_skip(primary, in sctp_mark_missing()
1727 chunk->transport, in sctp_mark_missing()
1748 if (transport) { in sctp_mark_missing()
1750 sctp_retransmit(q, transport, SCTP_RTXR_FAST_RTX); in sctp_mark_missing()
1752 pr_debug("%s: transport:%p, cwnd:%d, ssthresh:%d, " in sctp_mark_missing()
1753 "flight_size:%d, pba:%d\n", __func__, transport, in sctp_mark_missing()
1754 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
1755 transport->flight_size, transport->partial_bytes_acked); in sctp_mark_missing()