aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-11-12Fix a bug in the timing wheelKlement Sekera1-2/+3
Properly propagate vector allocated in advance_cpu_time_base() for a special case, when the expired_user_data parameter passed to timing_wheel_advance() is NULL and the only expired event is in the overflow pool. Change-Id: I5cefab0e881958334791aaa6354ec08225af23c1 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-12Use gcc for start in 'make verify'Damjan Marion1-3/+2
Change-Id: I8ef5f8aeb9af5127337163c4767bfa92b62f8175 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-12pseudo atomic adjacency updatesNeale Ranns10-94/+230
When an adjacency changes from incomplete to complete (arp to rewrite) and vice-versa, that update must produce valid behavour w.r.t. the packets that continue to encounter it. Change-Id: Icc2709aff9807c5d24f91ef7649268991ad9a45d Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-12Clean up coverity warnings, VPP-486Dave Barach3-15/+12
Change-Id: I709e7cf0bb52d8e6cdc9ddb3b7648660204aa3bd Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-11Add 'make verify' target to top-level makefileDamjan Marion1-0/+4
Change-Id: I992df2b6ded9533d32f5f936e6d651055061f054 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-11Add single-loop test variant to L2BD and L2XC testsJan6-151/+284
- create single-loop version of tests - update doc strings - add possibility to log CLI string for logging level "info" Change-Id: Ibc9e5650b8a33d2ed168a8440c2ae03227be60bb Signed-off-by: Jan <jgelety@cisco.com>
2016-11-11Luajit API and some examplesAndrew Yourtchenko16-0/+4164
Change-Id: Ia140c4750f06870c40b7058c4afb2e20ca633a49 Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
2016-11-11Fix clang compile errors in pluginsNeale Ranns1-3/+3
Change-Id: I2c2df9b5ba567bde2564c924bd9ad2fbbac775c4 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-11feature: convert all feature nodes to new feature infraDamjan Marion40-1613/+481
Change-Id: I34c527ba910fb282a95458b78d1d684eb337905e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-11Add IRB testMatej Klotton10-119/+483
- JIRA: CSIT-255 - create loopback interfaces - move pg-interface specific arp and neighbor discovery from vpp_interface to vpp_pg_interface - base configuration of IRB tests - IP test scenario Change-Id: I9945a188163652a4e22325877aef008c4d029557 Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-11-10ip_frag: fix implicit enum conversionDamjan Marion1-1/+1
Change-Id: I024b8d79cced45cf53a7a912319eca2cc932b10e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-10feature: fix init issue when multiple arc are presentDamjan Marion2-10/+18
Change-Id: I9c76b6d7ffebeeb92d5eeca5852c487d73151f28 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-10Enable verification received packet for LB testMatej Klotton1-12/+4
Change-Id: I9c8a2f5744f322b2bd91c5ae24aeb1279cd11e0c Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-11-10VXLAN tunnel encap forwarding optimization with FIB 2.0John Lo9-379/+494
Optimize VXLAN encap node so that vxlan4-encap node is used for IP4 and vxlan6-encap node is used for IP6 underlay. Also stack the VXLAN encap nodes to the appropriate FIB IP4 or IP6 load-balance node instead of ip4/ip6-lookup node to save IP lookup operation. For VXLAN decap node, check VXLAN header FLAGS field for each packet and remove the code to support decap-next for IP4 or IP6. These decap- next values were intended for experimentation purposes and not needed any more since VXLAN-GPE tunnel is supported. The decap-next field is still kept in API for backward compatibility and its value has no effect. Decap next for both vxlan4-decap and vxlan6-decap nodes is always l2-input node. Change-Id: I8ac95774946549ec403ab691f999df0c006b460f Signed-off-by: John Lo <loj@cisco.com>
2016-11-09Fix Compile errors from clang in FIB2.0 codeNeale Ranns15-21/+19
Change-Id: Ief769c966888094944b7a6b7f26527e7eff6103f Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-09Fix DHCP proxy when used for non-default FIB tablesIgor Mikhailov (imichail)1-3/+3
An issue is that the server->server_fib_index is overwritten by some incorrect value on subsequent calls to the function - e.g. when setting DHCP proxy for the same FIB table several times. Change-Id: I2e129b47f5c8fe3a0b924a7d71bb83e6fc53e9b5 Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
2016-11-09Fix a batch of coverity warnings, VPP-486Dave Barach6-6/+19
Change-Id: I0379844824b4c2eb42588d0fb8e1a7eb441e923f Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-09Update CSIT tests 161030 -> 161106Jan1-1/+1
- update of CSIT operational branch to be used for VPP-patch test Change-Id: I5e705f4a4d1f843ff0041930399f707e59d01b05 Signed-off-by: Jan <jgelety@cisco.com>
2016-11-09threads: don't wait for dpdk init in vpp_liteDamjan Marion1-1/+3
Change-Id: I110cdc3cc2a26aa36dc250302a6f26db2d884e08 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-09devices: create dummy device-input node to keep nexts in syncDamjan Marion11-29/+31
device-input feature arc requires that all input-nodes have nexts in sync. packet-generator tends to call vlib_node_add_next when new stream is created and that puts nexts out of sync. With this change all input node are siblings of device-input node so call to vlib_node_add_next(...) will install same next to the whole family. Change-Id: I33d79492e5f30f348af19e527f36fe0222c524d7 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-09dpdk: bump to 16.11-rc3 releaseDamjan Marion1-1/+1
Tarball available at: http://dpdk.org/browse/dpdk/snapshot/dpdk-16.11-rc3.tar.xz Change-Id: Ib34f32206d866888c4b5bf6609b8ae53f570daaa Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-09fix errors reported by clangDamjan Marion2-1/+2
Change-Id: Ib821e52dac7cd7ee24e6e495916689e23e8b699a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-09Improve test framework documentationKlement Sekera26-199/+386
Change-Id: I06f0cbbbdd29e04a07f1db6807b3e16f1d41e8d2 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-09Disable non-working checks in load-balancer test and rename ip->ip4Klement Sekera2-8/+11
Change-Id: If62011e29e912bf0c47625b0d3b3624ef6375013 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-09Update sample plugin and plugin skeletons: use driver feature arcDave Barach5-26/+75
Change-Id: Ic0a1479e4a0408a4b93f47e50752d07c2bdccdde Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-08pg: maintain per-worker bitmap of enabled streamsDamjan Marion4-10/+25
Change-Id: I38e476c8080faa5a8647ce6be5a71090e0aa8d5b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-08Add the tap driver to the driver feature arc schemeDave Barach2-24/+16
Change-Id: I5f5251ed6b2a39d5e83dd7c702079245ef5f32b0 Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-08vhost: Improve packet tracingPierre Pfister2-64/+133
Packet tracing for packets sent or received on vhost interfaces now includes: - virtio header information - virtio queue transmit mode (chained, indirect, etc...) Should be *really* helpful for dealing with the many existing qemu/driver versions/implementations. Change-Id: Id0a5d1d671d8b9d3e05691fe13def991b30ee105 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-08pg: support for packet generator on different worker threadsDamjan Marion13-38/+98
New Debug CLI: packet-generator new { worker X } Change-Id: I71499733a29b49cd36d753d54846d2553af6d024 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07Restore punt/inject after FIB2.0Igor Mikhailov (imichail)1-0/+12
The tuntap punt/inject should be enabled for IPv4/6 RX once any vpp interface has an IP address. Change-Id: I4a507b7540b7464ed6d21035ac9b8f9463028c6f Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
2016-11-07Fix a class of spurious clib_memcpy (...) warnings, VPP-486Dave Barach1-0/+8
Coverity doesn't understand the vector-unit memcpy functions. #ifdef them out of the way when running a coverity scan. Change-Id: I312eec1c861c1d3722510d2c121fb5f398fca868 Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-07Fix dual-loop issue in vxlan_gpe decapHongjun Ni1-18/+24
From logical point, if first packet is ipv4, and second packet is ipv6. When first packet failed, the procedure will skip key6_1 setting. This will lead to second packet's failure. But here the graph node only process either ipv4 or ipv6 packets completely. So it is not an issue here. This patch only make the packet processig's logic clear. It is just a cosmetic change. Change-Id: I0104ebf2546208d9068000649ce6dccdeeb5aa79 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-11-07pg: add device-input feature arc support on pg interfacesDamjan Marion2-5/+38
Change-Id: Ice97940a27c9f4d983d9199d59719d953520fcdb Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07use STATIC_ASSERT macro instead of calling _Static_assert directlyDamjan Marion9-22/+26
Change-Id: Iccae655334b6219d22c325108b0e7f37d1dd68cf Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07fix isssues discovered by coverity scanDamjan Marion2-3/+4
Change-Id: I62deaaa47a9259c886efa702eb4279c1c481585f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07Fix longArray type in JVPP generatorMaros Marsalek1-2/+2
Change-Id: I0319b45d2e070ee2e20dcf900477fdaadd072aef Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-11-04VPP-498: Prepare vpp RPM packaging for use by downstream distros.Thomas F Herbert5-31/+120
Change spec to add new macros to get rid of relative dir reference and use vpp version. Store version string in .version to store metadata in dist archive. New script to create dist archive. Add dist and wipedist targets to Makefile for builds of source RPMs. Change-Id: I7cf0164f0cb094ec70f3dc323ed7fa2ee82bd902 Signed-off-by: Thomas F Herbert <therbert@redhat.com>
2016-11-04VPP-524: Add support to API to dump IPsec SPDsMatthew Smith2-1/+133
Change-Id: Ief37bef8db9f194fe2a75e0eb223a41bc739bc4f Signed-off-by: Matthew Smith <mgsmith@netgate.com>
2016-11-04vlib: fix cacheline alignement in several structsDamjan Marion1-7/+7
sizeof(vlib_frame_queue_t) was 208 bytes so non-zero elements of array were not aligned with cacheline. Change-Id: I626615cb64fe9aa86122881a1fff1c5bcca1ec20 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-04feature: store arc index in vlib_bufferDamjan Marion11-71/+118
Previos implementation imposed a limit that node can be member of only one feature arc as feature arc index was stored in node runtime. Now start node stores index into vlib_buffer_t and feature nodes are taking it from there. Change-Id: I252841083bc292af7ed36bf1ac652f2b8c16bfb8 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-04DHCPv6: relay reply fixes (VPP-510)Wojciech Dec2-14/+36
Fixes DHCPv6 relay reply message corruption. Change-Id: Iead995f29d2fa9cbb04f0f9d42b3aa9002267117 Signed-off-by: Wojciech Dec <wdec@cisco.com>
2016-11-04vhost-user: multiqueue supportPierre Pfister2-199/+651
This patch adds multi-queue support to non-dpdk's vhost-user driver. Waiting for a unified way to manage threads, this patch defines a way to assign threads to interfaces that is specific to vhost. Change-Id: I86298788b1a4e886c5431f187dc17175d12c7a8b Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-04vppctl: Do not use sudo if already rootPierre Pfister1-1/+5
When using sudo, environment variable such as the PATH are overwritten. This patch just checks if user is already root and does not use sudo in such situation. This allows using approaches like: sudo env PATH=path/to/vpp-binary/:$PATH vppctl Not really important in production setups, but this is handy for testing. Change-Id: I079c104d026ae7d378468380b012279a6e5d765d Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-03vlib: add vlib_buffer_copy functionDamjan Marion7-152/+73
It works with and without DPDK so it allws us to enable lawful-intercept code in vpp_lite images. Change-Id: I08f234cbc652c3ff47a6123a43b9e7f8bdcd5534 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-03Crash when adding duplicate pathsNeale Ranns2-8/+66
Change-Id: Icd29c9013ae70f5444eb940aff4f08589e755f48 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-03Test framework: improve gdbserver handlingv17.01-rc0Klement Sekera1-7/+19
Produce a user-friendly message if gdbserver is not available, instead of cryptic exception. Change-Id: Ia0d99e0488d2ee6e8af764b466dae2639f17ea55 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-03Fail to register Java API for plugin that was not loaded (VPP-522)Marek Gradzki7-47/+53
Change-Id: Idb95888ae6fc7a9df197a919e3d3283f915f4a4c Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-03Fix vpp-plugins rpmsEd Warnicke1-6/+6
vpp by default looks in /usr/lib/vpp_plugins rpmbuild has ${_libdir} as /usr/lib64 Thus vpp doesn't see the plugins. Change-Id: Iecbc491940678728305c181b04bb0914ad174bf1 Signed-off-by: Ed Warnicke <eaw@cisco.com> (cherry picked from commit 2dfd08242d66fb79c9a861c6a0c7fee45ef6bc60)
2016-11-03Remove unused jvpp dependency on plugins' control_pingMarek Gradzki4-10/+5
Change-Id: I6ebb69443e79e60c7ce6afded6a2d3af85048e6e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-03Reset frame length after dispatch when recycling framesDave Barach1-0/+1
Fixes a gross bug when enqueuing x->x->error-drop or similar Change-Id: Ie1dc10371de4a265f5131b67cab7a62ed460a1fc Signed-off-by: Dave Barach <dave@barachs.net>