vpp.git
7 years agoUpdate test documentation. 76/3776/9
Matej Klotton [Fri, 11 Nov 2016 10:38:55 +0000 (11:38 +0100)]
Update test documentation.

- update IRB, IPv4, ipv6 doc
- revert 778c2765c8ea5c6628f6d668847f0b9ae06dbf3d

Change-Id: I9af5ed9329ce5fe01392cf28d5bf321cfc647e48
Signed-off-by: Matej Klotton <mklotton@cisco.com>
7 years agoUpdate CSIT tests 161106 -> 161113 05/3805/2
Jan [Mon, 14 Nov 2016 08:53:37 +0000 (09:53 +0100)]
Update CSIT tests 161106 -> 161113

- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I3a475b34764cfe3e433ce7ab8cfc5501f6131690
Signed-off-by: Jan <jgelety@cisco.com>
7 years agoDPDK_HQoS: fix coverity warnings on uninitialized variables 03/3803/2
Jasvinder Singh [Sat, 12 Nov 2016 11:49:10 +0000 (11:49 +0000)]
DPDK_HQoS: fix coverity warnings on uninitialized variables

Change-Id: I76437b76619a280a44e4def4d6c048eaf3926102
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
7 years agothreads: add assert to silence coverity warning 07/3807/2
Damjan Marion [Mon, 14 Nov 2016 09:22:48 +0000 (10:22 +0100)]
threads: add assert to silence coverity warning

Change-Id: I381786b26050f2dfcb4c74094309cf2114d26d85
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agobuffer: clone free_list to each vlib_main on creation 91/3791/3
Damjan Marion [Fri, 11 Nov 2016 20:35:18 +0000 (21:35 +0100)]
buffer: clone free_list to each vlib_main on creation

Currently only packet-generator is creating free_lists
during runtime. This avoids crash when buffer is freed
on different worker thread.

Change-Id: If2ae066a12cf7c4b3267d56d8566806f31cf7ffc
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoDump routes (VPP-500) 70/3670/9
Steven [Wed, 2 Nov 2016 17:40:09 +0000 (10:40 -0700)]
Dump routes (VPP-500)

Change-Id: I86e7382395a8b6471a0deaf57163718d41b71b83
Signed-off-by: Steven <sluong@cisco.com>
7 years agodpdk: add build support for DPDK 16.11 release 22/3822/2
Damjan Marion [Mon, 14 Nov 2016 20:45:20 +0000 (21:45 +0100)]
dpdk: add build support for DPDK 16.11 release

Change-Id: Icec79bfc5d786cd293520b1dcc6b8dccd1419acb
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agomake test: improve naming of temporary pcap files 18/3818/1
Klement Sekera [Mon, 14 Nov 2016 08:49:09 +0000 (09:49 +0100)]
make test: improve naming of temporary pcap files

Change-Id: I0f4e83aab8bec80562bd90e8035f602ce903cd3e
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoAdd support for multi FIB DHCPv6 Proxy 54/3754/4
Wojciech Dec [Tue, 1 Nov 2016 15:44:06 +0000 (16:44 +0100)]
Add support for multi FIB DHCPv6 Proxy

- Support multiple DHCPv6 server targets across VRFs
- Allows clients and servers to be in different VRFs
- Aligns CLI and VAT for DHCPv6 to DHCPv4

Change-Id: If47756b3a51dc1b9d045a32b7d32ceb80c1746e2
Signed-off-by: Wojciech Dec <wdec@cisco.com>
7 years agoAdd clang to 'make verify' 01/3801/3
Damjan Marion [Sat, 12 Nov 2016 00:23:55 +0000 (01:23 +0100)]
Add clang to 'make verify'

Change-Id: I9ba84632da93ffb7713064db51f2888fc212713a
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix a bug in the timing wheel 81/3781/3
Klement Sekera [Fri, 11 Nov 2016 04:58:10 +0000 (05:58 +0100)]
Fix a bug in the timing wheel

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>
7 years agoUse gcc for start in 'make verify' 98/3798/3
Damjan Marion [Fri, 11 Nov 2016 22:59:48 +0000 (23:59 +0100)]
Use gcc for start in 'make verify'

