aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-11-05 17:46:17 +0100
committerDamjan Marion <dmarion@me.com>2019-11-08 20:55:41 +0000
commit972d71da8683259c238b3b0e69665655f2d35b70 (patch)
treed7cf4dfbf620324e68eded22a9ff68a97ebb009d /src
parenta50892e1504401e243076f08d9077675eb0b030e (diff)
rdma: fix next node rx redirect
Type: fix Change-Id: I694db40c3a0361852d01b84c7a45e32e39e9f4af Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/rdma/device.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/plugins/rdma/device.c b/src/plugins/rdma/device.c
index 422680df117..70720e4df74 100644
--- a/src/plugins/rdma/device.c
+++ b/src/plugins/rdma/device.c
@@ -753,15 +753,9 @@ rdma_set_interface_next_node (vnet_main_t * vnm, u32 hw_if_index,
rdma_main_t *rm = &rdma_main;
vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index);
rdma_device_t *rd = pool_elt_at_index (rm->devices, hw->dev_instance);
-
- /* Shut off redirection */
- if (node_index == ~0)
- {
- rd->per_interface_next_index = node_index;
- return;
- }
-
rd->per_interface_next_index =
+ ~0 ==
+ node_index ? VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT :
vlib_node_add_next (vlib_get_main (), rdma_input_node.index, node_index);
}