vpp.git
7 years agoVPP-574: fix the MACIP ACLs blocking ARP traffic 39/4539/2
Andrew Yourtchenko [Tue, 3 Jan 2017 17:06:29 +0000 (17:06 +0000)]
VPP-574: fix the MACIP ACLs blocking ARP traffic

The initial assumption was that the MACIP ACL classifier tables would be applied
after the classification of the traffic based on the ethertype, it turned out
to be untrue, but the fix in the code did not happen.

Add the ethertype to the mask, and the logic to create the ACL classifier tables
permitting the ARP ethertype with the correct payload.

Change-Id: I7c05c7893f6df8258998eed8983056c77586df81
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
7 years agoLISP: fix EID addition 33/4533/3
Filip Tehlar [Tue, 3 Jan 2017 14:44:21 +0000 (15:44 +0100)]
LISP: fix EID addition

Change-Id: I32f61ab89598a7911df3d0d8f45de1302af8aa6a
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agopreserve environment when make install-dep 12/4512/2
Gabriel Ganne [Mon, 2 Jan 2017 15:44:21 +0000 (16:44 +0100)]
preserve environment when make install-dep

for those who work behind a firewall/proxy-server

Change-Id: I099830d2da05296b2f109ca25576a1e865ddcce6
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
7 years agoLISP: fix fwd entry addition 36/4336/3
Filip Tehlar [Thu, 15 Dec 2016 13:04:02 +0000 (14:04 +0100)]
LISP: fix fwd entry addition

Change-Id: Ibdc9ad21cc53cf0a6d571a3f913038d61d9282a1
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agovlxlan-gpe - fix api registering 29/4529/2
Gabriel Ganne [Tue, 3 Jan 2017 13:07:19 +0000 (14:07 +0100)]
vlxlan-gpe - fix api registering

(was registering span api twice instead)

Change-Id: I196d520061d10872fd795c0b1115574591e8d978
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
7 years agoDo not require external vppapigen when not cross-compiling 88/4488/12
Damjan Marion [Wed, 28 Dec 2016 16:51:56 +0000 (17:51 +0100)]
Do not require external vppapigen when not cross-compiling

Change-Id: I80b8348ed4efd53d292c37a1ff69c13ee4741986
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoSNAT: fix out2in ICMP worker lookup 27/4527/2
Matus Fabian [Tue, 3 Jan 2017 12:56:09 +0000 (04:56 -0800)]
SNAT: fix out2in ICMP worker lookup

Change-Id: I113e7927739de876f07c3f17454ad7499a74c634
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agojvpp: install jvpp_common.h into include/ 23/4523/2
Damjan Marion [Tue, 3 Jan 2017 10:17:19 +0000 (11:17 +0100)]
jvpp: install jvpp_common.h into include/

Change-Id: Iaffc619f3219239e753609f0963d396237aae378
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodeb: fix issues in debian/control, silence some warnings 24/4524/2
Damjan Marion [Tue, 3 Jan 2017 10:39:51 +0000 (11:39 +0100)]
deb: fix issues in debian/control, silence some warnings

Change-Id: I135646dbc641b1ff517fc137f8c653f7f3fe60fe
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoImprove Java 8 detection m4 script to deal with pre-set JAVA_HOME 25/4525/2
Damjan Marion [Tue, 3 Jan 2017 12:09:10 +0000 (13:09 +0100)]
Improve Java 8 detection m4 script to deal with pre-set JAVA_HOME

Change-Id: I38685530634fd43d0a46ff43e5ef7d62b9ee4d9b
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agovpp-python-api deb packaging - use easy_install to install the python api 69/4269/4
root [Tue, 13 Dec 2016 16:00:02 +0000 (17:00 +0100)]
vpp-python-api deb packaging - use easy_install to install the python api

Change-Id: I67963d5a6ec324b13c50f8f6c51ed3c715b4c145
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
7 years agoFix crash on null vhost-user socket - VPP-573 03/4503/5
Wojciech Dec [Tue, 3 Jan 2017 09:38:37 +0000 (10:38 +0100)]
Fix crash on null vhost-user socket - VPP-573

Fix for VPP-573.

Change-Id: If7d9690901efebf62fdf28219097153d98c79c0c
Signed-off-by: Wojciech Dec <wdec@cisco.com>
7 years agoFix crash on vhost-user deletion - VPP-571 17/4517/3
Wojciech Dec [Tue, 3 Jan 2017 09:27:03 +0000 (10:27 +0100)]
Fix crash on vhost-user deletion - VPP-571

Fixes VPP-571.
VPP crashes when deleting created vhost interfaces
which have not been configured with L3 or
bridge-domain.