Change-Id: I8ef5f8aeb9af5127337163c4767bfa92b62f8175
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agopseudo atomic adjacency updates 71/3771/3
Neale Ranns [Thu, 10 Nov 2016 20:35:14 +0000 (20:35 +0000)]
pseudo atomic adjacency updates

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>
7 years agoClean up coverity warnings, VPP-486 96/3796/2
Dave Barach [Fri, 11 Nov 2016 22:27:51 +0000 (17:27 -0500)]
Clean up coverity warnings, VPP-486

Change-Id: I709e7cf0bb52d8e6cdc9ddb3b7648660204aa3bd
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoAdd 'make verify' target to top-level makefile 97/3797/1
Damjan Marion [Fri, 11 Nov 2016 22:31:55 +0000 (23:31 +0100)]
Add 'make verify' target to top-level makefile

Change-Id: I992df2b6ded9533d32f5f936e6d651055061f054
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd single-loop test variant to L2BD and L2XC tests 97/3597/7
Jan [Wed, 26 Oct 2016 13:44:27 +0000 (15:44 +0200)]
Add single-loop test variant to L2BD and L2XC tests

 - 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>
7 years agoLuajit API and some examples 90/3790/2
Andrew Yourtchenko [Fri, 11 Nov 2016 16:32:52 +0000 (16:32 +0000)]
Luajit API and some examples

Change-Id: Ia140c4750f06870c40b7058c4afb2e20ca633a49
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
7 years agoFix clang compile errors in plugins 89/3789/1
Neale Ranns [Fri, 11 Nov 2016 16:14:30 +0000 (16:14 +0000)]
Fix clang compile errors in plugins

Change-Id: I2c2df9b5ba567bde2564c924bd9ad2fbbac775c4
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agofeature: convert all feature nodes to new feature infra 59/3759/8
Damjan Marion [Wed, 9 Nov 2016 18:54:20 +0000 (19:54 +0100)]
feature: convert all feature nodes to new feature infra

Change-Id: I34c527ba910fb282a95458b78d1d684eb337905e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd IRB test 96/3696/6
Matej Klotton [Fri, 4 Nov 2016 10:11:44 +0000 (11:11 +0100)]
Add IRB test

- 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>
7 years agoip_frag: fix implicit enum conversion 55/3755/2
Damjan Marion [Wed, 9 Nov 2016 23:41:13 +0000 (00:41 +0100)]
ip_frag: fix implicit enum conversion

Change-Id: I024b8d79cced45cf53a7a912319eca2cc932b10e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agofeature: fix init issue when multiple arc are present 69/3769/2
Damjan Marion [Thu, 10 Nov 2016 17:01:42 +0000 (18:01 +0100)]
feature: fix init issue when multiple arc are present

Change-Id: I9c76b6d7ffebeeb92d5eeca5852c487d73151f28
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoEnable verification received packet for LB test 63/3763/1
Matej Klotton [Thu, 10 Nov 2016 14:36:19 +0000 (15:36 +0100)]
Enable verification received packet for LB test

Change-Id: I9c8a2f5744f322b2bd91c5ae24aeb1279cd11e0c
Signed-off-by: Matej Klotton <mklotton@cisco.com>
7 years agoVXLAN tunnel encap forwarding optimization with FIB 2.0 17/3717/13
John Lo [Mon, 7 Nov 2016 23:30:47 +0000 (18:30 -0500)]
VXLAN tunnel encap forwarding optimization with FIB 2.0

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>
7 years agoFix Compile errors from clang in FIB2.0 code 52/3752/2
Neale Ranns [Wed, 9 Nov 2016 17:49:42 +0000 (17:49 +0000)]
Fix Compile errors from clang in FIB2.0 code

Change-Id: Ief769c966888094944b7a6b7f26527e7eff6103f
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoFix DHCP proxy when used for non-default FIB tables 53/3753/1
Igor Mikhailov (imichail) [Wed, 9 Nov 2016 20:38:33 +0000 (12:38 -0800)]
Fix DHCP proxy when used for non-default FIB tables

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>
7 years agoFix a batch of coverity warnings, VPP-486 50/3750/1
Dave Barach [Wed, 9 Nov 2016 16:28:36 +0000 (11:28 -0500)]
Fix a batch of coverity warnings, VPP-486

Change-Id: I0379844824b4c2eb42588d0fb8e1a7eb441e923f
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoUpdate CSIT tests 161030 -> 161106 46/3746/2
Jan [Wed, 9 Nov 2016 14:06:18 +0000 (15:06 +0100)]
Update CSIT tests 161030 -> 161106

- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I5e705f4a4d1f843ff0041930399f707e59d01b05
Signed-off-by: Jan <jgelety@cisco.com>
7 years agothreads: don't wait for dpdk init in vpp_lite 39/3739/3
Damjan Marion [Wed, 9 Nov 2016 09:22:49 +0000 (10:22 +0100)]
threads: don't wait for dpdk init in vpp_lite

Change-Id: I110cdc3cc2a26aa36dc250302a6f26db2d884e08
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodevices: create dummy device-input node to keep nexts in sync 42/3742/3
Damjan Marion [Wed, 9 Nov 2016 10:59:42 +0000 (11:59 +0100)]
devices: create dummy device-input node to keep nexts in sync

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>
7 years agodpdk: bump to 16.11-rc3 release 32/3732/2
Damjan Marion [Tue, 8 Nov 2016 19:31:11 +0000 (20:31 +0100)]
dpdk: bump to 16.11-rc3 release

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>
7 years agofix errors reported by clang 34/3734/4
Damjan Marion [Tue, 8 Nov 2016 20:28:22 +0000 (21:28 +0100)]
fix errors reported by clang

Change-Id: Ib821e52dac7cd7ee24e6e495916689e23e8b699a
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoImprove test framework documentation 25/3725/2
Klement Sekera [Tue, 8 Nov 2016 01:00:28 +0000 (02:00 +0100)]
Improve test framework documentation

Change-Id: I06f0cbbbdd29e04a07f1db6807b3e16f1d41e8d2
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoDisable non-working checks in load-balancer test and rename ip->ip4 26/3726/3
Klement Sekera [Tue, 8 Nov 2016 07:48:30 +0000 (08:48 +0100)]
Disable non-working checks in load-balancer test and rename ip->ip4

Change-Id: If62011e29e912bf0c47625b0d3b3624ef6375013
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoUpdate sample plugin and plugin skeletons: use driver feature arc 35/3735/2
Dave Barach [Tue, 8 Nov 2016 21:47:34 +0000 (16:47 -0500)]
Update sample plugin and plugin skeletons: use driver feature arc

Change-Id: Ic0a1479e4a0408a4b93f47e50752d07c2bdccdde
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agopg: maintain per-worker bitmap of enabled streams 24/3724/2
Damjan Marion [Tue, 8 Nov 2016 12:20:42 +0000 (13:20 +0100)]
pg: maintain per-worker bitmap of enabled streams

Change-Id: I38e476c8080faa5a8647ce6be5a71090e0aa8d5b
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd the tap driver to the driver feature arc scheme 30/3730/1
Dave Barach [Tue, 8 Nov 2016 17:12:12 +0000 (12:12 -0500)]
Add the tap driver to the driver feature arc scheme

Change-Id: I5f5251ed6b2a39d5e83dd7c702079245ef5f32b0
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agovhost: Improve packet tracing 28/3728/2
Pierre Pfister [Tue, 8 Nov 2016 15:49:28 +0000 (15:49 +0000)]
vhost: Improve packet tracing

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>
7 years agopg: support for packet generator on different worker threads 15/3715/3
Damjan Marion [Mon, 7 Nov 2016 21:19:55 +0000 (22:19 +0100)]
pg: support for packet generator on different worker threads

New Debug CLI:
packet-generator new {
  worker X
}

Change-Id: I71499733a29b49cd36d753d54846d2553af6d024
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoRestore punt/inject after FIB2.0 02/3702/2
Igor Mikhailov (imichail) [Sat, 5 Nov 2016 03:25:00 +0000 (20:25 -0700)]
Restore punt/inject after FIB2.0

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>
7 years agoFix a class of spurious clib_memcpy (...) warnings, VPP-486 11/3711/2
Dave Barach [Mon, 7 Nov 2016 14:55:55 +0000 (09:55 -0500)]
Fix a class of spurious clib_memcpy (...) warnings, VPP-486

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>
7 years agoFix dual-loop issue in vxlan_gpe decap 02/3602/3
Hongjun Ni [Thu, 27 Oct 2016 10:39:44 +0000 (18:39 +0800)]
Fix dual-loop issue in vxlan_gpe decap

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>
7 years agopg: add device-input feature arc support on pg interfaces 07/3707/2
Damjan Marion [Mon, 7 Nov 2016 11:24:50 +0000 (12:24 +0100)]
pg: add device-input feature arc support on pg interfaces

