summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/gre/gre.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/gre/gre.c b/src/vnet/gre/gre.c
index cd43a3afce9..29d0f0fe50c 100644
--- a/src/vnet/gre/gre.c
+++ b/src/vnet/gre/gre.c
@@ -241,7 +241,9 @@ gre_update_adj (vnet_main_t * vnm,
adj_index_t ai)
{
adj_nbr_midchain_update_rewrite (ai, gre_fixup,
- ADJ_MIDCHAIN_FLAG_NONE,
+ (VNET_LINK_ETHERNET == adj_get_link_type (ai) ?
+ ADJ_MIDCHAIN_FLAG_NO_COUNT :
+ ADJ_MIDCHAIN_FLAG_NONE),
gre_build_rewrite(vnm, sw_if_index,
adj_get_link_type(ai),
NULL));