nat: initialize fq_in2out_output_index 25/18625/4
authorMatthew Smith <mgsmith@netgate.com>
Mon, 1 Apr 2019 21:27:00 +0000 (16:27 -0500)
committerOle Trøan <otroan@employees.org>
Tue, 9 Apr 2019 10:47:26 +0000 (10:47 +0000)
commit26e035bfcda580a8ce06df7498ca30e0a39b45ef
treec562137de47d41f862157f07ef0137f7c9eb5b33
parent796c84b25130c99cfd92cc9281416d377d41d2a3
nat: initialize fq_in2out_output_index

When using the output feature ('postrouting') outbound translation,
no packets are passed when using worker threads. The frame queue for
in2out packets to be handed off between threads is never allocated.
This is because that allocation only happens if the value of
fq_in2out_output_index == ~0, but fq_in2out_output_index is never
initialized prior to checking that.

Initialize fq_in2out_output_index to ~0 so a frame queue will be
allocated when there are worker threads.

Change-Id: I0836685eb611348643c11ac7e4d0cab935a29384
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/nat/nat.c