Change-Id: Ice97940a27c9f4d983d9199d59719d953520fcdb
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agouse STATIC_ASSERT macro instead of calling _Static_assert directly 09/3709/2
Damjan Marion [Mon, 7 Nov 2016 13:57:50 +0000 (14:57 +0100)]
use STATIC_ASSERT macro instead of calling _Static_assert directly

Change-Id: Iccae655334b6219d22c325108b0e7f37d1dd68cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agofix isssues discovered by coverity scan 08/3708/2
Damjan Marion [Mon, 7 Nov 2016 13:05:34 +0000 (14:05 +0100)]
fix isssues discovered by coverity scan

Change-Id: I62deaaa47a9259c886efa702eb4279c1c481585f
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix longArray type in JVPP generator 06/3706/1
Maros Marsalek [Mon, 7 Nov 2016 10:37:49 +0000 (11:37 +0100)]
Fix longArray type in JVPP generator

Change-Id: I0319b45d2e070ee2e20dcf900477fdaadd072aef
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoVPP-498: Prepare vpp RPM packaging for use by downstream distros. 32/3432/7
Thomas F Herbert [Thu, 13 Oct 2016 22:36:50 +0000 (18:36 -0400)]
VPP-498: Prepare vpp RPM packaging for use by downstream distros.

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>
7 years agoVPP-524: Add support to API to dump IPsec SPDs 99/3699/3
Matthew Smith [Fri, 4 Nov 2016 12:58:37 +0000 (07:58 -0500)]
VPP-524: Add support to API to dump IPsec SPDs

Change-Id: Ief37bef8db9f194fe2a75e0eb223a41bc739bc4f
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
7 years agovlib: fix cacheline alignement in several structs 00/3700/2
Damjan Marion [Fri, 4 Nov 2016 13:41:44 +0000 (14:41 +0100)]
vlib: fix cacheline alignement in several structs

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>
7 years agofeature: store arc index in vlib_buffer 97/3697/5
Damjan Marion [Fri, 4 Nov 2016 10:00:27 +0000 (11:00 +0100)]
feature: store arc index in vlib_buffer

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>
7 years agoDHCPv6: relay reply fixes (VPP-510) 01/3501/13
Wojciech Dec [Thu, 20 Oct 2016 09:25:37 +0000 (11:25 +0200)]
DHCPv6: relay reply fixes (VPP-510)

Fixes DHCPv6 relay reply message corruption.

Change-Id: Iead995f29d2fa9cbb04f0f9d42b3aa9002267117
Signed-off-by: Wojciech Dec <wdec@cisco.com>
7 years agovhost-user: multiqueue support 22/2922/24
Pierre Pfister [Wed, 21 Sep 2016 07:04:59 +0000 (08:04 +0100)]
vhost-user: multiqueue support

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>
7 years agovppctl: Do not use sudo if already root 95/3695/2
Pierre Pfister [Thu, 3 Nov 2016 13:14:29 +0000 (13:14 +0000)]
vppctl: Do not use sudo if already root

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>
7 years agovlib: add vlib_buffer_copy function 91/3691/2
Damjan Marion [Thu, 3 Nov 2016 19:16:04 +0000 (20:16 +0100)]
vlib: add vlib_buffer_copy function

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>
7 years agoCrash when adding duplicate paths 92/3692/2
Neale Ranns [Thu, 3 Nov 2016 21:15:28 +0000 (14:15 -0700)]
Crash when adding duplicate paths

Change-Id: Icd29c9013ae70f5444eb940aff4f08589e755f48
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoTest framework: improve gdbserver handling 80/3680/2 v17.01-rc0
Klement Sekera [Thu, 3 Nov 2016 04:36:01 +0000 (05:36 +0100)]
Test framework: improve gdbserver handling

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>
7 years agoFail to register Java API for plugin that was not loaded (VPP-522) 81/3681/2
Marek Gradzki [Thu, 3 Nov 2016 09:52:43 +0000 (10:52 +0100)]
Fail to register Java API for plugin that was not loaded (VPP-522)

Change-Id: Idb95888ae6fc7a9df197a919e3d3283f915f4a4c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix vpp-plugins rpms 76/3676/2
Ed Warnicke [Wed, 14 Sep 2016 23:58:33 +0000 (16:58 -0700)]
Fix vpp-plugins rpms

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)

