aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/strategy_node.c
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2023-01-20 20:19:01 +0000
committerMauro Sardara <msardara@cisco.com>2023-01-23 16:56:15 +0000
commitc33cdb0fe6a1b97e16e9a3a92d9b084115e1b278 (patch)
tree068c6ba4baee93e8dbf9827f37333d00a1adbc08 /hicn-plugin/src/strategy_node.c
parent5a86b5436c369547360ec8206d1f07261b9562f3 (diff)
feat(hicn-plugin): reuse strategy node to forward interests
Before the interest forwarding was duplicated in 2 different nodes, the strategy_node and the interest_hitpit_node. Reuse the strategy node so that the nexthop selection via the strategy is done only in one place - teh strategy node. Change-Id: I2c72ec35b1df4e6ed8ce0877e9f3e6f5c1ae68f8 Signed-off-by: Mauro Sardara <msardara@cisco.com> (cherry picked from commit 4ec2784197db60e4f287a88b7944ecb1067bfc08)
Diffstat (limited to 'hicn-plugin/src/strategy_node.c')
-rw-r--r--hicn-plugin/src/strategy_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/strategy_node.c b/hicn-plugin/src/strategy_node.c
index 9c1a484d6..add5772a4 100644
--- a/hicn-plugin/src/strategy_node.c
+++ b/hicn-plugin/src/strategy_node.c
@@ -155,7 +155,7 @@ hicn_strategy_fn (vlib_main_t *vm, vlib_node_runtime_t *node,
if (PREDICT_FALSE (ret != HICN_ERROR_NONE || outfaces_len == 0))
{
- drop_packet (vm, bi0, &n_left_from, &next0, &to_next,
+ drop_packet (vm, bi0, &n_left_to_next, &next0, &to_next,
&next_index, node);
continue;
}