summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-02-21 17:30:26 -0800
committerNeale Ranns <nranns@cisco.com>2017-03-09 10:50:41 +0000
commit37be73693a46b05360483778efee3313a71654f5 (patch)
tree33c6672e46759f9f338702ce90b0af3eb2c1e88f /src/vnet
parent794813fda16b6935d01034112ff795a69410acfd (diff)
Tests to target holes in adjacency and DPO test coverage
Change-Id: Ic6ac7e441a7b75baa02f03c1585d1ae00903a399 Signed-off-by: Neale Ranns <nranns@cisco.com>
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));