7 years agoRemove unused jvpp dependency on plugins' control_ping 83/3683/2
Marek Gradzki [Thu, 3 Nov 2016 12:33:07 +0000 (13:33 +0100)]
Remove unused jvpp dependency on plugins' control_ping

Change-Id: I6ebb69443e79e60c7ce6afded6a2d3af85048e6e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoReset frame length after dispatch when recycling frames 02/3202/2
Dave Barach [Thu, 29 Sep 2016 14:53:44 +0000 (10:53 -0400)]
Reset frame length after dispatch when recycling frames

Fixes a gross bug when enqueuing x->x->error-drop or similar

Change-Id: Ie1dc10371de4a265f5131b67cab7a62ed460a1fc
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoTimestamp now a 64-bit integer: ns since 1/1/1970 74/3674/3
Dave Barach [Wed, 2 Nov 2016 22:37:56 +0000 (18:37 -0400)]
Timestamp now a 64-bit integer: ns since 1/1/1970

Properly initialize allocated buffers

Change-Id: Ib2005e605c89a164a4856790db6968fcd7520f5c
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoAdding Sequence Number - Per Packet Counter(PPC) support for iOAM6. 82/2282/20
AkshayaNadahalli [Tue, 9 Aug 2016 08:08:04 +0000 (13:38 +0530)]
Adding Sequence Number - Per Packet Counter(PPC) support for iOAM6.

- 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>
7 years agofeature: recover "show ip features" command 73/3673/1
Damjan Marion [Wed, 2 Nov 2016 20:38:53 +0000 (21:38 +0100)]
feature: recover "show ip features" command

Removed by accident.

Change-Id: Ifebbe99eb2825cb6ee7d33d55cf3c087a9817f72
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agofeature: all input nodes must have same nexts 62/3662/3
Damjan Marion [Wed, 2 Nov 2016 13:48:21 +0000 (14:48 +0100)]
feature: all input nodes must have same nexts

Change-Id: Ie4c820933114af2269c99531856c45b0271a4a3e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoethernet: fix wrong start node for ethernet tx feature path 66/3666/2
Damjan Marion [Wed, 2 Nov 2016 14:51:12 +0000 (15:51 +0100)]
ethernet: fix wrong start node for ethernet tx feature path

Change-Id: I3e02588e8c05ec50eacbe7c10cd5ac185daad43b
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoUpdate CSIT tests 161024 -> 161030 68/3668/2
Jan [Wed, 2 Nov 2016 15:29:05 +0000 (16:29 +0100)]
Update CSIT tests 161024 -> 161030

- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I9f7418a2161e6411375c2d7ff1f3f686b991fb87
Signed-off-by: Jan <jgelety@cisco.com>
7 years agovpp: remove unused code 64/3664/2
Damjan Marion [Wed, 2 Nov 2016 14:39:57 +0000 (15:39 +0100)]
vpp: remove unused code

Change-Id: I81c5b0f9acbffa41a75de497bf6dd68936813012
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoImprove debug-cli in test framework 56/3656/2
Klement Sekera [Wed, 2 Nov 2016 08:25:05 +0000 (09:25 +0100)]
Improve debug-cli in test framework

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>
7 years agoAllow empty DPDK device init config 57/3657/2
Pierre Pfister [Wed, 2 Nov 2016 10:06:49 +0000 (10:06 +0000)]
Allow empty DPDK device init config

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>
7 years agoadj: fix typos 52/3652/2
Damjan Marion [Wed, 2 Nov 2016 00:21:05 +0000 (01:21 +0100)]
adj: fix typos

Change-Id: Ib5b5a15223ac9252e9cacd163bd870b009ec3b63
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodpdk-hqos: don't hold up packets indefinitely under low load 46/3646/6
David Hotham [Tue, 1 Nov 2016 10:51:24 +0000 (10:51 +0000)]
dpdk-hqos: don't hold up packets indefinitely under low load

Change-Id: If884637a6db0cb813a40920194795da2e98c8b23
Signed-off-by: David Hotham <david.hotham@metaswitch.com>
7 years agofeature: add new feature handling code and device-input features 45/3445/25
Damjan Marion [Fri, 28 Oct 2016 18:30:15 +0000 (20:30 +0200)]
feature: add new feature handling code and device-input features

