Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update L2 header offset after VLAN tag rewrite
[vpp.git]
/
src
/
vnet
/
l2
/
l2_vtr.h
diff --git
a/src/vnet/l2/l2_vtr.h
b/src/vnet/l2/l2_vtr.h
index
0aea618
..
f6454bf
100644
(file)
--- a/
src/vnet/l2/l2_vtr.h
+++ b/
src/vnet/l2/l2_vtr.h
@@
-105,9
+105,11
@@
l2_vtr_process (vlib_buffer_t * b0, vtr_config_t * config)
*((u64 *) eth) = temp_8;
*((u32 *) (eth + 8)) = temp_4;
*((u64 *) eth) = temp_8;
*((u32 *) (eth + 8)) = temp_4;
- /* Update l2
_len
*/
+ /* Update l2
parameters
*/
vnet_buffer (b0)->l2.l2_len +=
(word) config->push_bytes - (word) config->pop_bytes;
vnet_buffer (b0)->l2.l2_len +=
(word) config->push_bytes - (word) config->pop_bytes;
+ vnet_buffer (b0)->l2_hdr_offset -=
+ (word) config->push_bytes - (word) config->pop_bytes;
/* Update vlan tag count */
ethernet_buffer_adjust_vlan_count_by_bytes (b0,
/* Update vlan tag count */
ethernet_buffer_adjust_vlan_count_by_bytes (b0,