Change-Id: I7fe6f2e52d4d5d77ec3c122758aa4bf43250b1d1
Signed-off-by: Wojciech Dec <wdec@cisco.com>
7 years agomake test: fix debug print 14/4514/2
Klement Sekera [Mon, 2 Jan 2017 09:31:17 +0000 (10:31 +0100)]
make test: fix debug print

Change-Id: Id31a1a3644bdc245f12f3c9bce211099c5ef48f8
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agomake test: rotate capture files after consuming arp/ndp 13/4513/2
Klement Sekera [Mon, 2 Jan 2017 09:18:34 +0000 (10:18 +0100)]
make test: rotate capture files after consuming arp/ndp

Change-Id: I512dc07638b4539d4a75e2ac40d3acee77f0bba6
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agomake test: fix assert_nothing_captured api 11/4511/3
Klement Sekera [Mon, 2 Jan 2017 08:03:47 +0000 (09:03 +0100)]
make test: fix assert_nothing_captured api

Change-Id: I5cd11adcbd90a018deb3cd7cf157f72d9ab76e1c
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoUpdate CSIT tests 161218 -> 170101 01/4501/2
Jan Gelety [Mon, 2 Jan 2017 10:03:08 +0000 (11:03 +0100)]
Update CSIT tests 161218 -> 170101

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

Change-Id: I58f631e9319e55e5dd23516776fcbb9e9798a489
Signed-off-by: Jan Gelety <jgelety@cisco.com>
7 years agoUpdate emacs plugin generator skeleton 15/4515/2
Dave Barach [Mon, 2 Jan 2017 17:22:48 +0000 (12:22 -0500)]
Update emacs plugin generator skeleton

Generated code compiles with the new build scheme, works, etc.

Change-Id: I147aa5fa580a71ef25615b02277870867e475042
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoHandle execessive hash collisions, VPP-555 54/4254/3
Dave Barach [Mon, 12 Dec 2016 20:37:29 +0000 (15:37 -0500)]
Handle execessive hash collisions, VPP-555

Change-Id: I55dad7b5cfb3d38c22b1105f7d2d61e7449410ea
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agomake test: improve test_flowperpkt 09/4509/3
Klement Sekera [Mon, 2 Jan 2017 06:46:14 +0000 (07:46 +0100)]
make test: improve test_flowperpkt

Change-Id: Id1b2bef2a93ac931a420d7a3c322d65c1fbce055
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agofix run-vat path 06/4506/2
Matus Fabian [Mon, 2 Jan 2017 12:44:03 +0000 (04:44 -0800)]
fix run-vat path

Change-Id: Idfe5050b2db35794687da797afdca60a707aa42c
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agodpdk: do not build igb_uio module 96/4496/2
Damjan Marion [Sun, 1 Jan 2017 15:53:22 +0000 (16:53 +0100)]
dpdk: do not build igb_uio module

igb_uio is anyway build out of source from dkms package
so there is no need to build it here.

Also, this creates issues in cases where kernel headers are not
available (i.e. building inside containers).

Change-Id: I270598a94dc67ad0b31e7f0db9ed6bd6fc8cfe30
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoioam: fix Coverity issue 95/4495/4
Vengada [Sun, 1 Jan 2017 11:43:11 +0000 (03:43 -0800)]
ioam: fix Coverity issue

Initialize outer_fib_index variable to zero to avoid coverity warning.

Change-Id: I400564f5873b23ceb1c72ea2e9e1df69b1e82f0c
Signed-off-by: Vengada <venggovi@cisco.com>
7 years agoMove java,lua api and remaining plugins to src/ 89/4489/3
Damjan Marion [Wed, 28 Dec 2016 17:38:59 +0000 (18:38 +0100)]
Move java,lua api and remaining plugins to src/

Change-Id: I1c3b87e886603678368428ae56a6bd3327cbc90d
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoRepair Doxygen build infrastructure 87/4487/2
Chris Luke [Wed, 28 Dec 2016 14:44:47 +0000 (09:44 -0500)]
Repair Doxygen build infrastructure

After Gerrit 4430 much of the documentation failed to build, but
silently so it was easily missed; equally missing that several
paths have been missing for a while.

- Correct paths after directory tree changes.
- Doxygen now bails when input paths don't exist.
- Fix up some of the less deranged entries in the documentation index.
- Exclude the LUA tree, its documentation is a mess.

Change-Id: I35e6b433feee5e05bca772d93aa1635c724db734
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agotest: fix paths after source code move 86/4486/2
Damjan Marion [Wed, 28 Dec 2016 14:14:46 +0000 (15:14 +0100)]
test: fix paths after source code move