Signed-off-by: Damjan Marion <damarion@cisco.com>
Change-Id: I010ecde93863dbdad84b993cd3680a5446db59b5

7 years agoFix recursion loop - recurse through cover 50/3650/2
Neale Ranns [Tue, 1 Nov 2016 20:38:53 +0000 (20:38 +0000)]
Fix recursion loop - recurse through cover

Change-Id: I07870122f90e41fbb216b2f426bccbfd94049cd6
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoVPP-437: ip6 hbh processing with FIB 2.0 53/3153/6
Shwetha [Tue, 27 Sep 2016 07:04:05 +0000 (08:04 +0100)]
VPP-437: ip6 hbh processing with FIB 2.0

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>
7 years agoMPLS Exp-null Tests 48/3648/2
Neale Ranns [Tue, 1 Nov 2016 10:05:08 +0000 (10:05 +0000)]
MPLS Exp-null Tests

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>
7 years agovppinfra: add STATIC_ASSERT macro 49/3649/2
Damjan Marion [Tue, 1 Nov 2016 14:16:30 +0000 (15:16 +0100)]
vppinfra: add STATIC_ASSERT macro

Change-Id: Icc4e74ae1627c5b97746ed64955a3dc089e3998f
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agofix typo in .gitignore 47/3647/2
Klement Sekera [Tue, 1 Nov 2016 11:33:40 +0000 (12:33 +0100)]
fix typo in .gitignore

Change-Id: I09c25b855c09f55da7e836e641570befead40f4f
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agonode: ensure that vlib_node_runtime_t is cacheline sized 45/3645/1
Damjan Marion [Tue, 1 Nov 2016 00:26:01 +0000 (01:26 +0100)]
node: ensure that vlib_node_runtime_t is cacheline sized

Change-Id: Ib14ba63d09212a172fe52b01131404bf50cc494d
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agol2: fix l2-patch node 44/3644/2
Damjan Marion [Mon, 31 Oct 2016 22:21:46 +0000 (23:21 +0100)]
l2: fix l2-patch node

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>
7 years agodpdk: use u32 for next0 43/3643/2
Damjan Marion [Mon, 31 Oct 2016 22:23:34 +0000 (23:23 +0100)]
dpdk: use u32 for next0

Change-Id: I0158a290736f68d0d56dff2f15dd18518059efd2
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoconfig: rename ip_config_main_t to vnet_feature_config_main_t 42/3642/2
Damjan Marion [Mon, 31 Oct 2016 22:18:04 +0000 (23:18 +0100)]
config: rename ip_config_main_t to vnet_feature_config_main_t

It will not be used for IP only...

Change-Id: I90ef3030aff7f9e24767553f019cabc1ea987126
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoadd vpp debugging support to test framework 41/3641/5
Klement Sekera [Fri, 28 Oct 2016 11:20:27 +0000 (13:20 +0200)]
add vpp debugging support to test framework
improve test documentation

Change-Id: Ia9678aa2532ecb4cb33736aedb4a31aa3f2a3f93
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoUpdate _slabshr fields when updating HQoS masks 40/3340/3
David Hotham [Tue, 11 Oct 2016 09:30:52 +0000 (09:30 +0000)]
Update _slabshr fields when updating HQoS masks

Change-Id: Ia1042622c656861a80b856115aeb3c2e5cf5ea2a
Signed-off-by: David Hotham <david.hotham@metaswitch.com>
7 years agoVPP-120: add custom types support to jvpp 99/3199/11
Marek Gradzki [Thu, 29 Sep 2016 11:22:35 +0000 (13:22 +0200)]
VPP-120: add custom types support to jvpp

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>
7 years agovppinfra: use 64-bit crc32 instruction in bihash_24_8 28/3628/3
Damjan Marion [Fri, 28 Oct 2016 20:35:17 +0000 (22:35 +0200)]
vppinfra: use 64-bit crc32 instruction in bihash_24_8

Change-Id: Ibeb6d35e15a8d332753df7c352c0b51c277a0ee5
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agovhost-user: fix crash in vhost_user_intfc_tx (VPP-519) 29/3629/2
Damjan Marion [Fri, 28 Oct 2016 21:52:40 +0000 (23:52 +0200)]
vhost-user: fix crash in vhost_user_intfc_tx (VPP-519)

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>
7 years agoVPP-478: SNAT address range overlapping 65/3565/2
Matus Fabian [Tue, 25 Oct 2016 11:19:26 +0000 (04:19 -0700)]
VPP-478: SNAT address range overlapping

