Lines Matching +full:rx +full:- +full:sched +full:- +full:sp

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (c) 1999-2000 Cisco, Inc.
5 * Copyright (c) 1999-2001 Motorola, Inc.
12 * lksctp developers <linux-sctp@vger.kernel.org>
36 #include <linux/generic-radix-tree.h>
37 #include <linux/rhashtable-types.h>
250 static inline struct sock *sctp_opt2sk(const struct sctp_sock *sp) in sctp_opt2sk() argument
252 return (struct sock *)sp; in sctp_opt2sk()
263 /* This is our APPLICATION-SPECIFIC state cookie.
312 * Include the source port of the INIT-ACK
332 * the association TCB is re-constructed from the cookie.
379 * The Sender-specific Heartbeat Info field should normally include
401 (sctp_stream_##type((stream), (sid))->ssn)
405 (sctp_stream_##type((stream), (sid))->ssn++)
409 (sctp_stream_##type((stream), (sid))->ssn = ssn + 1)
413 (sctp_stream_##type((stream), (sid))->mid)
417 (sctp_stream_##type((stream), (sid))->mid++)
421 (sctp_stream_##type((stream), (sid))->mid = mid + 1)
425 (sctp_stream_##type((stream), (sid))->mid_uo)
429 (sctp_stream_##type((stream), (sid))->mid_uo++)
544 * a chunk header and chunk-specific content.
558 /* This is our link to the per-transport transmitted list. */
639 /* SCTP-AUTH: For the special case inbound processing of COOKIE-ECHO
640 * we need save a pointer to the AUTH chunk, since the SCTP-AUTH
666 #define sctp_chunk_retransmitted(chunk) (chunk->sent_count > 1)
682 return ntohs(ch->subh.data_hdr->stream); in sctp_chunk_stream_no()
730 u8 has_cookie_echo:1, /* This packet contains a COOKIE-ECHO chunk. */
750 return packet->size == packet->overhead; in sctp_packet_empty()
768 * source-destination pair but for each destination). The parameters
780 /* RTO-Pending : A flag used to track if one of the DATA
928 * [Everywhere else in the text this is called T3-rtx. -ed]
944 /* Since we're using per-destination retransmission timers
945 * (see above), we're also using per-destination "transmitted"
951 /* We build bundle-able packets for this transport here. */
959 * per-destination basis when a changeover happens.
994 /* 64-bit random number sent with heartbeat. */
1083 struct sctp_sched_ops *sched; member
1108 /* How many unackd bytes do we have in-flight? */
1111 /* Are we doing fast-rtx on this queue */
1136 q->cork = 1; in sctp_outq_cork()
1140 * sctp_input_cb is currently used on rx and sock rx queue
1153 #define SCTP_INPUT_CB(__skb) ((struct sctp_input_cb *)&((__skb)->cb[0]))
1158 #define SCTP_OUTPUT_CB(__skb) ((struct sctp_output_cb *)&((__skb)->cb[0]))
1162 const struct sctp_chunk *chunk = SCTP_INPUT_CB(skb)->chunk; in sctp_gso_headskb()
1164 return chunk->head_skb ? : skb; in sctp_gso_headskb()
1204 int sctp_bind_addrs_check(struct sctp_sock *sp,
1250 * refcnt - Reference count access to this object.
1251 * dead - Do not attempt to use this object.
1277 * multi-homed host, an SCTP endpoint is represented to its peers as a
1288 * A TCP-style socket will have exactly one association on one of
1289 * these. An UDP-style socket will have multiple associations hanging
1324 * this here so we pre-allocate this once and can re-use
1340 /* SCTP-AUTH: hmacs for the endpoint encoded into parameter */
1343 /* SCTP-AUTH: chunks to authenticate encoded into parameter */
1346 /* SCTP-AUTH: endpoint shared keys */
1482 return genradix_ptr(&stream->out, sid); in sctp_stream_out()
1489 return genradix_ptr(&stream->in, sid); in sctp_stream_in()
1500 return stream->si->data_chunk_len; in sctp_datachk_len()
1505 return stream->si->data_chunk_len - sizeof(struct sctp_chunkhdr); in sctp_datahdr_len()
1510 return stream->si->ftsn_chunk_len; in sctp_ftsnchk_len()
1515 return stream->si->ftsn_chunk_len - sizeof(struct sctp_chunkhdr); in sctp_ftsnhdr_len()
1655 * RFC2960 6.4 Multi-homed SCTP Endpoints
1657 * Furthermore, when its peer is multi-homed, an
1689 * in tsn_map--we get it by calling sctp_tsnmap_get_ctsn().
1704 prsctp_capable:1, /* Can peer do PR-SCTP? */
1705 reconf_capable:1, /* Can peer do RE-CONFIG? */
1707 auth_capable:1, /* Is peer doing SCTP-AUTH? */
1732 * C1) ... "Peer-Serial-Number'. This value MUST be initialized to the
1737 /* SCTP-AUTH: We need to know pears random number, hmac list
1747 * : association is in, i.e. COOKIE-WAIT,
1748 * : COOKIE-ECHOED, ESTABLISHED, SHUTDOWN-PENDING,
1749 * : SHUTDOWN-SENT, SHUTDOWN-RECEIVED, SHUTDOWN-ACK-SENT.
1867 /* PR-SCTP Advanced.Peer.Ack.Point */
1910 * as specified in the sk->sndbuf.
1967 * <draft-ietf-tsvwg-addip-sctp-02.txt>
1978 * ASCONF Chunk, it MUST wait until the ASCONF-ACK Chunk
1981 * so at any time two ASCONF may be in-transit on any given
1984 * [This is our one-and-only-one ASCONF in flight. If we do
1991 * This is needed to implement itmes E1 - E4 of the updated
2017 * ASCONF Chunk, it MUST wait until the ASCONF-ACK Chunk
2020 * so at any time two ASCONF may be in-transit on any given
2026 * queue and its supporting logic down there. --piggy]
2047 * 4294967295 (2^32 - 1). Serial Numbers wrap back to 0