aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nsim/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nsim/node.c')
-rw-r--r--src/plugins/nsim/node.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/nsim/node.c b/src/plugins/nsim/node.c
index 559147b1280..96a712cb35d 100644
--- a/src/plugins/nsim/node.c
+++ b/src/plugins/nsim/node.c
@@ -162,7 +162,7 @@ nsim_inline (vlib_main_t * vm,
ep->rx_sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_RX];
if (is_cross_connect)
{
- ep->tx_sw_if_index =
+ ep->tx_sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_TX] =
(vnet_buffer (b[0])->sw_if_index[VLIB_RX] ==
nsm->sw_if_index0) ? nsm->sw_if_index1 : nsm->sw_if_index0;
ep->output_next_index =
@@ -204,7 +204,7 @@ nsim_inline (vlib_main_t * vm,
ep->rx_sw_if_index = vnet_buffer (b[1])->sw_if_index[VLIB_RX];
if (is_cross_connect)
{
- ep->tx_sw_if_index =
+ ep->tx_sw_if_index = vnet_buffer (b[1])->sw_if_index[VLIB_TX] =
(vnet_buffer (b[1])->sw_if_index[VLIB_RX] ==
nsm->sw_if_index0) ? nsm->sw_if_index1 : nsm->sw_if_index0;
ep->output_next_index =
@@ -245,7 +245,7 @@ nsim_inline (vlib_main_t * vm,
ep->rx_sw_if_index = vnet_buffer (b[2])->sw_if_index[VLIB_RX];
if (is_cross_connect)
{
- ep->tx_sw_if_index =
+ ep->tx_sw_if_index = vnet_buffer (b[2])->sw_if_index[VLIB_TX] =
(vnet_buffer (b[2])->sw_if_index[VLIB_RX] ==
nsm->sw_if_index0) ? nsm->sw_if_index1 : nsm->sw_if_index0;
ep->output_next_index =
@@ -286,7 +286,7 @@ nsim_inline (vlib_main_t * vm,
ep->rx_sw_if_index = vnet_buffer (b[3])->sw_if_index[VLIB_RX];
if (is_cross_connect)
{
- ep->tx_sw_if_index =
+ ep->tx_sw_if_index = vnet_buffer (b[3])->sw_if_index[VLIB_TX] =
(vnet_buffer (b[3])->sw_if_index[VLIB_RX] ==
nsm->sw_if_index0) ? nsm->sw_if_index1 : nsm->sw_if_index0;
ep->output_next_index =
@@ -362,7 +362,7 @@ slow_path:
ep->rx_sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_RX];
if (is_cross_connect)
{
- ep->tx_sw_if_index =
+ ep->tx_sw_if_index = vnet_buffer (b[0])->sw_if_index[VLIB_TX] =
(vnet_buffer (b[0])->sw_if_index[VLIB_RX] ==
nsm->sw_if_index0) ? nsm->sw_if_index1 : nsm->sw_if_index0;
ep->output_next_index =