Change-Id: I3100260bb697f9af2f73ad3777e8b27069c5babe
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoReorganize source tree to use single autotools instance 30/4430/19
Damjan Marion [Mon, 19 Dec 2016 22:05:39 +0000 (23:05 +0100)]
Reorganize source tree to use single autotools instance

Change-Id: I7b51f88292e057c6443b12224486f2d0c9f8ae23
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodpdk: Add support for Mellanox ConnectX-4 devices 83/4483/5
Damjan Marion [Fri, 23 Dec 2016 21:42:41 +0000 (22:42 +0100)]
dpdk: Add support for Mellanox ConnectX-4 devices

Due to external library dependency support for Mellanox
devices is disabled. To enable it uncoment following line:

vpp_uses_dpdk_mlx5_pmd = yes

in build-data/platforms/vpp.mk and install OFED libraries.

Change-Id: I131d52b5d449a958349f31f9cc04311948f78b71
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agovlib: Add support for PCI VPD parsing 82/4482/4
Damjan Marion [Mon, 26 Dec 2016 10:39:42 +0000 (11:39 +0100)]
vlib: Add support for PCI VPD parsing

This allows better detection of various NICs, including the ones
where different sub-models are sharing same PCI VID:PID.

This change also extends output of "show pci" debug cli command.

Change-Id: I06f78e8376307e88b0252a99c203c696437a6e35
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoMake test support for the ipfix flow-per-pkt plugin 81/4481/2
Dave Barach [Fri, 23 Dec 2016 20:15:48 +0000 (15:15 -0500)]
Make test support for the ipfix flow-per-pkt plugin

Change-Id: I7a0d37fc2bc21dbbff1cea1b92dc24d43f971eec
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoSNAT: fix 'show snat verbose' bug - format vector as %v 75/4475/2
Matus Fabian [Fri, 23 Dec 2016 10:59:34 +0000 (02:59 -0800)]
SNAT: fix 'show snat verbose' bug - format vector as %v

Change-Id: Ia829da43a273c89dee47b32250ab032d992193cd
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agomake test: improve handling of packet captures 52/4452/5
Klement Sekera [Wed, 21 Dec 2016 07:50:14 +0000 (08:50 +0100)]
make test: improve handling of packet captures

Perform accounting of expected packets based on created packet infos.
Use this accounting info to automatically expect (and verify) the
correct number of packets to be captured. Automatically retry the read
of the capture file if scapy raises an exception while doing so to
handle rare cases when capture file is read while only partially
written during busy wait. Don't fail assert_nothing_captured if only
junk packets arrived.

Change-Id: I16ec2e9410ef510d313ec16b7e13c57d0b2a63f5
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoBuild vpp_api_test binary API debug CLI into vpp 23/4323/4
Dave Barach [Wed, 14 Dec 2016 19:49:55 +0000 (14:49 -0500)]
Build vpp_api_test binary API debug CLI into vpp

Change-Id: I60ce73a62d8632a644fbfdfbe13ff8ddbb959233
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agomake test: add log.txt 80/4480/1
Klement Sekera [Fri, 23 Dec 2016 08:16:39 +0000 (09:16 +0100)]
make test: add log.txt

Always create a log.txt under test's temporary directory containing
V=2 output for debugging purposes.

Change-Id: If149c8126f42f80724ee17b63c411ddec6645f85
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoapi: save some typing when adding new api files 72/4472/5
Damjan Marion [Thu, 22 Dec 2016 17:08:33 +0000 (18:08 +0100)]
api: save some typing when adding new api files

Change-Id: Ia994b723eafe8ab41c1c3031a7f7cd1853554128
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd L2 flow-record generation 38/4438/2
Dave Barach [Tue, 20 Dec 2016 22:59:27 +0000 (17:59 -0500)]
Add L2 flow-record generation

Change-Id: I32a9513f2b66d35e0abe2aeb6eb86a4729ba7f74
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoAPI refactoring : lisp-gpe 63/4463/4
Pavel Kotucek [Wed, 21 Dec 2016 14:50:08 +0000 (15:50 +0100)]
API refactoring : lisp-gpe

Change-Id: I47b38a9b5ae8ead2a161402974205982669851a7
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : lisp 62/4462/3
Pavel Kotucek [Wed, 21 Dec 2016 13:15:37 +0000 (14:15 +0100)]
API refactoring : lisp

Change-Id: Ia1ebd03e5d55e5b20f244158366b9de15b1baae1
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : ipsec-gre 66/4466/4
Pavel Kotucek [Thu, 22 Dec 2016 09:03:25 +0000 (10:03 +0100)]
API refactoring : ipsec-gre

Change-Id: I984c6f2c5aaeeef98aadd5a66159cac046a86586
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : ipsec 65/4465/3
Pavel Kotucek [Wed, 21 Dec 2016 06:46:45 +0000 (07:46 +0100)]
API refactoring : ipsec

Change-Id: Ice5bc725c619412e3b6cd1f56e225c6bf33104df
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoSNAT: Remove the oldest translation fix (VPP-568) 64/4464/2
Matus Fabian [Thu, 22 Dec 2016 07:58:46 +0000 (23:58 -0800)]
SNAT: Remove the oldest translation fix (VPP-568)

Fixed bug and add test.

Change-Id: Ibe70dfc81e6c264223050d316cf6a2a3a0e1524e
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoAPI refactoring : bfd 61/4461/1
Pavel Kotucek [Wed, 21 Dec 2016 08:13:17 +0000 (09:13 +0100)]
API refactoring : bfd

Change-Id: Ifbf9b491a1d3906fd4dd4256dcaba976511657be
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : l2tp 26/4426/4
Pavel Kotucek [Tue, 20 Dec 2016 09:01:20 +0000 (10:01 +0100)]
API refactoring : l2tp

Change-Id: I30d2785ceaf304b245192f9bce60e37e9da69023
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : gre 25/4425/4
Pavel Kotucek [Tue, 20 Dec 2016 07:13:14 +0000 (08:13 +0100)]
API refactoring : gre

Change-Id: Idea10d6ba4139fdcb4f16300a06c2b30ef339b3c
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : vxlan-gpe 28/4428/2
Pavel Kotucek [Mon, 19 Dec 2016 13:47:09 +0000 (14:47 +0100)]
API refactoring : vxlan-gpe

Change-Id: Ia31de797e0ff79ceff010b496af30f5196de9fd6
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : vhost_user 24/4424/2
Pavel Kotucek [Tue, 20 Dec 2016 11:17:37 +0000 (12:17 +0100)]
API refactoring : vhost_user

Change-Id: I8813d5500973079d582e0bb5f8c2052f8f31c5c7
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : netmap 23/4423/2
Pavel Kotucek [Tue, 20 Dec 2016 13:05:46 +0000 (14:05 +0100)]
API refactoring : netmap

Change-Id: I0e1ba784b09c00d2ae5ea51128dcba09d06f8766
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : af_packet 22/4422/3
Pavel Kotucek [Tue, 20 Dec 2016 12:19:48 +0000 (13:19 +0100)]
API refactoring : af_packet

Change-Id: Id912ca655583a419b52d4904d6c54dac1f1b26ac
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoAPI refactoring : vxlan 27/4427/2
Pavel Kotucek [Mon, 19 Dec 2016 13:35:35 +0000 (14:35 +0100)]
API refactoring : vxlan

Change-Id: Ied105d738ba3625086359b267db0390be842b7bc
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoBump to 17.04 release 57/4457/1 v17.04-rc0
Damjan Marion [Wed, 21 Dec 2016 18:13:57 +0000 (19:13 +0100)]
Bump to 17.04 release

Change-Id: I94078dbb35491b4fa36f3a1d60e0ab82b542ebd9
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-470: Introduce VxLAN-GPE as transport for iOAM. 71/4271/8
Vengada Govindan [Wed, 14 Dec 2016 05:59:54 +0000 (21:59 -0800)]
VPP-470: Introduce VxLAN-GPE as transport for iOAM.
This is the second of the two commits. This commit introduces VxLAN-GPE
transit functionality.

Change-Id: I12f13e00f456df0047f2b7a0737addfeb683c420
Signed-off-by: Vengada Govindan <venggovi@cisco.com>
7 years agoSupport multiple VXLAN tunnels with same mcast dst 44/4444/2
Eyal Bari [Wed, 21 Dec 2016 10:45:47 +0000 (12:45 +0200)]
Support multiple VXLAN tunnels with same mcast dst

Support multiple vni's with the same group(multicast) address.
Implemented by sharing local adj. and rewrite among tunnels.

Change-Id: I8ca036b87af65dd6a8f1aff7da1855f72b4c8f4b
Signed-off-by: Eyal Bari <ebari@cisco.com>
7 years agoFix coverity issues 47/4447/3
Marek Gradzki [Wed, 21 Dec 2016 13:29:01 +0000 (14:29 +0100)]
Fix coverity issues

Change-Id: I7707a42321df2c73e5414926d4000f8672ecfaf3
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agofix 'show trace' bug - format vector as %v 41/4441/4
Klement Sekera [Wed, 21 Dec 2016 02:24:00 +0000 (03:24 +0100)]
fix 'show trace' bug - format vector as %v

