aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2016-11-03Timestamp now a 64-bit integer: ns since 1/1/1970Dave Barach4-6/+30
Properly initialize allocated buffers Change-Id: Ib2005e605c89a164a4856790db6968fcd7520f5c Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-03Adding Sequence Number - Per Packet Counter(PPC) support for iOAM6.AkshayaNadahalli18-96/+1006
- Added support in classifier session to identify a flow to be iOAM6 encap/decap - Sequence number as part of iOAM6 E2E header is created as a plugin. Change-Id: Ib7605de45aecff25d684d099b525f8dc96ee7038 Signed-off-by: AkshayaNadahalli <anadahal@cisco.com>
2016-11-02feature: recover "show ip features" commandDamjan Marion1-0/+204
Removed by accident. Change-Id: Ifebbe99eb2825cb6ee7d33d55cf3c087a9817f72 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02feature: all input nodes must have same nextsDamjan Marion10-121/+88
Change-Id: Ie4c820933114af2269c99531856c45b0271a4a3e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02ethernet: fix wrong start node for ethernet tx feature pathDamjan Marion1-1/+1
Change-Id: I3e02588e8c05ec50eacbe7c10cd5ac185daad43b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02Update CSIT tests 161024 -> 161030Jan1-1/+1
- update of CSIT operational branch to be used for VPP-patch test Change-Id: I9f7418a2161e6411375c2d7ff1f3f686b991fb87 Signed-off-by: Jan <jgelety@cisco.com>
2016-11-02vpp: remove unused codeDamjan Marion1-343/+0
Change-Id: I81c5b0f9acbffa41a75de497bf6dd68936813012 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02Improve debug-cli in test frameworkKlement Sekera2-3/+5
Opening debug-cli only makes sense if there is time for user to use it, so either the run must be debugged or stepped. Only open the debug-cli in these cases. Change-Id: Ied276071797a549880d730cda43c59230a412efe Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-02Allow empty DPDK device init configPierre Pfister1-0/+1
This patch allows for empty dpdk device configuration such as: dpdk { dev 0000:0a:00.0 { } } Instead of exiting. Change-Id: If9488eecc7fb1e0b5c6626f9c074649b39b727d3 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-02adj: fix typosDamjan Marion1-6/+6
Change-Id: Ib5b5a15223ac9252e9cacd163bd870b009ec3b63 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01dpdk-hqos: don't hold up packets indefinitely under low loadDavid Hotham2-0/+34
Change-Id: If884637a6db0cb813a40920194795da2e98c8b23 Signed-off-by: David Hotham <david.hotham@metaswitch.com>
2016-11-01feature: add new feature handling code and device-input featuresDamjan Marion24-408/+690
Signed-off-by: Damjan Marion <damarion@cisco.com> Change-Id: I010ecde93863dbdad84b993cd3680a5446db59b5
2016-11-01Fix recursion loop - recurse through coverNeale Ranns2-2/+72
Change-Id: I07870122f90e41fbb216b2f426bccbfd94049cd6 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-01VPP-437: ip6 hbh processing with FIB 2.0Shwetha5-164/+50
1. Modifies ip6 hbh selective processing in lookup only when non-recursive routes are present. 2. Adds ip6 hbh processing in load balance. 3. Cleanup of ip6 iOAM hbh plugin formatting and CLI handling found while testing the changes. 4. Deleted wrong asserts in dual loop for add and pop iOAM hbh nodes. The current data of the buffer ip6 start and will not be 0 5. Deleted set ioam destination cli and associate functions. iOAM add/pop is enabled via classifier, this cli is no longer used. Change-Id: I3aac71ad512762c0b2b602fe88fe0291b85d39c7 Signed-off-by: Shwetha <shwethab@cisco.com>
2016-11-01MPLS Exp-null TestsNeale Ranns9-48/+289
Add some 'make test' unit tests for MPLS explicit NULL label handling. Fix the stacking of the MPLS load-balance result form the lookup onto the IPx lookup object. Change-Id: I890d1221b8e3dea99bcc714ed9d0154a5f602c52 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-01vppinfra: add STATIC_ASSERT macroDamjan Marion4-7/+17
Change-Id: Icc4e74ae1627c5b97746ed64955a3dc089e3998f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01fix typo in .gitignoreKlement Sekera1-1/+1
Change-Id: I09c25b855c09f55da7e836e641570befead40f4f Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-01node: ensure that vlib_node_runtime_t is cacheline sizedDamjan Marion3-7/+9
Change-Id: Ib14ba63d09212a172fe52b01131404bf50cc494d Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01l2: fix l2-patch nodeDamjan Marion1-25/+10
This node was not setting vnet_buffer (b0)->sw_if_index[VLIB_TX] properly. Change-Id: I3e9f095da5f79c4186e3988ef315a7045ac85708 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01dpdk: use u32 for next0Damjan Marion1-4/+4
Change-Id: I0158a290736f68d0d56dff2f15dd18518059efd2 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01config: rename ip_config_main_t to vnet_feature_config_main_tDamjan Marion32-58/+64
It will not be used for IP only... Change-Id: I90ef3030aff7f9e24767553f019cabc1ea987126 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-31add vpp debugging support to test frameworkKlement Sekera11-188/+510
improve test documentation Change-Id: Ia9678aa2532ecb4cb33736aedb4a31aa3f2a3f93 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-10-31Update _slabshr fields when updating HQoS masksDavid Hotham1-0/+6
Change-Id: Ia1042622c656861a80b856115aeb3c2e5cf5ea2a Signed-off-by: David Hotham <david.hotham@metaswitch.com>
2016-10-31VPP-120: add custom types support to jvppMarek Gradzki10-342/+779
Generates java classes based on typeonly definitions (hashcode, equals and toString methods are also included). Adds JNI handling for request and reply messages (also arrays of custom types). Change-Id: I16f1cea17899704426aa083fad1cb800a8d115df Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-10-31vppinfra: use 64-bit crc32 instruction in bihash_24_8Damjan Marion2-24/+14
Change-Id: Ibeb6d35e15a8d332753df7c352c0b51c277a0ee5 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-31vhost-user: fix crash in vhost_user_intfc_tx (VPP-519)Damjan Marion1-6/+0
The crash was the result of indexing off the end of the next[] array. Removing that prefetch code completelly, as it is questionable how much it helps so late in the game. Change-Id: I7bc83483a1088437edb4ac0f95a54c39afce136b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-31VPP-478: SNAT address range overlappingMatus Fabian1-0/+7
Ignore adding duplicate address. Change-Id: Icbb76bbcb3a78a18acb1a50d5d8ab777e9f9bd36 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-10-31VPP-459: SNAT dump API for in and out interfacesMatus Fabian4-61/+180
Change-Id: Ie0cba0778b094eaafa960d3f432199e1e3b2d116 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-10-29Initial deb packaging of vpp-python-apiEd Warnicke5-1/+21
Change-Id: I14d5180d6abd59b813906011718121a2bbc9bafd Signed-off-by: Ed Warnicke <hagbard@gmail.com>
2016-10-29IPv6 Classify Forwarding Graph errorsNeale Ranns9-20/+25
Fix a few places where the protocol of the DPO object was incorrectly set and hence the graph traversed by the packet jumped between ip4 and ip6 nodes. Change-Id: I75c4ecfdf79df39f5dbb7c68f1fc82ff04aaed28 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
2016-10-28vppinfra: fix issue with bihash_8_8 hash function (VPP-518)Damjan Marion1-1/+1
Change-Id: Ia9a484575d0142e89ec5b6b4c6c2e702e1098a1e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-28policer: replace uintX_t with uX, fix styleDamjan Marion8-1764/+1926
Change-Id: Ie4a0ba57d5c672ab04fe37801836f65d8731a90a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-28Update test framework after API function changeJuraj Sloboda1-0/+4
Change-Id: I326ef57fa0c691c5a1cecea0364d770b6f7a73c8 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2016-10-27Fix potential L2 forwarding crash with stale L2FIB entry (VPP-516)John Lo4-50/+44
On moving interface between L2 and L3 forwarding modes, adjust the l2-output node next index for the sw_if_index of the interface so packet output via stale MAC entries in L2 FIB will be dropped. Change-Id: I25afd7a617edb4ae35ce296bac33e62683edad9a Signed-off-by: John Lo <loj@cisco.com>
2016-10-27Fix coverity issues in LISPFilip Tehlar1-1/+2
Change-Id: Ifef27540f02f423070e8843951be5cba0acea8cf Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-10-27Per-packet IPFIX record generation pluginDave Barach15-1/+1481
Change-Id: Ia790aa018e70d67ed343e3e466d1b33b22560fc0 Signed-off-by: Dave Barach <dave@barachs.net>