summaryrefslogtreecommitdiffstats
path: root/src/vnet/span
AgeCommit message (Expand)AuthorFilesLines
2020-12-14misc: refactor clib_bitmap_foreach macroDamjan Marion3-6/+6
2020-02-26span: API cleanupJakub Grajciar2-13/+23
2019-12-10api: multiple connections per processDave Barach1-1/+1
2019-03-29SPAN: Add pending frame on current thread, not on mainIgor Mikhailov (imichail)1-6/+5
2019-03-06span: migrate old MULTIARCH macros to VLIB_NODE_FNFilip Tehlar1-30/+13
2019-01-11Fix 'show interface span' field lengthIgor Mikhailov (imichail)1-2/+2
2018-10-23c11 safe string handling supportDave Barach1-1/+1
2018-09-24Trivial: Clean up some typos.Paul Vinciguerra4-8/+8
2018-07-19Remove unused argument to vlib_feature_nextDamjan Marion1-3/+3
2018-04-25span: crash in span_mirror [VPP-1254]Steven1-2/+7
2018-03-12SPAN: Add 'is_l2" flag to DETAILS response messages.Jon Loeliger2-0/+3
2018-02-15Optimize GRE Tunnel and add support for ERSPAN encapJohn Lo1-3/+12
2018-01-23VPPAPIGEN: vppapigen replacement in Python PLY.Ole Troan1-1/+1
2018-01-11api: remove transport specific code from handlersFlorin Coras1-4/+4
2018-01-09api: refactor vlibmemoryFlorin Coras1-1/+1
2017-10-24Add extern to *_main global variable declarations in header files.Dave Wallace2-1/+3
2017-10-09vppapigen: support per-file (major,minor,patch) version stampsDave Barach1-0/+2
2017-08-01SPAN/API:enable L2 dumpEyal Bari2-6/+10
2017-07-31SPAN/CLI:fix disable + add errorsEyal Bari1-16/+44
2017-07-24SPAN:add l2 mirrorEyal Bari5-127/+260
2017-07-14vnet_buffer_t flags cleanupDamjan Marion1-2/+2
2017-04-25"autoreply" flag: autogenerate standard xxx_reply_t messagesDave Barach1-9/+1
2017-03-26Rename "show interfaces" -> "show interface"Dave Barach1-1/+1
2017-03-10Fix coverity CIDs 161048, 163895Pavel Kotucek1-2/+0
2017-03-06span: wrong destination interface in tracingPavel Kotucek1-28/+18
2017-02-24VPP-650: handle buffer failure in vlib_buffer_copy(...)Dave Barach1-4/+8
2017-01-25span: tx functionalityPavel Kotucek1-2/+2
2016-12-28Repair Doxygen build infrastructureChris Luke1-1/+1
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion6-0/+823
"o">!= rpath->frp_label_stack) { fib_path_ext_list_push_back(&src->fes_path_exts, src->fes_pl, FIB_PATH_EXT_MPLS, rpath); } } } static void fib_entry_src_api_path_add (fib_entry_src_t *src, const fib_entry_t *entry, fib_path_list_flags_t pl_flags, const fib_route_path_t *rpaths) { const fib_route_path_t *rpath; if (FIB_NODE_INDEX_INVALID == src->fes_pl) { src->fes_pl = fib_path_list_create((FIB_PATH_LIST_FLAG_SHARED | pl_flags), rpaths); } else { src->fes_pl = fib_path_list_copy_and_path_add(src->fes_pl, (FIB_PATH_LIST_FLAG_SHARED | pl_flags), rpaths); } /* * re-resolve all the path-extensions with the new path-list */ fib_path_ext_list_resolve(&src->fes_path_exts, src->fes_pl); /* * if the path has a label we need to add a path extension */ vec_foreach(rpath, rpaths) { if (NULL != rpath->frp_label_stack) { fib_path_ext_list_insert(&src->fes_path_exts, src->fes_pl, FIB_PATH_EXT_MPLS, rpath); } } } static void fib_entry_src_api_path_remove (fib_entry_src_t *src, fib_path_list_flags_t pl_flags, const fib_route_path_t *rpaths) { const fib_route_path_t *rpath; if (FIB_NODE_INDEX_INVALID != src->fes_pl) { src->fes_pl = fib_path_list_copy_and_path_remove(src->fes_pl, (FIB_PATH_LIST_FLAG_SHARED | pl_flags), rpaths); /* * remove the path-extension for the path */ vec_foreach(rpath, rpaths) { fib_path_ext_list_remove(&src->fes_path_exts, FIB_PATH_EXT_MPLS, rpath); }; /* * resolve the remaining extensions */ fib_path_ext_list_resolve(&src->fes_path_exts, src->fes_pl); } } static void fib_entry_src_api_add (fib_entry_src_t *src, const fib_entry_t *entry, fib_entry_flag_t flags, dpo_proto_t proto, const dpo_id_t *dpo) { if (FIB_ENTRY_FLAG_NONE != flags) { src->fes_pl = fib_path_list_create_special( proto, fib_entry_src_flags_2_path_list_flags(flags), dpo); } } static void fib_entry_src_api_remove (fib_entry_src_t *src) { src->fes_pl = FIB_NODE_INDEX_INVALID; } const static fib_entry_src_vft_t api_src_vft = { .fesv_init = fib_entry_src_api_init, .fesv_deinit = fib_entry_src_api_deinit, .fesv_add = fib_entry_src_api_add, .fesv_remove = fib_entry_src_api_remove, .fesv_path_add = fib_entry_src_api_path_add, .fesv_path_swap = fib_entry_src_api_path_swap, .fesv_path_remove = fib_entry_src_api_path_remove, }; void fib_entry_src_api_register (void) { fib_entry_src_register(FIB_SOURCE_PLUGIN_HI, &api_src_vft); fib_entry_src_register(FIB_SOURCE_PLUGIN_LOW, &api_src_vft); fib_entry_src_register(FIB_SOURCE_API, &api_src_vft); fib_entry_src_register(FIB_SOURCE_CLI, &api_src_vft); fib_entry_src_register(FIB_SOURCE_6RD, &api_src_vft); fib_entry_src_register(FIB_SOURCE_DHCP, &api_src_vft); fib_entry_src_register(FIB_SOURCE_IP6_ND_PROXY, &api_src_vft); fib_entry_src_register(FIB_SOURCE_IP6_ND, &api_src_vft); fib_entry_src_register(FIB_SOURCE_SR, &api_src_vft); }