Change-Id: I1b5e633b92674c6c7118eaa6ff7be3d824a186c3
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoAdd missing variable definitions to java VPP API 45/4445/3
Marek Gradzki [Wed, 21 Dec 2016 12:38:39 +0000 (13:38 +0100)]
Add missing variable definitions to java VPP API

Change-Id: I121b26f4d566417e7cb5ee1a021896dd7dc5599e
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agovagrant: Fixing sudo related vagrant errors 50/4450/3
Ray Kinsella [Wed, 21 Dec 2016 14:25:40 +0000 (14:25 +0000)]
vagrant: Fixing sudo related vagrant errors

The dpkg sudo trigger appears to want to run interactively despite the noninteractive
debconf setting. This is a problem upstream for vagrant also, see.

https://github.com/hashicorp/terraform/issues/9763

Incorporating the recommended fix to Vagrantfile from upstream

https://github.com/hashicorp/terraform/pull/9783

Change-Id: I8da8522fc9e80fc3bd268b347a786054ad019170
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
7 years agoPython API: Incorrect error for empty VLA list. 46/4446/2
Ole Troan [Wed, 21 Dec 2016 10:51:05 +0000 (11:51 +0100)]
Python API: Incorrect error for empty VLA list.

Change-Id: Ie3e9a54ca23af6b9ee43615f59a48cb05e3906d4
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agovagrant: updated Vagrantfile to use rsync 49/4449/2
Ray Kinsella [Wed, 21 Dec 2016 12:10:43 +0000 (12:10 +0000)]
vagrant: updated Vagrantfile to use rsync

Replacing problematic nfs & git clone, with a simplier rsync.

Change-Id: I26a95bd81b7fbf6ea0179cd62361e0902f2d22ed
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
7 years agoaarch64 compatibility 90/4390/3
Christophe Fontaine [Mon, 19 Dec 2016 13:41:52 +0000 (14:41 +0100)]
aarch64 compatibility

- lb plugin: compatibility for non x86 platforms.
- Add vector_neon.h to support simd instructions, especially
'u16x8_zero_byte_mask' used in
"vnet/vnet/ip/ip4_source_and_port_range_check.c"

Change-Id: I395546b0e2d5748e73daffa51269a200ef8d1235
Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
7 years agoclassify: add simple mechanism for automatic flow creation (VPP-338) 39/3139/10
Juraj Sloboda [Thu, 25 Aug 2016 13:40:29 +0000 (06:40 -0700)]
classify: add simple mechanism for automatic flow creation (VPP-338)

VPP-338 Support wildcards in IPFIX flow configuration

Change-Id: Ie5ab4f89d70153c3b15fc6bd8d97fa383ee842d9
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
7 years agofix sample-plugin rpm packaging 36/4436/2
Gabriel Ganne [Tue, 20 Dec 2016 16:38:31 +0000 (17:38 +0100)]
fix sample-plugin rpm packaging

Change-Id: I0f4d029fe16d1d272c8bbd5c380ba70a646ddb20
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
7 years agomake test: Add classifier - ip/mac/pbr cases 91/4391/4
Steve Shin [Mon, 19 Dec 2016 17:24:50 +0000 (09:24 -0800)]
make test: Add classifier - ip/mac/pbr cases

Change-Id: I9cdf022a48b2b63e7ce07f4f5322ffda28c08ff0
Signed-off-by: Steve Shin <jonshin@cisco.com>
7 years agoAlways set start_of_ethernet_header in ethernet-input speed path 37/4437/2
John Lo [Tue, 20 Dec 2016 21:59:02 +0000 (16:59 -0500)]
Always set start_of_ethernet_header in ethernet-input speed path

The speed path of ethernet-input node is setting the packet context
field start_of_ethernet_header for L2 only. This is also needed for
L3 path because of IPv4 ARP processing which need to know the start
of ethernet header of the incoming ARP packet.

Change-Id: I98ee88c482f8536e4fccc0b8afcb8811d63f4435
Signed-off-by: John Lo <loj@cisco.com>
7 years agoDecouple dependencies/assumptions in MAC change 31/4431/2
Neale Ranns [Tue, 20 Dec 2016 14:24:01 +0000 (14:24 +0000)]
Decouple dependencies/assumptions in MAC change

Change-Id: Ic38d0e468da1ad5b56eefda471a5961146a1c372
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoVPP-525: multi-thread case binary API post-mortem dump AWOL 35/4435/2
Dave Barach [Tue, 20 Dec 2016 17:48:14 +0000 (12:48 -0500)]
VPP-525: multi-thread case binary API post-mortem dump AWOL

root cause: blocking all signals in worker threads

