X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Flisp-cp%2Fcontrol.h;h=12bfcb5194ed91f030c62800ac4459ef5d79c506;hb=8d66f9d3f83a419fde67efbb2ee8697038922b7a;hp=7b0380fbc0ab12a3a7acd08c93da08d2b518718b;hpb=7048ff1e3af7a3979a9134cbbb8157df8e1a8a53;p=vpp.git diff --git a/src/vnet/lisp-cp/control.h b/src/vnet/lisp-cp/control.h index 7b0380fbc0a..12bfcb5194e 100644 --- a/src/vnet/lisp-cp/control.h +++ b/src/vnet/lisp-cp/control.h @@ -180,6 +180,12 @@ typedef struct /* hash map of forwarding entries by mapping index */ u32 *fwd_entry_by_mapping_index; + /* pool of vectors of rmts per lcl mapping in adjacencies */ + u32 **lcl_to_rmt_adjacencies; + + /* hash of pool positions of vectors of rmts by lcl mapping index */ + u32 *lcl_to_rmt_adjs_by_lcl_idx; + /* forwarding entries pool */ fwd_entry_t *fwd_entry_pool; @@ -329,9 +335,11 @@ vnet_lisp_add_del_local_mapping (vnet_lisp_add_del_mapping_args_t * a, u32 * map_index_result); int -vnet_lisp_add_del_mapping (gid_address_t * deid, locator_t * dlocs, u8 action, - u8 authoritative, u32 ttl, u8 is_add, u8 is_static, - u32 * res_map_index); +vnet_lisp_add_mapping (vnet_lisp_add_del_mapping_args_t * a, + locator_t * rlocs, u32 * res_map_index, + u8 * is_changed); + +int vnet_lisp_del_mapping (gid_address_t * eid, u32 * res_map_index); typedef struct {