Lines Matching refs:transport
44 struct sctp_transport *transport,
51 struct sctp_transport *transport,
100 struct sctp_transport *transport, in sctp_cacc_skip_3_1_d() argument
103 if (count_of_newacks >= 2 && transport != primary) in sctp_cacc_skip_3_1_d()
115 static inline int sctp_cacc_skip_3_1_f(struct sctp_transport *transport, in sctp_cacc_skip_3_1_f() argument
119 (transport && !transport->cacc.cacc_saw_newack)) in sctp_cacc_skip_3_1_f()
132 struct sctp_transport *transport, in sctp_cacc_skip_3_1() argument
136 if (sctp_cacc_skip_3_1_d(primary, transport, count_of_newacks)) in sctp_cacc_skip_3_1()
138 if (sctp_cacc_skip_3_1_f(transport, count_of_newacks)) in sctp_cacc_skip_3_1()
175 struct sctp_transport *transport, in sctp_cacc_skip() argument
180 (sctp_cacc_skip_3_1(primary, transport, count_of_newacks) || in sctp_cacc_skip()
207 struct sctp_transport *transport; in __sctp_outq_teardown() local
212 list_for_each_entry(transport, &q->asoc->peer.transport_addr_list, in __sctp_outq_teardown()
214 while ((lchunk = sctp_list_dequeue(&transport->transmitted)) != NULL) { in __sctp_outq_teardown()
367 if (chk->transport) in sctp_prsctp_prune_sent()
368 chk->transport->flight_size -= in sctp_prsctp_prune_sent()
422 struct sctp_transport *transport; in sctp_prsctp_prune() local
433 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_prsctp_prune()
436 &transport->transmitted, in sctp_prsctp_prune()
447 struct sctp_transport *transport, in sctp_retransmit_mark() argument
454 list_for_each_safe(lchunk, ltemp, &transport->transmitted) { in sctp_retransmit_mark()
469 if (chunk->transport) in sctp_retransmit_mark()
470 chunk->transport->flight_size -= in sctp_retransmit_mark()
495 if (chunk->transport) in sctp_retransmit_mark()
496 transport->flight_size -= sctp_data_size(chunk); in sctp_retransmit_mark()
513 transport->rto_pending = 0; in sctp_retransmit_mark()
525 "flight_size:%d, pba:%d\n", __func__, transport, reason, in sctp_retransmit_mark()
526 transport->cwnd, transport->ssthresh, transport->flight_size, in sctp_retransmit_mark()
527 transport->partial_bytes_acked); in sctp_retransmit_mark()
533 void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, in sctp_retransmit() argument
541 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_T3_RTX); in sctp_retransmit()
545 if (transport == transport->asoc->peer.retran_path) in sctp_retransmit()
546 sctp_assoc_update_retran_path(transport->asoc); in sctp_retransmit()
547 transport->asoc->rtx_data_chunks += in sctp_retransmit()
548 transport->asoc->unack_data; in sctp_retransmit()
552 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_FAST_RTX); in sctp_retransmit()
560 transport->asoc->init_retries++; in sctp_retransmit()
566 sctp_retransmit_mark(q, transport, reason); in sctp_retransmit()
594 struct sctp_transport *transport = pkt->transport; in __sctp_outq_flush_rtx() local
645 &transport->transmitted); in __sctp_outq_flush_rtx()
710 &transport->transmitted); in __sctp_outq_flush_rtx()
760 static int sctp_packet_singleton(struct sctp_transport *transport, in sctp_packet_singleton() argument
763 const struct sctp_association *asoc = transport->asoc; in sctp_packet_singleton()
769 sctp_packet_init(&singleton, transport, sport, dport); in sctp_packet_singleton()
779 struct sctp_transport *transport; member
792 struct sctp_transport *new_transport = chunk->transport; in sctp_outq_select_transport()
805 if (ctx->transport && sctp_cmp_addr_exact(&chunk->dest, in sctp_outq_select_transport()
806 &ctx->transport->ipaddr)) in sctp_outq_select_transport()
807 new_transport = ctx->transport; in sctp_outq_select_transport()
850 if (new_transport != ctx->transport) { in sctp_outq_select_transport()
851 ctx->transport = new_transport; in sctp_outq_select_transport()
852 ctx->packet = &ctx->transport->packet; in sctp_outq_select_transport()
854 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_select_transport()
855 list_add_tail(&ctx->transport->send_ready, in sctp_outq_select_transport()
864 sctp_transport_burst_limited(ctx->transport); in sctp_outq_select_transport()
903 error = sctp_packet_singleton(ctx->transport, chunk, in sctp_outq_flush_ctrl()
954 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_ctrl()
955 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_ctrl()
959 sctp_transport_reset_reconf_timer(ctx->transport); in sctp_outq_flush_ctrl()
979 if (ctx->transport != ctx->asoc->peer.retran_path) { in sctp_outq_flush_rtx()
981 ctx->transport = ctx->asoc->peer.retran_path; in sctp_outq_flush_rtx()
982 ctx->packet = &ctx->transport->packet; in sctp_outq_flush_rtx()
984 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_flush_rtx()
985 list_add_tail(&ctx->transport->send_ready, in sctp_outq_flush_rtx()
998 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_rtx()
999 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_rtx()
1060 if (ctx->transport) in sctp_outq_flush_data()
1061 sctp_transport_burst_limited(ctx->transport); in sctp_outq_flush_data()
1122 &ctx->transport->transmitted); in sctp_outq_flush_data()
1124 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_data()
1125 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_data()
1169 .transport = NULL, in sctp_outq_flush()
1225 struct sctp_transport *transport; in sctp_outq_sack() local
1271 list_for_each_entry(transport, transport_list, in sctp_outq_sack()
1274 transport->cacc.cycling_changeover = 0; in sctp_outq_sack()
1276 transport->cacc.cacc_saw_newack = 0; in sctp_outq_sack()
1301 list_for_each_entry(transport, transport_list, transports) { in sctp_outq_sack()
1302 sctp_check_transmitted(q, &transport->transmitted, in sctp_outq_sack()
1303 transport, &chunk->source, sack, in sctp_outq_sack()
1310 if (transport->cacc.cacc_saw_newack) in sctp_outq_sack()
1325 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1326 sctp_mark_missing(q, &transport->transmitted, transport, in sctp_outq_sack()
1401 struct sctp_transport *transport, in sctp_check_transmitted() argument
1435 if (tchunk->transport) in sctp_check_transmitted()
1436 tchunk->transport->flight_size -= in sctp_check_transmitted()
1450 if (transport && !tchunk->tsn_gap_acked) { in sctp_check_transmitted()
1466 sctp_transport_update_rto(transport, in sctp_check_transmitted()
1487 transport->cacc.cacc_saw_newack in sctp_check_transmitted()
1503 if (!tchunk->transport) in sctp_check_transmitted()
1548 if (tchunk->transport) in sctp_check_transmitted()
1567 if (transport) { in sctp_check_transmitted()
1569 struct sctp_association *asoc = transport->asoc; in sctp_check_transmitted()
1586 transport->error_count = 0; in sctp_check_transmitted()
1587 transport->asoc->overall_error_count = 0; in sctp_check_transmitted()
1604 if ((transport->state == SCTP_INACTIVE || in sctp_check_transmitted()
1605 transport->state == SCTP_UNCONFIRMED) && in sctp_check_transmitted()
1606 sctp_cmp_addr_exact(&transport->ipaddr, saddr)) { in sctp_check_transmitted()
1608 transport->asoc, in sctp_check_transmitted()
1609 transport, in sctp_check_transmitted()
1614 sctp_transport_raise_cwnd(transport, sack_ctsn, in sctp_check_transmitted()
1617 transport->flight_size -= bytes_acked; in sctp_check_transmitted()
1618 if (transport->flight_size == 0) in sctp_check_transmitted()
1619 transport->partial_bytes_acked = 0; in sctp_check_transmitted()
1644 transport->error_count = 0; in sctp_check_transmitted()
1654 if (!transport->flight_size) { in sctp_check_transmitted()
1655 if (del_timer(&transport->T3_rtx_timer)) in sctp_check_transmitted()
1656 sctp_transport_put(transport); in sctp_check_transmitted()
1658 if (!mod_timer(&transport->T3_rtx_timer, in sctp_check_transmitted()
1659 jiffies + transport->rto)) in sctp_check_transmitted()
1660 sctp_transport_hold(transport); in sctp_check_transmitted()
1664 if (transport->dst) in sctp_check_transmitted()
1665 sctp_transport_dst_confirm(transport); in sctp_check_transmitted()
1675 struct sctp_transport *transport, in sctp_mark_missing() argument
1703 if (!transport || !sctp_cacc_skip(primary, in sctp_mark_missing()
1704 chunk->transport, in sctp_mark_missing()
1725 if (transport) { in sctp_mark_missing()
1727 sctp_retransmit(q, transport, SCTP_RTXR_FAST_RTX); in sctp_mark_missing()
1730 "flight_size:%d, pba:%d\n", __func__, transport, in sctp_mark_missing()
1731 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
1732 transport->flight_size, transport->partial_bytes_acked); in sctp_mark_missing()