From baebb22c877d98c891d4d7a20ae23dc07f918edd Mon Sep 17 00:00:00 2001 From: Brian Russell Date: Tue, 19 Jan 2021 16:48:56 +0000 Subject: ip: add frame queues to punt policer nodes The policer is not thread safe. In order that handoff could be performed, add a frame queue to each of the punt policer nodes. Type: improvement Signed-off-by: Brian Russell Change-Id: Iee50267ee7e36f0e6c95b9b43bf651648198b834 --- src/vnet/ip/ip_punt_drop.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/vnet/ip/ip_punt_drop.c') diff --git a/src/vnet/ip/ip_punt_drop.c b/src/vnet/ip/ip_punt_drop.c index f77a0ada078..f3388007b4a 100644 --- a/src/vnet/ip/ip_punt_drop.c +++ b/src/vnet/ip/ip_punt_drop.c @@ -235,6 +235,11 @@ ip_punt_drop_init (vlib_main_t * vm) fib_node_register_type (FIB_NODE_TYPE_IP_PUNT_REDIRECT, &ip_punt_redirect_vft); + ip4_punt_policer_cfg.fq_index = + vlib_frame_queue_main_init (ip4_punt_policer_node.index, 0); + ip6_punt_policer_cfg.fq_index = + vlib_frame_queue_main_init (ip6_punt_policer_node.index, 0); + return (NULL); } -- cgit 1.2.3-korg