Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
dea724f
)
rdma: fix next node rx redirect
56/23356/2
author
Benoît Ganne
<bganne@cisco.com>
Tue, 5 Nov 2019 16:46:17 +0000
(17:46 +0100)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Fri, 15 Nov 2019 07:36:27 +0000
(07:36 +0000)
Type: fix
Change-Id: I694db40c3a0361852d01b84c7a45e32e39e9f4af
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit
972d71da8683259c238b3b0e69665655f2d35b70
)
src/plugins/rdma/device.c
patch
|
blob
|
history
diff --git
a/src/plugins/rdma/device.c
b/src/plugins/rdma/device.c
index
6c48a97
..
23887ea
100644
(file)
--- a/
src/plugins/rdma/device.c
+++ b/
src/plugins/rdma/device.c
@@
-749,15
+749,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);
}