diff options
author | Pavel Kotucek <pkotucek@cisco.com> | 2017-01-16 17:01:56 +0100 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-02-21 00:00:12 +0000 |
commit | 65e845785f21e6b43c026f092e982171eec1f641 (patch) | |
tree | b0fed4d7d055d61e1c659030eef8950ab8460151 /src/vnet/l2/l2_vtr.h | |
parent | 9745aceb240d4586c47869203f48479c58e0f86e (diff) |
VPP-540 : pbb tag rewrite details
Extended sw_interface_dump to provide 802.1ah (pbb) tag rewrite info if
present.
Extended log "l2-output" to provide raw data to display result of
prospetive pbb tag rewrite. Tracing is moved after l2output_vtr to show
these changes.
Change-Id: I8b7cb865dc67ce21afab402cc086dac35f7c0f07
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_vtr.h')
-rw-r--r-- | src/vnet/l2/l2_vtr.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_vtr.h b/src/vnet/l2/l2_vtr.h index 893b2272b04..99aedc970db 100644 --- a/src/vnet/l2/l2_vtr.h +++ b/src/vnet/l2/l2_vtr.h @@ -258,6 +258,17 @@ u32 l2vtr_get (vlib_main_t * vlib_main, u32 * vtr_op, u32 * push_dot1q, u32 * vtr_tag1, u32 * vtr_tag2); +/** + * Get pbb tag rewrite on the given interface. + * Return 1 if there is an error, 0 if ok + */ +u32 l2pbb_get (vlib_main_t * vlib_main, + vnet_main_t * vnet_main, + u32 sw_if_index, + u32 * vtr_op, + u16 * outer_tag, + u8 * b_dmac, u8 * b_smac, u16 * b_vlanid, u32 * i_sid); + #endif /* included_vnet_l2_vtr_h */ |