From a0abbff4849e8b8721b70769ae1f3ef27dd6733c Mon Sep 17 00:00:00 2001 From: Aloys Augustin Date: Fri, 12 Jul 2019 12:16:16 +0200 Subject: session: add thread index to all formatters Add a thread_index argument to half-open and listener session formatters because QUIC can have listeners and half-open sessions in any thread. Change-Id: I1de60e35ece4c68ba8cfdd6b63f211bc620d687b Signed-off-by: Aloys Augustin Type: feature --- src/plugins/sctp/sctp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/sctp') diff --git a/src/plugins/sctp/sctp.c b/src/plugins/sctp/sctp.c index 14958e55d60..452b6bf22cc 100644 --- a/src/plugins/sctp/sctp.c +++ b/src/plugins/sctp/sctp.c @@ -713,6 +713,7 @@ u8 * format_sctp_listener_session (u8 * s, va_list * args) { u32 tci = va_arg (*args, u32); + u32 __clib_unused thread_index = va_arg (*args, u32); sctp_connection_t *tc = sctp_listener_get (tci); return format (s, "%U", format_sctp_connection_id, tc); } @@ -931,6 +932,7 @@ u8 * format_sctp_half_open (u8 * s, va_list * args) { u32 tci = va_arg (*args, u32); + u32 __clib_unused thread_index = va_arg (*args, u32); sctp_connection_t *sctp_conn = sctp_half_open_connection_get (tci); return format (s, "%U", format_sctp_connection_id, sctp_conn); } -- cgit 1.2.3-korg