Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
nat: Fix next feature for ED with multiple workers
[vpp.git]
/
src
/
plugins
/
nat
/
in2out_ed.c
diff --git
a/src/plugins/nat/in2out_ed.c
b/src/plugins/nat/in2out_ed.c
index
448e967
..
d43caef
100644
(file)
--- a/
src/plugins/nat/in2out_ed.c
+++ b/
src/plugins/nat/in2out_ed.c
@@
-964,7
+964,6
@@
nat44_ed_in2out_fast_path_node_fn_inline (vlib_main_t * vm,
if (is_output_feature)
{
if (is_output_feature)
{
- vnet_feature_next (&vnet_buffer2 (b0)->nat.arc_next, b0);
iph_offset0 = vnet_buffer (b0)->ip.reass.save_rewrite_length;
}
iph_offset0 = vnet_buffer (b0)->ip.reass.save_rewrite_length;
}
@@
-1586,6
+1585,13
@@
VLIB_NODE_FN (nat_pre_in2out_node)
NAT_NEXT_IN2OUT_ED_FAST_PATH);
}
NAT_NEXT_IN2OUT_ED_FAST_PATH);
}
+VLIB_NODE_FN (nat_pre_in2out_output_node)
+ (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
+{
+ return nat_pre_node_fn_inline (vm, node, frame,
+ NAT_NEXT_IN2OUT_ED_OUTPUT_FAST_PATH);
+}
+
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (nat_pre_in2out_node) = {
.name = "nat-pre-in2out",
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (nat_pre_in2out_node) = {
.name = "nat-pre-in2out",
@@
-1595,6
+1601,15
@@
VLIB_REGISTER_NODE (nat_pre_in2out_node) = {
.type = VLIB_NODE_TYPE_INTERNAL,
.n_errors = 0,
};
.type = VLIB_NODE_TYPE_INTERNAL,
.n_errors = 0,
};
+
+VLIB_REGISTER_NODE (nat_pre_in2out_output_node) = {
+ .name = "nat-pre-in2out-output",
+ .vector_size = sizeof (u32),
+ .sibling_of = "nat-default",
+ .format_trace = format_nat_pre_trace,
+ .type = VLIB_NODE_TYPE_INTERNAL,
+ .n_errors = 0,
+};
/* *INDENT-ON* */
/*
/* *INDENT-ON* */
/*