Change-Id: Ife0a5f04be0648fab84e493f203e79ba94890052
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agodpdk: fix advance header for ip4-no-checksum 32/4432/1
Sergio Gonzalez Monroy [Tue, 20 Dec 2016 15:20:32 +0000 (15:20 +0000)]
dpdk: fix advance header for ip4-no-checksum

Fixes: 78eeef747b19
    ("Improve dpdk-input node to handle drivers not setting mbuf PTYPE")

Change-Id: I94addcec2bf3097ab047e8d7e957bc983eab9add
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
7 years agoRemove RPATH from binaries before creating .deb and .rpm packages 93/4393/6
Damjan Marion [Mon, 19 Dec 2016 18:08:11 +0000 (19:08 +0100)]
Remove RPATH from binaries before creating .deb and .rpm packages

Change-Id: I684d4eabac03e049524204864c985e14eea8d92e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd missing variable definitions to python VPP API 13/4413/2
Juraj Sloboda [Tue, 20 Dec 2016 12:07:39 +0000 (13:07 +0100)]
Add missing variable definitions to python VPP API

Change-Id: I03eee75fb8575ced6f126fa32c778850a570f0ea
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
7 years agoImprove dpdk-input node to handle drivers not setting mbuf PTYPE 76/4376/6
John Lo [Sat, 17 Dec 2016 08:09:58 +0000 (03:09 -0500)]
Improve dpdk-input node to handle drivers not setting mbuf PTYPE

For drivers that do not provide dpdk rte_mbuf PTYPE information,
check ethernet header Etype to acccelerate IP4 and IP6 forwarding
path. Update packet trace for dpdk-input node to provide more info
from DPDK rte_mbuf offload flags and packet types.

Change-Id: I207158797a155305314d002726c0af97b8cb0eb3
Signed-off-by: John Lo <loj@cisco.com>
7 years agoDeclare variables as external 89/4389/4
Damjan Marion [Mon, 19 Dec 2016 15:28:36 +0000 (16:28 +0100)]
Declare variables as external

non-external declarations in header files are generating
multiple empty definitions of the same symbol.

Change-Id: I7f3933404f79d08579468d0052c106731b57507c
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agol2input: remove unused code and reduce number of branches 87/4387/2
Damjan Marion [Mon, 19 Dec 2016 12:56:51 +0000 (13:56 +0100)]
l2input: remove unused code and reduce number of branches

Change-Id: Ic37b5740285dc0020b9fdb0d8c98bc304cee7aa8
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agomake test: work around timing issue in bfd test 67/4267/2
Klement Sekera [Tue, 13 Dec 2016 07:14:07 +0000 (08:14 +0100)]
make test: work around timing issue in bfd test

Change-Id: I3f70091950b9288670969e54eadd35ac733905e4
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agosnat: fix port allocation 38/4338/2
Matus Fabian [Thu, 15 Dec 2016 13:30:37 +0000 (05:30 -0800)]
snat: fix port allocation

Change-Id: Id6aeb4d19476934dfaa354562aa1703650bd037f
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoPython API: Add back support for old-style VLA, e.g. mask[0] 77/4377/7
Ole Troan [Sun, 18 Dec 2016 12:15:08 +0000 (13:15 +0100)]
Python API: Add back support for old-style VLA, e.g. mask[0]

Change-Id: I5be6bfe522e5ea93934f0ddf75d4e4707376dc0c
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agomake test: filter IPv6 RAs out by default 81/4381/2
Klement Sekera [Sun, 18 Dec 2016 14:49:54 +0000 (15:49 +0100)]
make test: filter IPv6 RAs out by default

Most of the test cases are not interested in IPv6 Router Alerts,
so change the default behaviour of get_capture to filter out
these packets with the possibility of turning the filtering off,
for test cases which are interested in the RAs.

Change-Id: I0b5ee685f82c49cd32c6d6a4638eb3493d2988fc
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoioam: export plugin - genarate java bindings 57/4257/3
Sagar Srivastav [Tue, 13 Dec 2016 06:08:20 +0000 (22:08 -0800)]
ioam: export plugin - genarate java bindings

Change-Id: Ia0b81418a2171464ca4b4753afa6898c0c9ee626
Signed-off-by: Sagar Srivastav <sagsriva@cisco.com>
7 years agodpdk: fix IV physical address in esp-decrypt 40/4340/2
Sergio Gonzalez Monroy [Thu, 15 Dec 2016 15:56:12 +0000 (15:56 +0000)]
dpdk: fix IV physical address in esp-decrypt

Change-Id: I96b74aa82231038c54e9d07b54cc16fc53efe0be
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
7 years agodpdk: fix dpdk-crypto-input packet trace 39/4339/2
Sergio Gonzalez Monroy [Thu, 15 Dec 2016 15:42:41 +0000 (15:42 +0000)]
dpdk: fix dpdk-crypto-input packet trace

Change-Id: Ic8073215222e4800c62ac42738e73d5e990806ef
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
7 years agoUpdate CSIT tests 161211 -> 161218 79/4379/2
Jan Gelety [Mon, 19 Dec 2016 09:01:55 +0000 (10:01 +0100)]
Update CSIT tests 161211 -> 161218

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

Change-Id: I2942502803e1fc6edaf35fc08dee4e7848594f96
Signed-off-by: Jan Gelety <jgelety@cisco.com>
7 years agodpdk backward compatibility 88/4388/1
Christophe Fontaine [Mon, 19 Dec 2016 13:44:51 +0000 (14:44 +0100)]
dpdk backward compatibility

When building with an older dpdk version, the build fails
as the function 'rte_delay_us_override_cb' is not used.

Change-Id: I4eb5d1c5b357331cf020efd8c6492dd8c82710ee
Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
7 years agoVPP-563: Fix inter plugin dependency in ioam vxlan-gpe 74/4374/3
Shwetha Bhandari [Sat, 17 Dec 2016 06:26:29 +0000 (11:56 +0530)]
VPP-563: Fix inter plugin dependency in ioam vxlan-gpe

Change-Id: I31684b3844cd02ba0d0b046d621db59ecac3992d
Signed-off-by: Shwetha Bhandari <shwethab@cisco.com>
7 years agoCoverity fixes, VPP-486 66/4366/2
Dave Barach [Fri, 16 Dec 2016 14:20:04 +0000 (09:20 -0500)]
Coverity fixes, VPP-486

Change-Id: I8906bb983128e8f6e2664e367d2015325c1125fb
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix dpdk-input check for VLAN packets including VLAN strip case 55/4355/3
John Lo [Fri, 16 Dec 2016 04:25:04 +0000 (23:25 -0500)]
Fix dpdk-input check for VLAN packets including VLAN strip case

For DPDK-16.11 or later, use packet_type to check packets with VLAN
tags. For earlier versions of DPDK, keep using ol_flags but include
PKT_RX_VLAN_STRIPPED bit as part of the VLAN tags check.

Change-Id: Ic4ad8f04e44658dc0a99de0232fdc949cfa13e93
Signed-off-by: John Lo <loj@cisco.com>
7 years agomake test: improve robustness and performance 22/4222/4
Klement Sekera [Mon, 12 Dec 2016 07:36:58 +0000 (08:36 +0100)]
make test: improve robustness and performance

Introduce an API which asserts empty capture for interface.
Throw exception in old API if the capture does not exist, thus
making it clear if the test expects packets to arrive or not.
Improve performance by not doing sleeps after starting the packet
generator, rather lazily deleting captures when needed.
Fix wrong usage of packet.show() in various tests.

Change-Id: I456cb23316eef99b3f35f80344fe595c4db9a21c
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoExpand ethernet-input node speed-path for non-L2 paths 24/4324/2
John Lo [Wed, 14 Dec 2016 20:42:45 +0000 (15:42 -0500)]
Expand ethernet-input node speed-path for non-L2 paths

Improve ethernet-input speed path for untagged packets to also handle
L3 and other forwarding paths. In the IP4 forwarding path for untagged
IP4 packets, per packet clock count in ethernet-input node is reduced
to ~14 clocks from ~43 clocks.

Change-Id: I8e6f121820e056d6085dff3eb95d6913fc422f99
Signed-off-by: John Lo <loj@cisco.com>
7 years agoLISP: Fix several control plane message issues, VPP-558 97/4197/4
Filip Tehlar [Fri, 9 Dec 2016 12:52:38 +0000 (13:52 +0100)]
LISP: Fix several control plane message issues, VPP-558

* Fix TTL in map-regster message (defaults to 15 minutes)
* Handle multiple local EID registration in a for loop
* Parse multiple records in map-notifies, not only one
* Parse map-notify in the worker thread instead of the main thread

Change-Id: Ife68c2227bc5abf14c19f1a948a88d34de3b4af9
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoFix NPE in JNI while handling int arrays, VPP-559 25/4325/1
Marek Gradzki [Thu, 15 Dec 2016 06:30:09 +0000 (07:30 +0100)]
Fix NPE in JNI while handling int arrays, VPP-559

Change-Id: Idc3760b65e62cfa5d37dd7379e35331b7f95f913
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoPing response in a VRF context uses correct FIB for response 78/4278/2
Neale Ranns [Wed, 14 Dec 2016 12:31:29 +0000 (13:31 +0100)]
Ping response in a VRF context uses correct FIB for response

