From c33cdb0fe6a1b97e16e9a3a92d9b084115e1b278 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 20 Jan 2023 20:19:01 +0000 Subject: 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 (cherry picked from commit 4ec2784197db60e4f287a88b7944ecb1067bfc08) --- hicn-plugin/src/strategy_node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hicn-plugin/src/strategy_node.c') 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; } -- cgit 1.2.3-korg