diff options
author | Neale Ranns <nranns@cisco.com> | 2018-09-07 08:57:41 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-20 10:57:25 +0000 |
commit | 9c0a3c423ee0b9326f600a00c1bd46fef45d4975 (patch) | |
tree | 6415119b2e341cd340f2b2cbbb44e8ce0c689451 /src/vnet/udp/udp_encap.h | |
parent | da8e1802625bd5d6e9901d5a96106e6de4f3d71f (diff) |
UDP-Encap: name counters for the stats segment
change the ADD api so that is returns the 'ID' that can be used
by the client to read the stats from the stats segment and to
delete the object. Previously a similar value used required
to be chosen by the client, now VPP allocates one (like it
does e.g. for interfaces)
Change-Id: I563cf6092276eb990c52d5457c86e72546bcf69e
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/udp/udp_encap.h')
-rw-r--r-- | src/vnet/udp/udp_encap.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/vnet/udp/udp_encap.h b/src/vnet/udp/udp_encap.h index e2d652775bc..ac8e88b9643 100644 --- a/src/vnet/udp/udp_encap.h +++ b/src/vnet/udp/udp_encap.h @@ -93,12 +93,6 @@ typedef struct udp_encap_t_ fib_node_t ue_fib_node; /** - * The ID given by the user/client. - * This ID is used by the client for modifications. - */ - u32 ue_id; - - /** * Tracking information for the IP destination */ fib_node_index_t ue_fib_entry_index; @@ -110,8 +104,7 @@ typedef struct udp_encap_t_ index_t ue_fib_index; } udp_encap_t; -extern index_t udp_encap_add_and_lock (u32 id, - fib_protocol_t proto, +extern index_t udp_encap_add_and_lock (fib_protocol_t proto, index_t fib_index, const ip46_address_t * src_ip, const ip46_address_t * dst_ip, @@ -119,12 +112,10 @@ extern index_t udp_encap_add_and_lock (u32 id, u16 dst_port, udp_encap_fixup_flags_t flags); -extern index_t udp_encap_find (u32 id); -extern void udp_encap_lock (u32 id); -extern void udp_encap_unlock (u32 id); +extern void udp_encap_lock (index_t uei); +extern void udp_encap_unlock (index_t uei); extern u8 *format_udp_encap (u8 * s, va_list * args); -extern void udp_encap_unlock_w_index (index_t uei); -extern void udp_encap_contribute_forwarding (u32 id, +extern void udp_encap_contribute_forwarding (index_t uei, dpo_proto_t proto, dpo_id_t * dpo); |