summaryrefslogtreecommitdiffstats
path: root/src/vlib
AgeCommit message (Expand)AuthorFilesLines
2020-10-02vlib: always replace bootstrap vlib_mainsDave Barach1-8/+7
2020-10-02vppinfra: use clib_mem_create_heap() to create numa heap(s)Damjan Marion1-2/+5
2020-10-01vlib: fix line-mode cli memory leakBenoît Ganne1-0/+1
2020-09-28vppinfra: don't call dlmalloc API directly from the codeDamjan Marion2-23/+20
2020-09-24vlib: fix the last errorMohsin Kazmi1-1/+2
2020-09-18vlib: add decrement counter methodSergey Matov1-0/+19
2020-09-17vlib: show FD in 'show memory map'Damjan Marion1-4/+11
2020-09-17vlib: map thread stack instead of allocating them from heapDamjan Marion2-30/+18
2020-09-17vppinfra: support main heap with different page sizesDamjan Marion2-6/+47
2020-09-17vppinfra: allow handoff to main threadDamjan Marion1-18/+16
2020-09-16vppinfra: introduce clib_mem_mainDamjan Marion2-14/+17
2020-09-11avf: add assert to ensure that adminq is used only from avf processDamjan Marion1-0/+7
2020-09-11vlib: fix call to vlib_get_node_by_nameBenoît Ganne1-1/+4
2020-09-09vlib: support interrupt re-arm from nodev21.01-rc0Damjan Marion1-10/+21
2020-09-05vlib: vlib_get_node_by_name fails via APINathan Skrzypczak1-2/+1
2020-09-04buffers: improve cache occupancyDamjan Marion1-2/+8
2020-09-03vlib: exit 0 (nocore) on SIGHUPChristian Hopps1-2/+2
2020-09-02fib: IPv6 lookup data structure MP safe when prefixes changeNeale Ranns3-1/+53
2020-08-31vlib: extend telnet protocol guardVladimir Isaev1-1/+1
2020-08-31vppinfra: convert A_extend_to_B to B_from_A format of vector inlinesDamjan Marion1-6/+6
2020-08-06misc: harmonize namesDave Barach5-17/+19
2020-07-24pci: fix non NULL-terminated vector used as C string overflowBenoît Ganne1-4/+5
2020-07-16misc: add callback hooks and refactor pmcTom Seidenberg9-83/+155
2020-07-16vlib: fix asan compilation with gccBenoît Ganne1-1/+1
2020-07-16misc: add tracedump API pluginDave Barach1-0/+2
2020-07-01vlib: wake up workers if interrupts are postedBenoît Ganne4-2/+8
2020-06-23vlib: debug CLI macro expander, part deuxDave Barach1-11/+34
2020-06-19vlib: add recursive macro expander to debug cliDave Barach1-1/+142
2020-06-17docs: add more FEATURE.yaml documentationDave Barach1-0/+14
2020-06-16vlib: address sanitizer support for stack switch, enable clangDamjan Marion6-11/+82
2020-06-15buffers: fix non-default sized buffers initializationBenoît Ganne1-5/+21
2020-06-12vlib: node recyling and node deletion missing triggering graph node syncSteven Luong1-27/+1
2020-06-08vlib: stop inlining vlib_add_trace(...)Dave Barach2-2/+17
2020-06-08vlib: Coverity fixDave Barach1-1/+1
2020-06-04fib: add barrier sync, pool/vector expand casesDave Barach2-0/+41
2020-06-03vlib: improve node interrupt handlingDamjan Marion3-47/+81
2020-05-26pci: improve vfio loggingDamjan Marion3-20/+77
2020-05-21vlib: enforce buffer alloc return value checkDamjan Marion1-6/+6
2020-05-20vlib: mmap process stacksDamjan Marion4-59/+42
2020-05-15vlib: restore commands for non-interactive sessionsBenoît Ganne1-8/+13
2020-05-15misc: removed executable bits from source filesRay Kinsella2-0/+0
2020-05-15ikev2: add support for NAT traversalFilip Tehlar1-5/+6
2020-05-14vlib: fix unix cli commands crash without sessionBenoît Ganne1-15/+23
2020-05-11vlib: fix u64 error counter cli printingFlorin Coras1-3/+3
2020-05-06misc: fix coverity warningsDave Barach1-1/+1
2020-05-02vlib: add nosyslog unix optionRuslan Babayev2-3/+12
2020-04-30build: rework x86 CPU variantsDamjan Marion1-1/+1
2020-04-28vlib: add ASSERT to vlib_time_now(...)Dave Barach1-0/+7
2020-04-28vlib: use flexible array in vlib_buffer for GCC-10Benoît Ganne1-1/+1
2020-04-28vlib: startup multi-arch variant configurationRay Kinsella4-1/+229
an class="p">, 0, sizeof (*mp)); mp->_vl_msg_id = ntohs (VL_API_DHCP_PROXY_DETAILS); mp->context = context; mp->rx_vrf_id = htonl (rx_fib_id); mp->server_vrf_id = htonl (server_fib_id); mp->vss_oui = htonl (vss_oui); mp->vss_fib_id = htonl (vss_fib_id); mp->is_ipv6 = (proto == FIB_PROTOCOL_IP6); if (mp->is_ipv6) { memcpy (mp->dhcp_server, server, 16); memcpy (mp->dhcp_src_address, src, 16); } else { /* put the address in the first bytes */ memcpy (mp->dhcp_server, &server->ip4, 4); memcpy (mp->dhcp_src_address, &src->ip4, 4); } vl_msg_api_send_shmem (q, (u8 *) & mp); } static void vl_api_dhcp_proxy_details_t_handler (vl_api_dhcp_proxy_details_t * mp) { clib_warning ("BUG"); } void dhcp_compl_event_callback (u32 client_index, u32 pid, u8 * hostname, u8 is_ipv6, u8 * host_address, u8 * router_address, u8 * host_mac) { unix_shared_memory_queue_t *q; vl_api_dhcp_compl_event_t *mp; q = vl_api_client_index_to_input_queue (client_index); if (!q) return; mp = vl_msg_api_alloc (sizeof (*mp)); mp->client_index = client_index; mp->pid = pid; mp->is_ipv6 = is_ipv6; clib_memcpy (&mp->hostname, hostname, vec_len (hostname)); mp->hostname[vec_len (hostname) + 1] = '\n'; clib_memcpy (&mp->host_address[0], host_address, 16); clib_memcpy (&mp->router_address[0], router_address, 16); if (NULL != host_mac) clib_memcpy (&mp->host_mac[0], host_mac, 6); mp->_vl_msg_id = ntohs (VL_API_DHCP_COMPL_EVENT); vl_msg_api_send_shmem (q, (u8 *) & mp); } static void vl_api_dhcp_client_config_t_handler (vl_api_dhcp_client_config_t * mp) { vlib_main_t *vm = vlib_get_main (); vl_api_dhcp_client_config_reply_t *rmp; int rv = 0; VALIDATE_SW_IF_INDEX (mp); rv = dhcp_client_config (vm, ntohl (mp->sw_if_index), mp->hostname, mp->is_add, mp->client_index, mp->want_dhcp_event ? dhcp_compl_event_callback : NULL, mp->pid); BAD_SW_IF_INDEX_LABEL; REPLY_MACRO (VL_API_DHCP_CLIENT_CONFIG_REPLY); } /* * dhcp_api_hookup * Add vpe's API message handlers to the table. * vlib has alread mapped shared memory and * added the client registration handlers. * See .../vlib-api/vlibmemory/memclnt_vlib.c:memclnt_process() */ #define vl_msg_name_crc_list #include <vnet/vnet_all_api_h.h> #undef vl_msg_name_crc_list static void setup_message_id_table (api_main_t * am) { #define _(id,n,crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); foreach_vl_msg_name_crc_dhcp; #undef _ } static clib_error_t * dhcp_api_hookup (vlib_main_t * vm) { api_main_t *am = &api_main; #define _(N,n) \ vl_msg_api_set_handlers(VL_API_##N, #n, \ vl_api_##n##_t_handler, \ vl_noop_handler, \ vl_api_##n##_t_endian, \ vl_api_##n##_t_print, \ sizeof(vl_api_##n##_t), 1); foreach_vpe_api_msg; #undef _ /* * Set up the (msg_name, crc, message-id) table */ setup_message_id_table (am); return 0; } VLIB_API_INIT_FUNCTION (dhcp_api_hookup); /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */