aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_output.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-06-20 12:18:31 -0700
committerJohn Lo <loj@cisco.com>2019-06-21 00:57:08 +0000
commit07beadedea9b23d97e41b3090590326c18151c66 (patch)
treef0e126d5ff5947d85cdc390e26e0cee8ebb8ef1b /src/vnet/tcp/tcp_output.c
parent2a688c0120274c075f960feffa74e825b55e78d0 (diff)
tcp: add option to pass opaque to next node
Type:feature Change-Id: I0b72954a6ae6a05abe0761cb4f227072863f127b Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/tcp/tcp_output.c')
-rw-r--r--src/vnet/tcp/tcp_output.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c
index abd674d94be..1adac95731f 100644
--- a/src/vnet/tcp/tcp_output.c
+++ b/src/vnet/tcp/tcp_output.c
@@ -2063,7 +2063,11 @@ tcp_output_handle_packet (tcp_connection_t * tc0, vlib_buffer_t * b0,
}
/* If next_index is not drop use it */
- *next0 = tc0->out_next_index ? tc0->out_next_index : *next0;
+ if (tc0->next_node_index)
+ {
+ *next0 = tc0->next_node_index;
+ vnet_buffer (b0)->tcp.next_node_opaque = tc0->next_node_opaque;
+ }
vnet_buffer (b0)->sw_if_index[VLIB_TX] = tc0->c_fib_index;
vnet_buffer (b0)->sw_if_index[VLIB_RX] = 0;