• Home
  • Raw
  • Download

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()
426 struct sctp_transport *transport; in sctp_prsctp_prune() local
437 list_for_each_entry(transport, &asoc->peer.transport_addr_list, in sctp_prsctp_prune()
440 &transport->transmitted, in sctp_prsctp_prune()
449 /* Mark all the eligible packets on a transport for retransmission. */
451 struct sctp_transport *transport, in sctp_retransmit_mark() argument
458 list_for_each_safe(lchunk, ltemp, &transport->transmitted) { in sctp_retransmit_mark()
473 if (chunk->transport) in sctp_retransmit_mark()
474 chunk->transport->flight_size -= in sctp_retransmit_mark()
499 if (chunk->transport) in sctp_retransmit_mark()
500 transport->flight_size -= sctp_data_size(chunk); in sctp_retransmit_mark()
517 transport->rto_pending = 0; in sctp_retransmit_mark()
528 pr_debug("%s: transport:%p, reason:%d, cwnd:%d, ssthresh:%d, " in sctp_retransmit_mark()
529 "flight_size:%d, pba:%d\n", __func__, transport, reason, in sctp_retransmit_mark()
530 transport->cwnd, transport->ssthresh, transport->flight_size, in sctp_retransmit_mark()
531 transport->partial_bytes_acked); in sctp_retransmit_mark()
534 /* Mark all the eligible packets on a transport for retransmission and force
537 void sctp_retransmit(struct sctp_outq *q, struct sctp_transport *transport, in sctp_retransmit() argument
545 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_T3_RTX); in sctp_retransmit()
549 if (transport == transport->asoc->peer.retran_path) in sctp_retransmit()
550 sctp_assoc_update_retran_path(transport->asoc); in sctp_retransmit()
551 transport->asoc->rtx_data_chunks += in sctp_retransmit()
552 transport->asoc->unack_data; in sctp_retransmit()
556 sctp_transport_lower_cwnd(transport, SCTP_LOWER_CWND_FAST_RTX); in sctp_retransmit()
564 transport->asoc->init_retries++; in sctp_retransmit()
570 sctp_retransmit_mark(q, transport, reason); in sctp_retransmit()
591 * We assume that pkt->transport has already been set.
598 struct sctp_transport *transport = pkt->transport; in __sctp_outq_flush_rtx() local
619 * destination transport address to which the retransmission in __sctp_outq_flush_rtx()
649 &transport->transmitted); in __sctp_outq_flush_rtx()
714 &transport->transmitted); in __sctp_outq_flush_rtx()
764 static int sctp_packet_singleton(struct sctp_transport *transport, in sctp_packet_singleton() argument
767 const struct sctp_association *asoc = transport->asoc; in sctp_packet_singleton()
773 sctp_packet_init(&singleton, transport, sport, dport); in sctp_packet_singleton()
782 /* Current transport being used. It's NOT the same as curr active one */
783 struct sctp_transport *transport; member
787 /* Packet on the current transport above */
792 /* transport: current transport */
796 struct sctp_transport *new_transport = chunk->transport; in sctp_outq_select_transport()
800 /* If we have a prior transport pointer, see if in sctp_outq_select_transport()
803 * current transport. If not a match, then in sctp_outq_select_transport()
804 * try to look up the transport with a given in sctp_outq_select_transport()
809 if (ctx->transport && sctp_cmp_addr_exact(&chunk->dest, in sctp_outq_select_transport()
810 &ctx->transport->ipaddr)) in sctp_outq_select_transport()
811 new_transport = ctx->transport; in sctp_outq_select_transport()
817 /* if we still don't have a new transport, then in sctp_outq_select_transport()
830 * send it to chunk->transport, even if it's in sctp_outq_select_transport()
853 /* Are we switching transports? Take care of transport locks. */ in sctp_outq_select_transport()
854 if (new_transport != ctx->transport) { in sctp_outq_select_transport()
855 ctx->transport = new_transport; in sctp_outq_select_transport()
856 ctx->packet = &ctx->transport->packet; in sctp_outq_select_transport()
858 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_select_transport()
859 list_add_tail(&ctx->transport->send_ready, in sctp_outq_select_transport()
866 * Burst limit to the new transport. in sctp_outq_select_transport()
868 sctp_transport_burst_limited(ctx->transport); in sctp_outq_select_transport()
893 /* Pick the right transport to use. Should always be true for in sctp_outq_flush_ctrl()
894 * the first chunk as we don't have a transport by then. in sctp_outq_flush_ctrl()
907 error = sctp_packet_singleton(ctx->transport, chunk, in sctp_outq_flush_ctrl()
958 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_ctrl()
959 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_ctrl()
963 sctp_transport_reset_reconf_timer(ctx->transport); in sctp_outq_flush_ctrl()
983 if (ctx->transport != ctx->asoc->peer.retran_path) { in sctp_outq_flush_rtx()
985 ctx->transport = ctx->asoc->peer.retran_path; in sctp_outq_flush_rtx()
986 ctx->packet = &ctx->transport->packet; in sctp_outq_flush_rtx()
988 if (list_empty(&ctx->transport->send_ready)) in sctp_outq_flush_rtx()
989 list_add_tail(&ctx->transport->send_ready, in sctp_outq_flush_rtx()
1002 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_rtx()
1003 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_rtx()
1059 /* Apply Max.Burst limitation to the current transport in in sctp_outq_flush_data()
1064 if (ctx->transport) in sctp_outq_flush_data()
1065 sctp_transport_burst_limited(ctx->transport); in sctp_outq_flush_data()
1126 &ctx->transport->transmitted); in sctp_outq_flush_data()
1128 sctp_transport_reset_t3_rtx(ctx->transport); in sctp_outq_flush_data()
1129 ctx->transport->last_time_sent = jiffies; in sctp_outq_flush_data()
1173 .transport = NULL, in sctp_outq_flush()
1229 struct sctp_transport *transport; in sctp_outq_sack() local
1247 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1248 trace_sctp_probe_path(transport, asoc); in sctp_outq_sack()
1281 list_for_each_entry(transport, transport_list, in sctp_outq_sack()
1284 transport->cacc.cycling_changeover = 0; in sctp_outq_sack()
1286 transport->cacc.cacc_saw_newack = 0; in sctp_outq_sack()
1311 list_for_each_entry(transport, transport_list, transports) { in sctp_outq_sack()
1312 sctp_check_transmitted(q, &transport->transmitted, in sctp_outq_sack()
1313 transport, &chunk->source, sack, in sctp_outq_sack()
1320 if (transport->cacc.cacc_saw_newack) in sctp_outq_sack()
1335 list_for_each_entry(transport, transport_list, transports) in sctp_outq_sack()
1336 sctp_mark_missing(q, &transport->transmitted, transport, in sctp_outq_sack()
1399 /* Go through a transport's transmitted list or the association's retransmit
1401 * The retransmit list will not have an associated transport.
1411 struct sctp_transport *transport, in sctp_check_transmitted() argument
1445 if (tchunk->transport) in sctp_check_transmitted()
1446 tchunk->transport->flight_size -= in sctp_check_transmitted()
1458 * count bytes associated with a transport. in sctp_check_transmitted()
1460 if (transport && !tchunk->tsn_gap_acked) { in sctp_check_transmitted()
1476 sctp_transport_update_rto(transport, in sctp_check_transmitted()
1497 transport->cacc.cacc_saw_newack in sctp_check_transmitted()
1504 * chunk had a valid transport (it will not in sctp_check_transmitted()
1505 * have a transport if ASCONF had deleted it in sctp_check_transmitted()
1513 if (!tchunk->transport) in sctp_check_transmitted()
1558 if (tchunk->transport) in sctp_check_transmitted()
1577 if (transport) { in sctp_check_transmitted()
1579 struct sctp_association *asoc = transport->asoc; in sctp_check_transmitted()
1582 * to this transport due to DEL-IP operation. in sctp_check_transmitted()
1584 * send on this transport and shouldn't be in sctp_check_transmitted()
1585 * credited to this transport. in sctp_check_transmitted()
1591 * the destination transport address to which the in sctp_check_transmitted()
1596 transport->error_count = 0; in sctp_check_transmitted()
1597 transport->asoc->overall_error_count = 0; in sctp_check_transmitted()
1611 /* Mark the destination transport address as in sctp_check_transmitted()
1614 if ((transport->state == SCTP_INACTIVE || in sctp_check_transmitted()
1615 transport->state == SCTP_UNCONFIRMED) && in sctp_check_transmitted()
1616 sctp_cmp_addr_exact(&transport->ipaddr, saddr)) { in sctp_check_transmitted()
1618 transport->asoc, in sctp_check_transmitted()
1619 transport, in sctp_check_transmitted()
1624 sctp_transport_raise_cwnd(transport, sack_ctsn, in sctp_check_transmitted()
1627 transport->flight_size -= bytes_acked; in sctp_check_transmitted()
1628 if (transport->flight_size == 0) in sctp_check_transmitted()
1629 transport->partial_bytes_acked = 0; in sctp_check_transmitted()
1654 transport->error_count = 0; in sctp_check_transmitted()
1664 if (!transport->flight_size) { in sctp_check_transmitted()
1665 if (del_timer(&transport->T3_rtx_timer)) in sctp_check_transmitted()
1666 sctp_transport_put(transport); in sctp_check_transmitted()
1668 if (!mod_timer(&transport->T3_rtx_timer, in sctp_check_transmitted()
1669 jiffies + transport->rto)) in sctp_check_transmitted()
1670 sctp_transport_hold(transport); in sctp_check_transmitted()
1674 if (transport->dst) in sctp_check_transmitted()
1675 sctp_transport_dst_confirm(transport); in sctp_check_transmitted()
1685 struct sctp_transport *transport, in sctp_mark_missing() argument
1713 if (!transport || !sctp_cacc_skip(primary, in sctp_mark_missing()
1714 chunk->transport, in sctp_mark_missing()
1735 if (transport) { in sctp_mark_missing()
1737 sctp_retransmit(q, transport, SCTP_RTXR_FAST_RTX); in sctp_mark_missing()
1739 pr_debug("%s: transport:%p, cwnd:%d, ssthresh:%d, " in sctp_mark_missing()
1740 "flight_size:%d, pba:%d\n", __func__, transport, in sctp_mark_missing()
1741 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
1742 transport->flight_size, transport->partial_bytes_acked); in sctp_mark_missing()