summaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Expand)AuthorFilesLines
2017-09-28drop python3 dependencyKlement Sekera1-7/+1
2017-09-26Fix SUSE dependencies to contemplate both python and python3 scripts.Marco Varlese1-1/+1
2017-09-25Fix Ubuntu java dependency regression.Dave Wallace1-0/+1
2017-09-22openSUSE build fixMarco Varlese1-1/+1
2017-09-21Fix for ssl dependency on debian 9Anton Ivanov1-2/+7
2017-09-20Use openssl 1.0 compat RPM for Fedora 26 and newer.Thomas F Herbert1-1/+3
2017-09-19Add new C APIKlement Sekera1-2/+9
2017-09-12Add option to build without multi-buffer crypto.Thomas F Herbert1-1/+2
2017-09-08add apr-devel to rpm dependency list for centos-7Gabriel Ganne1-0/+1
2017-08-31Add explicit check for Fedora.Thomas F Herbert1-1/+1
2017-08-31Do arithemtric comparison in Makefile without using bcDamjan Marion1-1/+1
2017-08-31Revert "add bc to dependency list"Damjan Marion1-4/+3
2017-08-30add bc to dependency listGabriel Ganne1-3/+4
2017-08-29silence makefile warning on ubuntuGabriel Ganne1-1/+1
2017-08-26Add Build Requirements from Makefile to spec file.Thomas F Herbert1-15/+10
2017-08-25Fixed the SUSE dependency on libnumaMarco Varlese1-1/+1
2017-08-25dpdk: required changes for 17.08Sergio Gonzalez Monroy1-3/+3
2017-08-17make test: collect symlinks to failed testsKlement Sekera1-1/+1
2017-08-08Create source rpm.Thomas F Herbert1-0/+3
2017-08-04Fix nasm deps for Fedora.Thomas F Herbert1-1/+5
2017-08-02Added NASM package to support SW cryptoMarco Varlese1-1/+1
2017-07-20Enable build from dist tarball independent of git.Thomas F Herbert1-6/+11
2017-07-17Fix unlinking of /dev/shm files.Dave Wallace1-2/+7
2017-06-30top-level Makefile improvementsDamjan Marion1-11/+36
2017-06-24Rewrite vppctl in CDamjan Marion1-1/+1
2017-06-02Add option to build sample plugin in top-level makefileDamjan Marion1-12/+23
2017-06-01Support to install dependencies on openSUSE distributionMarco Varlese1-1/+7
2017-05-31Revert "dpdk: build sw cryptodev support with make verify"Peter Mikus1-7/+5
2017-05-30dpdk: build sw cryptodev support with make verifySergio Gonzalez Monroy1-5/+7
2017-05-29Add Debian Jessie support in toplevel makefileDamjan Marion1-4/+11
2017-05-22Disable "make test" for CentOSDamjan Marion1-0/+2
2017-05-20Remove specific versions of some packages.Thomas F Herbert1-4/+5
2017-05-19Add indent to DEB_DEPENDS missing in vagrant box.Dave Wallace1-1/+1
2017-05-09Generate test paths for lib and lib64 subdirectoriesIgor Mikhailov (imichail)1-2/+5
2017-05-09Fix remaining 32-bit compile issuesDamjan Marion1-4/+4
2017-05-06lcov is an EPEL rpm (at least for Centos)Igor Mikhailov (imichail)1-1/+6
2017-05-04Fix RPM_DEPENDS for all rpm distros after 28ea251Igor Mikhailov (imichail)1-3/+1
2017-04-20Extend ebuild to specify "configure" subdir, enable verify for sample-pluginDamjan Marion1-0/+2
2017-04-19disable extended BFD tests in verify jobKlement Sekera1-1/+1
2017-04-19Fix "make dist" to include version number, docouple it from rpm packagingDamjan Marion1-8/+20
2017-04-19make test: python interpreter customizationvagrant1-0/+1
2017-03-29Fix for dependency problem with Fedora 25Thomas F Herbert1-2/+10
2017-03-27Check for missing deps on bootstrap target for Centos and Fedora.Thomas F Herbert1-0/+15
2017-03-27Python-API: debian packaging now depends on python-all (for pybuild)Ole Troan1-1/+1
2017-03-22make test: run all tests in test-cov targetKlement Sekera1-0/+1
2017-03-22make test: support out-of-tree testsKlement Sekera1-2/+3
2017-03-16Add epel-rpm-macros for CentOS/RHEL install-depAlexander Popovsky (apopovsk)1-1/+1
2017-03-15Python API: Change from cPython to CFFI.Ole Troan1-2/+3
2017-03-14Nasm > 2.11.06 required for sw_crypto.Thomas F Herbert1-0/+1
2017-03-10Retire vpp_liteDamjan Marion1-9/+7
n>; vnet_hw_interface_t *rxq_hi; ASSERT (rxq->mode != VNET_HW_IF_RX_MODE_UNKNOWN); ASSERT (rxq->mode != VNET_HW_IF_RX_MODE_DEFAULT); rxq_hi = vnet_get_hw_interface (vnm, rxq->hw_if_index); if (rxq_hi->input_node_index != node_index) continue; if (rxq->mode == VNET_HW_IF_RX_MODE_POLLING) { per_thread_node_state[ti] = VLIB_NODE_STATE_POLLING; per_thread_node_adaptive[ti] = 0; } if (per_thread_node_state[ti] == VLIB_NODE_STATE_POLLING) continue; if (rxq->mode == VNET_HW_IF_RX_MODE_INTERRUPT || rxq->mode == VNET_HW_IF_RX_MODE_ADAPTIVE) per_thread_node_state[ti] = VLIB_NODE_STATE_INTERRUPT; if (rxq->mode == VNET_HW_IF_RX_MODE_ADAPTIVE) per_thread_node_adaptive[ti] = 1; } /* construct per-thread polling vectors */ pool_foreach (rxq, im->hw_if_rx_queues) { u32 ti = rxq->thread_index; vnet_hw_interface_t *rxq_hi; rxq_hi = vnet_get_hw_interface (vnm, rxq->hw_if_index); if (rxq_hi->input_node_index != node_index) continue; if (rxq->mode == VNET_HW_IF_RX_MODE_INTERRUPT || rxq->mode == VNET_HW_IF_RX_MODE_ADAPTIVE) last_int = clib_max (last_int, rxq - im->hw_if_rx_queues); if (per_thread_node_adaptive[ti]) { vec_add2_aligned (a[ti], pv, 1, CLIB_CACHE_LINE_BYTES); pv->dev_instance = rxq->dev_instance; pv->queue_id = rxq->queue_id; } if (per_thread_node_state[ti] != VLIB_NODE_STATE_POLLING) continue; vec_add2_aligned (d[ti], pv, 1, CLIB_CACHE_LINE_BYTES); pv->dev_instance = rxq->dev_instance; pv->queue_id = rxq->queue_id; } /* sort poll vectors and compare them with active ones to avoid * unnecesary barrier */ for (int i = 0; i < n_threads; i++) { vlib_main_t *ovm = vlib_get_main_by_index (i); vlib_node_state_t old_state; vec_sort_with_function (d[i], poll_data_sort); old_state = vlib_node_get_state (ovm, node_index); if (per_thread_node_state[i] != old_state) { something_changed_on_rx = 1; log_debug ("state changed for node %U on thread %u from %s to %s", format_vlib_node_name, vm, node_index, i, node_state_str[old_state], node_state_str[per_thread_node_state[i]]); } /* check if something changed */ if (something_changed_on_rx == 0) { vnet_hw_if_rx_node_runtime_t *rt; rt = vlib_node_get_runtime_data (ovm, node_index); if (vec_len (rt->rxq_vector_int) != vec_len (d[i])) something_changed_on_rx = 1; else if (memcmp (d[i], rt->rxq_vector_int, vec_len (d[i]) * sizeof (**d))) something_changed_on_rx = 1; if (clib_interrupt_get_n_int (rt->rxq_interrupts) != last_int + 1) something_changed_on_rx = 1; if (something_changed_on_rx == 0 && per_thread_node_adaptive[i]) { if (vec_len (rt->rxq_vector_poll) != vec_len (a[i])) something_changed_on_rx = 1; else if (memcmp (a[i], rt->rxq_vector_poll, vec_len (a[i]) * sizeof (**a))) something_changed_on_rx = 1; } } } if (vec_len (hi->tx_queue_indices) > 0) { new_out_runtimes = vec_dup_aligned (hi->output_node_thread_runtimes, CLIB_CACHE_LINE_BYTES); vec_validate_aligned (new_out_runtimes, n_threads - 1, CLIB_CACHE_LINE_BYTES); for (u32 i = 0; i < vec_len (new_out_runtimes); i++) { vnet_hw_if_output_node_runtime_t *rt; rt = vec_elt_at_index (new_out_runtimes, i); u32 n_queues = 0, total_queues = vec_len (hi->tx_queue_indices); rt->frame = 0; rt->lookup_table = 0; for (u32 j = 0; j < total_queues; j++) { u32 queue_index = hi->tx_queue_indices[j]; vnet_hw_if_tx_frame_t frame = { .shared_queue = 0, .hints = 7, .queue_id = ~0 }; vnet_hw_if_tx_queue_t *txq = vnet_hw_if_get_tx_queue (vnm, queue_index); if (!clib_bitmap_get (txq->threads, i)) continue; log_debug ("tx queue data changed for interface %v, thread %u " "(queue_id %u)", hi->name, i, txq->queue_id); something_changed_on_tx = 1; frame.queue_id = txq->queue_id; frame.shared_queue = txq->shared_queue; vec_add1 (rt->frame, frame); n_queues++; } // don't initialize rt->n_queues above if (rt->n_queues != n_queues) { something_changed_on_tx = 1; rt->n_queues = n_queues; } /* * It is only used in case of multiple txq. */ if (rt->n_queues > 0) { if (!is_pow2 (n_queues)) n_queues = max_pow2 (n_queues); vec_validate_aligned (rt->lookup_table, n_queues - 1, CLIB_CACHE_LINE_BYTES); for (u32 k = 0; k < vec_len (rt->lookup_table); k++) { rt->lookup_table[k] = rt->frame[k % rt->n_queues].queue_id; log_debug ("tx queue lookup table changed for interface %v, " "(lookup table [%u]=%u)", hi->name, k, rt->lookup_table[k]); } } } } else /* interface deleted */ something_changed_on_tx = 1; if (something_changed_on_rx || something_changed_on_tx) { int with_barrier; if (vlib_worker_thread_barrier_held ()) { with_barrier = 0; log_debug ("%s", "already running under the barrier"); } else with_barrier = 1; if (with_barrier) vlib_worker_thread_barrier_sync (vm); if (something_changed_on_rx) { for (int i = 0; i < n_threads; i++) { vlib_main_t *vm = vlib_get_main_by_index (i); vnet_hw_if_rx_node_runtime_t *rt; rt = vlib_node_get_runtime_data (vm, node_index); pv = rt->rxq_vector_int; rt->rxq_vector_int = d[i]; d[i] = pv; if (per_thread_node_adaptive[i]) { pv = rt->rxq_vector_poll; rt->rxq_vector_poll = a[i]; a[i] = pv; } if (rt->rxq_interrupts) { void *in = rt->rxq_interrupts; int int_num = -1; while ((int_num = clib_interrupt_get_next (in, int_num)) != -1) { clib_interrupt_clear (in, int_num); pending_int = clib_bitmap_set (pending_int, int_num, 1); last_int = clib_max (last_int, int_num); } } vlib_node_set_state (vm, node_index, per_thread_node_state[i]); vlib_node_set_flag (vm, node_index, VLIB_NODE_FLAG_ADAPTIVE_MODE, per_thread_node_adaptive[i]); if (last_int >= 0) clib_interrupt_resize (&rt->rxq_interrupts, last_int + 1); else clib_interrupt_free (&rt->rxq_interrupts); } } if (something_changed_on_tx) { vnet_hw_if_output_node_runtime_t *t; t = hi->output_node_thread_runtimes; hi->output_node_thread_runtimes = new_out_runtimes; new_out_runtimes = t; } if (with_barrier) vlib_worker_thread_barrier_release (vm); } else log_debug ("skipping update of node '%U', no changes detected", format_vlib_node_name, vm, node_index); if (pending_int) { int i; clib_bitmap_foreach (i, pending_int) { vnet_hw_if_rx_queue_set_int_pending (vnm, i); } clib_bitmap_free (pending_int); } for (int i = 0; i < n_threads; i++) { vec_free (d[i]); vec_free (a[i]); if (new_out_runtimes) { vec_free (new_out_runtimes[i].frame); vec_free (new_out_runtimes[i].lookup_table); } } vec_free (d); vec_free (a); vec_free (per_thread_node_state); vec_free (per_thread_node_adaptive); vec_free (new_out_runtimes); }