From 47a3d9975fa3af7a7537b565d6511dadc0df61fb Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 29 Sep 2020 15:38:51 +0000 Subject: l2: input performance Type: improvement - cache the values form the BD on the input config to avoid loading - avoid the short write long read on the sequence number - use vlib_buffer_enqueue_to_next Signed-off-by: Neale Ranns Change-Id: I33442b9104b457e4c638d26e9ad3bc965687a0bc --- src/vnet/dpo/dvr_dpo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vnet/dpo/dvr_dpo.c') diff --git a/src/vnet/dpo/dvr_dpo.c b/src/vnet/dpo/dvr_dpo.c index 6dd58108091..533ce4b39f3 100644 --- a/src/vnet/dpo/dvr_dpo.c +++ b/src/vnet/dpo/dvr_dpo.c @@ -110,7 +110,8 @@ dvr_dpo_add_or_lock (u32 sw_if_index, config = l2input_intf_config (sw_if_index); - if (config->bridge || config->xconnect) + if (l2_input_is_bridge(config) || + l2_input_is_xconnect(config)) { dd->dd_reinject = DVR_REINJECT_L2; } -- cgit 1.2.3-korg