aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/sctp
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-03-01 13:00:58 -0800
committerDave Barach <openvpp@barachs.net>2019-03-02 23:40:04 +0000
commit31c9955a4e83578422b3328ef0d7b2b248536644 (patch)
tree51dbc9de2cac22ca190ec394d6bf29e4ebb72d54 /src/vnet/sctp
parentf6c4313b6aa7746fe97afd398ce68c2efbef0600 (diff)
session: cleanup/rename functions
- remove unused functions - rename old "stream" functions Change-Id: Icbb03daa9f9f1c58b5be5c38aa8a9cbcf9159b47 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/sctp')
-rw-r--r--src/vnet/sctp/sctp_input.c4
-rw-r--r--src/vnet/sctp/sctp_output.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/sctp/sctp_input.c b/src/vnet/sctp/sctp_input.c
index 95e27ee9a05..0b24bf79896 100644
--- a/src/vnet/sctp/sctp_input.c
+++ b/src/vnet/sctp/sctp_input.c
@@ -1970,8 +1970,8 @@ sctp46_established_phase_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
vlib_put_next_frame (vm, node, next_index, n_left_to_next);
}
- errors = session_manager_flush_enqueue_events (TRANSPORT_PROTO_SCTP,
- my_thread_index);
+ errors = session_main_flush_enqueue_events (TRANSPORT_PROTO_SCTP,
+ my_thread_index);
sctp_node_inc_counter (vm, is_ip4, sctp4_established_phase_node.index,
sctp6_established_phase_node.index,
diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c
index 8fea714f6a2..dbd4ef21918 100644
--- a/src/vnet/sctp/sctp_output.c
+++ b/src/vnet/sctp/sctp_output.c
@@ -1483,7 +1483,7 @@ sctp_prepare_data_retransmit (sctp_connection_t * sctp_conn,
* Make sure we can retransmit something
*/
available_bytes =
- session_tx_fifo_max_dequeue (&sctp_conn->sub_conn[idx].connection);
+ transport_max_tx_dequeue (&sctp_conn->sub_conn[idx].connection);
ASSERT (available_bytes >= offset);
available_bytes -= offset;
if (!available_bytes)
@@ -1506,8 +1506,8 @@ sctp_prepare_data_retransmit (sctp_connection_t * sctp_conn,
if (PREDICT_TRUE (seg_size <= tm->bytes_per_buffer))
{
n_bytes =
- stream_session_peek_bytes (&sctp_conn->sub_conn[idx].connection, data,
- offset, max_deq_bytes);
+ session_tx_fifo_peek_bytes (&sctp_conn->sub_conn[idx].connection,
+ data, offset, max_deq_bytes);
ASSERT (n_bytes == max_deq_bytes);
b[0]->current_length = n_bytes;
sctp_push_hdr_i (sctp_conn, *b, sctp_conn->state);