aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/dpo/dvr_dpo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/dpo/dvr_dpo.c')
-rw-r--r--src/vnet/dpo/dvr_dpo.c3
1 files changed, 2 insertions, 1 deletions
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;
}