Ignore adding duplicate address.

Change-Id: Icbb76bbcb3a78a18acb1a50d5d8ab777e9f9bd36
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoVPP-459: SNAT dump API for in and out interfaces 39/3539/2
Matus Fabian [Mon, 24 Oct 2016 10:30:00 +0000 (03:30 -0700)]
VPP-459: SNAT dump API for in and out interfaces

Change-Id: Ie0cba0778b094eaafa960d3f432199e1e3b2d116
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoInitial deb packaging of vpp-python-api 30/3630/3
Ed Warnicke [Fri, 28 Oct 2016 22:52:36 +0000 (22:52 +0000)]
Initial deb packaging of vpp-python-api

Change-Id: I14d5180d6abd59b813906011718121a2bbc9bafd
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
7 years agoIPv6 Classify Forwarding Graph errors 21/3621/3
Neale Ranns [Fri, 28 Oct 2016 13:31:54 +0000 (06:31 -0700)]
IPv6 Classify Forwarding Graph errors

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>
7 years agovppinfra: fix issue with bihash_8_8 hash function (VPP-518) 27/3627/2
Damjan Marion [Fri, 28 Oct 2016 20:17:38 +0000 (22:17 +0200)]
vppinfra: fix issue with bihash_8_8 hash function (VPP-518)

Change-Id: Ia9a484575d0142e89ec5b6b4c6c2e702e1098a1e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agopolicer: replace uintX_t with uX, fix style 06/3606/2
Damjan Marion [Thu, 27 Oct 2016 08:27:00 +0000 (10:27 +0200)]
policer: replace uintX_t with uX, fix style

Change-Id: Ie4a0ba57d5c672ab04fe37801836f65d8731a90a
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoUpdate test framework after API function change 05/3605/2
Juraj Sloboda [Thu, 27 Oct 2016 08:44:25 +0000 (10:44 +0200)]
Update test framework after API function change

Change-Id: I326ef57fa0c691c5a1cecea0364d770b6f7a73c8
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
7 years agoFix potential L2 forwarding crash with stale L2FIB entry (VPP-516) 12/3612/2
John Lo [Thu, 27 Oct 2016 15:17:02 +0000 (11:17 -0400)]
Fix potential L2 forwarding crash with stale L2FIB entry (VPP-516)

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>
7 years agoFix coverity issues in LISP 96/3596/2
Filip Tehlar [Wed, 26 Oct 2016 12:58:18 +0000 (14:58 +0200)]
Fix coverity issues in LISP

Change-Id: Ifef27540f02f423070e8843951be5cba0acea8cf
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoPer-packet IPFIX record generation plugin 18/3318/6
Dave Barach [Fri, 7 Oct 2016 15:30:23 +0000 (08:30 -0700)]
Per-packet IPFIX record generation plugin

Change-Id: Ia790aa018e70d67ed343e3e466d1b33b22560fc0
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agofeatures: fix crash due to missing null termination 01/3601/2
Damjan Marion [Wed, 26 Oct 2016 21:50:47 +0000 (23:50 +0200)]
features: fix crash due to missing null termination

Change-Id: I98b407f9b698307c5a0007b198a734674b33f925
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix description of devel package. 04/3404/4
Thomas F Herbert [Sat, 1 Oct 2016 22:09:33 +0000 (18:09 -0400)]
Fix description of devel package.

Change-Id: Ia289299691daa2ed47f0129d2695678e1d390ab8
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
7 years agodpdk: enable building with dpdk 16.11-rc1 71/3571/3
Damjan Marion [Tue, 25 Oct 2016 12:54:38 +0000 (14:54 +0200)]
dpdk: enable building with dpdk 16.11-rc1

Works with:

http://dpdk.org/browse/dpdk/snapshot/dpdk-16.11-rc1.tar.xz

placed into dpdk/ or ~/Downloads

Change-Id: I17f6a721529dbefc796f555e2525d157b9bf8740
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix unformat-at-eof bug 00/3600/2
Dave Barach [Wed, 26 Oct 2016 18:03:20 +0000 (14:03 -0400)]
Fix unformat-at-eof bug

Change-Id: Id9a64303b1d415b55a3bc0ea1483df6fc2eb5011
Signed-off-by: Dave Barach <dave@barachs.net>