aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2018-09-27 11:58:34 +0200
committerDamjan Marion <dmarion@me.com>2018-09-27 12:09:40 +0000
commitbaf740512aa6f3e8c81484b5e914b77200db21d9 (patch)
tree9f8e44b1e98af63d8dbae8eef147739faaa02793
parent8e26f6dbcf5a61fa2922f57edf04e1de18cdd4fc (diff)
SCTP: fix advanced debug output
Change-Id: Ied63ebaec8e19189f8b1ab2a7f6d7474c3f2ad6e Signed-off-by: Marco Varlese <marco.varlese@suse.com>
-rw-r--r--src/vnet/sctp/sctp_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/sctp/sctp_output.c b/src/vnet/sctp/sctp_output.c
index 0c865caa33d..33063e7ef21 100644
--- a/src/vnet/sctp/sctp_output.c
+++ b/src/vnet/sctp/sctp_output.c
@@ -1518,6 +1518,8 @@ sctp_data_retransmit (sctp_connection_t * sctp_conn)
vlib_buffer_t *b = 0;
u32 bi, n_bytes = 0;
+ u8 idx = sctp_data_subconn_select (sctp_conn);
+
SCTP_DBG_OUTPUT
("SCTP_CONN = %p, IDX = %u, S_INDEX = %u, C_INDEX = %u, sctp_conn->[...].LCL_PORT = %u, sctp_conn->[...].RMT_PORT = %u",
sctp_conn, idx, sctp_conn->sub_conn[idx].connection.s_index,
@@ -1530,8 +1532,6 @@ sctp_data_retransmit (sctp_connection_t * sctp_conn)
return;
}
- u8 idx = sctp_data_subconn_select (sctp_conn);
-
n_bytes =
sctp_prepare_data_retransmit (sctp_conn, idx, 0,
sctp_conn->sub_conn[idx].cwnd, &b);