summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Expand)AuthorFilesLines
2019-01-31buffers: vallidate that buffer is allocated during buffer pool putDamjan Marion2-9/+6
2019-01-31Add 'show vlib graphviz' commandBenoƮt Ganne4-16/+108
2019-01-31dpdk-ipsec: use single queue pair per crypto resourceSergio Gonzalez Monroy6-32/+30
2019-01-31dpdk: populate mempool mem_listDamjan Marion1-2/+16
2019-01-31dpdk: store buffer poool index in mempool pool_idDamjan Marion1-22/+10
2019-01-31IPSEC: API modernisationNeale Ranns4-482/+540
2019-01-31vcl: improve handling of close on rwFlorin Coras2-48/+55
2019-01-31assert on double-free in debug buildKlement Sekera1-4/+2
2019-01-31pci: get the number of interruptsMohsin Kazmi2-0/+21
2019-01-31buffers: reinitialize metadata, add additional validationDamjan Marion3-26/+69
2019-01-30buffers: add missing ref_count = 1 in driversDamjan Marion3-0/+3
2019-01-30virtio: fix the device order (legacy or modern)Mohsin Kazmi1-3/+3
2019-01-30Use IP and MAC API types for neighborsNeale Ranns31-781/+844
2019-01-30MPLS tunnel; fix crash when deleting non-existant pathNeale Ranns2-0/+5
2019-01-30buffers: major cleanup and improvementsDamjan Marion26-1372/+997
2019-01-30ipsec: fix check support functionsKlement Sekera2-5/+17
2019-01-30vls: support passive listenersFlorin Coras4-85/+265
2019-01-30lisp: set reachable flag in map-registerFlorin Coras3-0/+3
2019-01-30ldp: initialize clib timeFlorin Coras1-8/+18
2019-01-29virtio: Support legacy and transitional virtio devicesMohsin Kazmi1-3/+11
2019-01-29vls: multi-process and multi-threaded apps improvementsFlorin Coras7-123/+342
2019-01-29Fix error while compiling using 'vlib/vlib.h' dependencie.Dmitry Vakhrushev1-0/+2
2019-01-29cmake: fix out-of-git-tree buildDamjan Marion2-11/+2
2019-01-28update openssl TLS async to align with openssl master branchPing Yu1-4/+2
2019-01-28Fix issues with order of NAT commands before set VRF table on an interfaceDmitry Vakhrushev1-2/+66
2019-01-28Add Ipsec IKE support to openssl 3.0.0 master branchPing Yu1-0/+24
2019-01-28Less intrusive way to capture numa_node and cpu_id changesDamjan Marion4-11/+13
2019-01-27Fix issue with cpu_id and numa_code captured too earlyDamjan Marion6-7/+11
2019-01-27session: properly initialize accepted/connected msgsFlorin Coras1-0/+2
2019-01-27perfmon: collect data on selected thread(s)Dave Barach5-27/+129
2019-01-26cmake: parse DPDK config without compilationDamjan Marion1-57/+15
2019-01-26vcl: add api to expose worker message queues epfdFlorin Coras2-0/+17
2019-01-26cmake: add support for linking with DPDK shared libsDamjan Marion3-68/+135
2019-01-25deprecate tapcliDamjan Marion9-2455/+0
2019-01-25MPLS-tunnel: show output to display the tunnel name correctlyNeale Ranns1-1/+1
2019-01-25IPSEC: tests use opbject registryNeale Ranns1-1/+11
2019-01-25tcp_echo: support all ctrl msgs and io cleanupFlorin Coras1-95/+103
2019-01-25pg: bugfix for pg paylod hdr-sizeKingwel Xie1-3/+3
2019-01-25IP6 FIB: walk table for dump (VPP-1553)Neale Ranns1-12/+7
2019-01-25cmake: execute git from src directoryDamjan Marion1-0/+1
2019-01-24perfmon: enable pmc event before reading rdpmc indexDamjan Marion1-6/+6
2019-01-24session/vcl: support worker ownership change for listenersFlorin Coras5-12/+54
2019-01-24move misc-drop-errors to vnetDave Barach2-31/+31
2019-01-24IPSEC Tests: to per-test setup and tearDownNeale Ranns1-4/+4
2019-01-24add "Mtrie mheap usage" in "show ip fib memory"Lollita Liu1-2/+9
2019-01-24perfmon plugin: 2-way parallel stat collectionDave Barach8-210/+284
2019-01-24buffers: fix vector typesDamjan Marion2-3/+5
2019-01-24avf: fix queue enable issueDamjan Marion1-8/+11
2019-01-24virtio: Minor fixes and header cleanupMohsin Kazmi5-24/+7
2019-01-23bond: packet drops on VPP bond interface [VPP-1544]Steven2-20/+21
/span>rxq->hw_if_index, rxq->queue_id); hash_unset_mem_free (&im->rxq_index_by_hw_if_index_and_queue_id, &key); for (int i = 0; i < vec_len (hi->rx_queue_indices); i++) if (hi->rx_queue_indices[i] == queue_index) { vec_del1 (hi->rx_queue_indices, i); break; } log_debug ("unregister: interface %v queue-id %u", hi->name, rxq->queue_id); pool_put_index (im->hw_if_rx_queues, queue_index); } void vnet_hw_if_unregister_all_rx_queues (vnet_main_t *vnm, u32 hw_if_index) { vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, hw_if_index); vnet_interface_main_t *im = &vnm->interface_main; vnet_hw_if_rx_queue_t *rxq; u64 key; log_debug ("unregister_all: interface %v", hi->name); for (int i = 0; i < vec_len (hi->rx_queue_indices); i++) { rxq = vnet_hw_if_get_rx_queue (vnm, hi->rx_queue_indices[i]); key = rx_queue_key (rxq->hw_if_index, rxq->queue_id); hash_unset_mem_free (&im->rxq_index_by_hw_if_index_and_queue_id, &key); pool_put_index (im->hw_if_rx_queues, hi->rx_queue_indices[i]); } vec_free (hi->rx_queue_indices); } void vnet_hw_if_set_rx_queue_file_index (vnet_main_t *vnm, u32 queue_index, u32 file_index) { vnet_hw_if_rx_queue_t *rxq = vnet_hw_if_get_rx_queue (vnm, queue_index); vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, rxq->hw_if_index); rxq->file_index = file_index; clib_file_set_polling_thread (&file_main, file_index, rxq->thread_index); log_debug ("set_file_index: interface %v queue-id %u file-index %u", hi->name, rxq->queue_id, file_index); } void vnet_hw_if_set_input_node (vnet_main_t *vnm, u32 hw_if_index, u32 node_index) { vlib_main_t *vm = vlib_get_main (); vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, hw_if_index); hi->input_node_index = node_index; log_debug ("set_input_node: node %U for interface %v", format_vlib_node_name, vm, node_index, hi->name); } int vnet_hw_if_set_rx_queue_mode (vnet_main_t *vnm, u32 queue_index, vnet_hw_if_rx_mode mode) { vnet_hw_if_rx_queue_t *rxq = vnet_hw_if_get_rx_queue (vnm, queue_index); vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, rxq->hw_if_index); vnet_device_class_t *dc = vnet_get_device_class (vnm, hi->dev_class_index); ASSERT (mode != VNET_HW_IF_RX_MODE_UNKNOWN); if (mode == VNET_HW_IF_RX_MODE_DEFAULT) mode = hi->default_rx_mode; if (rxq->mode == mode) { log_debug ("set_rx_queue_mode: interface %v queue-id %u mode " "unchanged (%U)", hi->name, rxq->queue_id, format_vnet_hw_if_rx_mode, mode); return 0; } if (dc->rx_mode_change_function) { clib_error_t *err = dc->rx_mode_change_function (vnm, rxq->hw_if_index, rxq->queue_id, mode); if (err) { log_err ("setting rx mode on the interface %v queue-id %u failed.\n" " %U", hi->name, rxq->queue_id, format_clib_error, err); clib_error_free (err); return VNET_API_ERROR_UNSUPPORTED; } } rxq->mode = mode; log_debug ("set_rx_queue_mode: interface %v queue-id %u mode set to %U", hi->name, rxq->queue_id, format_vnet_hw_if_rx_mode, mode); return 0; } vnet_hw_if_rx_mode vnet_hw_if_get_rx_queue_mode (vnet_main_t *vnm, u32 queue_index) { vnet_hw_if_rx_queue_t *rxq = vnet_hw_if_get_rx_queue (vnm, queue_index); return rxq->mode; } void vnet_hw_if_set_rx_queue_thread_index (vnet_main_t *vnm, u32 queue_index, u32 thread_index) { vnet_hw_if_rx_queue_t *rxq = vnet_hw_if_get_rx_queue (vnm, queue_index); vnet_hw_interface_t *hi = vnet_get_hw_interface (vnm, rxq->hw_if_index); rxq->thread_index = thread_index; if (rxq->file_index != ~0) clib_file_set_polling_thread (&file_main, rxq->file_index, thread_index); log_debug ("set_rx_queue_thread_index: interface %v queue-id %u " "thread-index set to %u", hi->name, rxq->queue_id, thread_index); } vnet_hw_if_rxq_poll_vector_t * vnet_hw_if_generate_rxq_int_poll_vector (vlib_main_t *vm, vlib_node_runtime_t *node) { vnet_hw_if_rx_node_runtime_t *rt = (void *) node->runtime_data; vnet_main_t *vnm = vnet_get_main (); int int_num = -1; ASSERT (node->state == VLIB_NODE_STATE_INTERRUPT); vec_reset_length (rt->rxq_vector_int); while ((int_num = clib_interrupt_get_next (rt->rxq_interrupts, int_num)) != -1) { vnet_hw_if_rx_queue_t *rxq = vnet_hw_if_get_rx_queue (vnm, int_num); vnet_hw_if_rxq_poll_vector_t *pv; clib_interrupt_clear (rt->rxq_interrupts, int_num); vec_add2 (rt->rxq_vector_int, pv, 1); pv->dev_instance = rxq->dev_instance; pv->queue_id = rxq->queue_id; } return rt->rxq_vector_int; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */