aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2/l2_vtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'vnet/vnet/l2/l2_vtr.h')
-rw-r--r--vnet/vnet/l2/l2_vtr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/l2/l2_vtr.h b/vnet/vnet/l2/l2_vtr.h
index aef6c6d255e..ccd0920db52 100644
--- a/vnet/vnet/l2/l2_vtr.h
+++ b/vnet/vnet/l2/l2_vtr.h
@@ -96,6 +96,10 @@ l2_vtr_process (vlib_buffer_t * b0,
// Update l2_len
vnet_buffer(b0)->l2.l2_len += (word)config->push_bytes - (word)config->pop_bytes;
+ // Update vlan tag count
+ ethernet_buffer_adjust_vlan_count_by_bytes(b0,
+ (word)config->push_bytes - (word)config->pop_bytes);
+
// Update packet len
vlib_buffer_advance(b0, (word)config->pop_bytes - (word)config->push_bytes);