diff options
author | IJsbrand Wijnands <ice@cisco.com> | 2020-03-05 10:56:26 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-03-10 13:47:10 +0000 |
commit | 39ae0a07ac17640a7f8ba136eaaf334bfd504030 (patch) | |
tree | c6c19f469f2b4d75ac54b890eda6a0dc3610ac30 /src/vnet/mpls/mpls_tunnel.h | |
parent | 287d5e109a93f14490f38bdbe34b6741af436984 (diff) |
mpls: add user defined name tag to mpls tunnels
This allows a user creating MPLS tunnel through the bin_api to add a name tag. This is useful
to correlate the Tunnel with its use-case. Also useful if the user needs to recover the MPLS
Tunnel after a restart (mark-sweep).
Type: feature
Change-Id:
Signed-off-by: IJsbrand Wijnands <ice@cisco.com>
Change-Id: Idc080a63810a176ab090a2678a73d2cf9f7b523f
Diffstat (limited to 'src/vnet/mpls/mpls_tunnel.h')
-rw-r--r-- | src/vnet/mpls/mpls_tunnel.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vnet/mpls/mpls_tunnel.h b/src/vnet/mpls/mpls_tunnel.h index 5685a0d8d6c..11a461b7b57 100644 --- a/src/vnet/mpls/mpls_tunnel.h +++ b/src/vnet/mpls/mpls_tunnel.h @@ -65,6 +65,11 @@ typedef struct mpls_tunnel_t_ mpls_tunnel_flags_t mt_flags; /** + * @brief User defined name tag for this MPLS Tunnel. + */ + u8 mt_tag[64]; + + /** * @brief If the tunnel is an L2 tunnel, this is the link type ETHERNET * load-balance */ @@ -101,7 +106,8 @@ typedef struct mpls_tunnel_t_ * @return the SW Interface index of the newly created tuneel */ extern u32 vnet_mpls_tunnel_create (u8 l2_only, - u8 is_multicast); + u8 is_multicast, + u8 *description); /** * @brief Add a path to an MPLS tunnel |