From c05e2852f6755f38065e633a3c1bcf7a502e1bf3 Mon Sep 17 00:00:00 2001 From: Filip Varga Date: Thu, 22 Oct 2020 11:13:00 +0200 Subject: nat: fix forwarding handoff workaround A special case when out2in packet needs to be handoffed to other worker thread. We are not able to determine which thread they belong to in the first processing of nat handoff node. These packets needs to go through out2in slowpath before we are able to tell where to handoff them. Type: fix Ticket: VPP-1941 Change-Id: I7173bda970ce6a91d81f48fc72aa2457586a076f Signed-off-by: Filip Varga --- src/plugins/nat/nat44_handoff.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/plugins/nat/nat44_handoff.c') diff --git a/src/plugins/nat/nat44_handoff.c b/src/plugins/nat/nat44_handoff.c index 69cdc42870f..651c8d1f4ac 100644 --- a/src/plugins/nat/nat44_handoff.c +++ b/src/plugins/nat/nat44_handoff.c @@ -33,26 +33,12 @@ typedef struct u8 output; } nat44_handoff_trace_t; -#define foreach_nat44_handoff_error \ -_(CONGESTION_DROP, "congestion drop") \ -_(SAME_WORKER, "same worker") \ -_(DO_HANDOFF, "do handoff") - -typedef enum -{ -#define _(sym,str) NAT44_HANDOFF_ERROR_##sym, - foreach_nat44_handoff_error -#undef _ - NAT44_HANDOFF_N_ERROR, -} nat44_handoff_error_t; - static char *nat44_handoff_error_strings[] = { #define _(sym,string) string, foreach_nat44_handoff_error #undef _ }; - static u8 * format_nat44_handoff_trace (u8 * s, va_list * args) { -- cgit 1.2.3-korg