Change-Id: I3b626a1fb9d74ebc609ded14c16c5e3d5a1655ab
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoIP and MPLS route debug CLI fixes 53/4253/2
Neale Ranns [Mon, 12 Dec 2016 19:35:58 +0000 (19:35 +0000)]
IP and MPLS route debug CLI fixes

Change-Id: I1b61f36c88308c1bcf9a61a87843d1fea457d8fe
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agomake test: improve virtualenv patching process 21/4221/2
Klement Sekera [Mon, 12 Dec 2016 08:20:50 +0000 (09:20 +0100)]
make test: improve virtualenv patching process

Change-Id: I5041bdc733c4da633d83f60f7db7747b4d0b8894
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoFix coverity build-break, VPP-255 70/4270/1
Dave Barach [Tue, 13 Dec 2016 23:22:32 +0000 (18:22 -0500)]
Fix coverity build-break, VPP-255

Change-Id: I6a68f2ba5e7a5c76ac4e6b3e8f7cf695b1d66c54
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agovpp_papi: Add help() support for python interactive mode 96/4196/3
Christophe Fontaine [Fri, 9 Dec 2016 14:53:47 +0000 (15:53 +0100)]
vpp_papi: Add help() support for python interactive mode

The python api 1.3 removed the ability to call 'help' in interactive
mode.

example:
> help(vpp.sw_interface_span_enable_disable)
Help on function sw_interface_span_enable_disable in module vpp_papi.vpp_papi:

sw_interface_span_enable_disable(**kwargs)
    u16 _vl_msg_id, u32 client_index, u32 context, u32 sw_if_index_from, u32 sw_if_index_to, u8 state

Change-Id: Iea1944fdc862482490174ff966592cf3c8208a98
Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
7 years agoLISP: Move parsing of LISP map-reply to worker thread, VPP-554 25/4125/7
Filip Tehlar [Tue, 6 Dec 2016 09:31:57 +0000 (10:31 +0100)]
LISP: Move parsing of LISP map-reply to worker thread, VPP-554

Change-Id: I2c3093068b97bb3ed10e1ecb067fc297013d063c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoACL: Install ACL JSON in install directory. 20/4220/4
Ole Troan [Mon, 12 Dec 2016 15:02:59 +0000 (15:02 +0000)]
ACL: Install ACL JSON in install directory.

Change-Id: I3f7dbd23114acf37322f97da80be746616a9d95d
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agomake test: Use VXLAN built in scapy 2.3.3 94/4194/4
Matej Klotton [Fri, 9 Dec 2016 14:05:46 +0000 (15:05 +0100)]
make test: Use VXLAN built in scapy 2.3.3

- fix documentation issues.
- fix mpls test.

Change-Id: Ieef6b4b5e4aca99e89bd03e45a991be89d42adba
Signed-off-by: Matej Klotton <mklotton@cisco.com>
7 years agoUpdate CSIT tests 161204 -> 161211 11/4211/2
Jan Gelety [Mon, 12 Dec 2016 09:16:03 +0000 (10:16 +0100)]
Update CSIT tests 161204 -> 161211

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

Change-Id: I141dad311139d2b819352fab6038d440f76c7fc2
Signed-off-by: Jan Gelety <jgelety@cisco.com>
7 years agosnat: Hairpinning (VPP-444) 18/4218/2
Matus Fabian [Mon, 12 Dec 2016 12:30:39 +0000 (04:30 -0800)]
snat: Hairpinning (VPP-444)

Change-Id: I73881ef32d547852da96e77402a1758f37e812d5
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agomake test: remove unneeded print 10/4210/2
Klement Sekera [Mon, 12 Dec 2016 01:55:06 +0000 (02:55 +0100)]
make test: remove unneeded print

Change-Id: I99242486371cea230e72974a7fc8768ffee9af62
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoip4: perf optimization in the ip4-input node 02/4202/6
Damjan Marion [Fri, 9 Dec 2016 11:21:27 +0000 (03:21 -0800)]
ip4: perf optimization in the ip4-input node

Change-Id: I9ddbbf8ce0d7307b9eb82ccd0c51f84e479ffd23
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoipsec: go straight to lookup after esp encrypt 14/4214/2
Sergio Gonzalez Monroy [Mon, 12 Dec 2016 10:37:49 +0000 (10:37 +0000)]
ipsec: go straight to lookup after esp encrypt

Currently, IPsec tunnel traffic goes to ip4-input/ip6-input after esp-encrypt.
It is not necessary to check that the new IP header is valid (if it is not
valid then we have otehr issues).

Instead, just send packets straight to ip4-lookup/ip6-lookup after esp-encrypt.

Change-Id: I5e35d500cb0f33f418f8554ed1f4390f02b6647d
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>