From: Klement Sekera Date: Mon, 15 Mar 2021 14:46:09 +0000 (+0100) Subject: nat: remove unused parameter X-Git-Tag: v21.10-rc0~382 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F31645%2F1;hp=79a31db11d677bec5b55f81fd0598197644ee216;p=vpp.git nat: remove unused parameter Type: refactor Signed-off-by: Klement Sekera Change-Id: Ifb4a9c52fd2c5dd9f3f5cf41214aa1851f6d7acd --- diff --git a/src/plugins/nat/lib/ipfix_logging.c b/src/plugins/nat/lib/ipfix_logging.c index 2fb8912226d..d4ede6bdd95 100644 --- a/src/plugins/nat/lib/ipfix_logging.c +++ b/src/plugins/nat/lib/ipfix_logging.c @@ -536,8 +536,8 @@ nat_ipfix_header_create (flow_report_main_t * frm, } static inline void -nat_ipfix_send (u32 thread_index, flow_report_main_t * frm, - vlib_frame_t * f, vlib_buffer_t * b0, u16 template_id) +nat_ipfix_send (flow_report_main_t *frm, vlib_frame_t *f, vlib_buffer_t *b0, + u16 template_id) { ip4_ipfix_template_packet_t *tp; ipfix_message_header_t *h = 0; @@ -674,7 +674,7 @@ nat_ipfix_logging_nat44_ses (u32 thread_index, u8 nat_event, u32 src_ip, template_id = clib_atomic_fetch_or ( &silm->nat44_session_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->nat44_session_frame = 0; sitd->nat44_session_buffer = 0; offset = 0; @@ -758,7 +758,7 @@ nat_ipfix_logging_addr_exhausted (u32 thread_index, u32 pool_id, int do_flush) template_id = clib_atomic_fetch_or ( &silm->addr_exhausted_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->addr_exhausted_frame = 0; sitd->addr_exhausted_buffer = 0; offset = 0; @@ -850,7 +850,7 @@ nat_ipfix_logging_max_entries_per_usr (u32 thread_index, template_id = clib_atomic_fetch_or ( &silm->max_entries_per_user_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->max_entries_per_user_frame = 0; sitd->max_entries_per_user_buffer = 0; offset = 0; @@ -938,7 +938,7 @@ nat_ipfix_logging_max_ses (u32 thread_index, u32 limit, int do_flush) template_id = clib_atomic_fetch_or ( &silm->max_sessions_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->max_sessions_frame = 0; sitd->max_sessions_buffer = 0; offset = 0; @@ -1026,7 +1026,7 @@ nat_ipfix_logging_max_bib (u32 thread_index, u32 limit, int do_flush) template_id = clib_atomic_fetch_or ( &silm->max_bibs_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->max_bibs_frame = 0; sitd->max_bibs_buffer = 0; offset = 0; @@ -1128,7 +1128,7 @@ nat_ipfix_logging_nat64_bibe (u32 thread_index, u8 nat_event, template_id = clib_atomic_fetch_or ( &silm->nat64_bib_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->nat64_bib_frame = 0; sitd->nat64_bib_buffer = 0; offset = 0; @@ -1244,7 +1244,7 @@ nat_ipfix_logging_nat64_ses (u32 thread_index, u8 nat_event, template_id = clib_atomic_fetch_or ( &silm->nat64_ses_template_id, 0); - nat_ipfix_send (thread_index, frm, f, b0, template_id); + nat_ipfix_send (frm, f, b0, template_id); sitd->nat64_ses_frame = 0; sitd->nat64_ses_buffer = 0; offset = 0;