2593 Commits

Author SHA1 Message Date
Matus Fabian
2ba92e32e0 NAT: Rename snat plugin to nat (VPP-955)
Change-Id: I30a7e3da7a4efc6038a91e27b48045d4b07e2764
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-08-23 07:42:10 +00:00
Dave Wallace
cfc997ef3d Fix vl_map_shmem() root_path dangling reference.
Change-Id: I90c9d8e151cacf50a99ce76b7a589079303196e8
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-08-23 05:10:42 +00:00
Ed Warnicke
c900ccc34c Enabled gid vpp in startup.conf to allow non-root vppctl access
Change-Id: I1ca9736dbefc9c284f5176de176fcc3dd1bfcd82
Signed-off-by: Ed Warnicke <eaw@cisco.com>
2017-08-23 04:05:49 +00:00
Andrew Yourtchenko
beb50d425d acl-plugin: Recreate the bihash_40_8.h in the proper place
Change-Id: I30a3df53bc5fe5ab991a657918eb502bd2913440
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
2017-08-22 20:02:34 +00:00
Damjan Marion
adcf45217d dpdk: fix Cavium ThunderX support
Change-Id: Id5812448917ce52984d5a778d5b304c448a752e7
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-08-22 15:04:39 +00:00
Keith Burns (alagalah)
6f67049e41 Update gitignore for DPDK files
Change-Id: I6c4e76d8a030ec5fafc8167873cc1471913a1e88
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2017-08-22 14:57:05 +00:00
John Lo
e531f4cb57 Increase default MAC learn limit and check it in learn-update path
1. Increase default MAC learn limit from 1M to 8M entries.
2. Check MAC learn limit in MAC learning update path.
3. Allow disable of want_l2_macs_events to set MAC learn limit
4. Other minor cleanups

Change-Id: I62438440937b5fa455e16f4a2e4d910277753395
Signed-off-by: John Lo <loj@cisco.com>
2017-08-22 14:30:18 +00:00
Damjan Marion
87318463aa policer: remove unused code
This is causing compiler error with gcc 7.

Change-Id: Ia65ee9d80ab263c79e82ad805e5cc5a12af91f85
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-08-22 11:17:57 +00:00
Kris Michielsen
910744394f SRv6 tests
Change-Id: Ib1d2fc5a83d9d007a0468591a73881675f1bec9b
Signed-off-by: Kris Michielsen <kmichiel@cisco.com>
2017-08-22 11:12:34 +00:00
Damjan Marion
5f22f4ddde dpdk: define MACHINE before it is used
This fixes build on non-x86 platforms like arm64.

Change-Id: I7ff5df92f89e34c27889d82f35924dc28cde8c39
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-08-22 00:42:18 +00:00
Damjan Marion
3600b67e4f ping: remove unnecesary x86 intrinsics #include
This include file is present only on x86 so it breaks non-x86 builds.

Change-Id: I6406b0b36f207b684535961545e95dbba707d267
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-08-22 00:41:42 +00:00
Damjan Marion
844e0eba77 dpdk: disable tun/tap PMD
Beside the fact that we don't need it, it fails to build on ARM64.

Change-Id: Iefae8bf234b588d8005df5e053b9152b6611929c
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-08-21 22:27:08 +02:00
Neale Ranns
43161a8733 PPPoE usses a midchain adjacency stack on an interface-tx DPO
1) introduce an interface-tx DPO. This is a simple wrapper around a sw_if_index. enhance DPO stacking functions to allow per-instance next-nodes and hence allow children to stack onto the interface per-instance tx node and not on 'interface-output'.
2) update PPPoE code to use ta midchain stack on a interface-tx DPO of the encap-interface. This remove the need for pppoe_encap node (which is replaced by the adj-midchain-tx) and interface-output node is no longer used (see above). Since PPPoE encap node is no longer needed, the PPPoE seesion does not need to be retrieved in the data-path, hence the cahce misses are removed.

Change-Id: Id8b40f53daa14889a9c51d802e14fed7fba4399a
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-08-21 04:07:00 -07:00
pragash
352829f538 Fixed ip add bug for ip6 with review comments
Change-Id: Ie1fba1a32020775444c7b1ed800e8559b54691ff
Signed-off-by: pragash <pxv3620@rit.edu>
2017-08-19 10:46:50 -04:00
Florin Coras
e87216fedd session: fix multi-buffer segments
Change-Id: I0e22c85ea570b934b9c78dc5e86d86d690bdae5e
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-18 21:21:20 +00:00
Florin Coras
af8c8e5d95 gpe: fix sub-interface hash lookup
Change-Id: Ice6b3818ee24c7c248bf61e4d6c1ef2a85cb8fb1
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-18 21:12:18 +00:00
Ole Troan
b0856b432b Python API: Fix error message typo.
Change-Id: Icb67797a91a5929e57a08b79adeca226fee09de3
Signed-off-by: Ole Troan <ot@cisco.com>
2017-08-18 17:57:39 +00:00
Ole Troan
3cdc25ffba API: More gracefully fail when opening shared memory segment fails.
API clients would fail with an ASSERT (and core dump) whenever
the API shared memory segment could not be opened.
This returns an error value to the client's connect instead.

Change-Id: Id122a3a090b24b139c382ae09f341bde61fd2540
Signed-off-by: Ole Troan <ot@cisco.com>
2017-08-18 16:46:30 +00:00
Keith Burns (alagalah)
8ea8916bb8 IP4_FIB stats API not indexing after FIB changes - VPP-951
Change-Id: I9ec36ee82ddd8f2f7a551b458e19b2fbae4aa7e7
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2017-08-18 16:45:36 +00:00
Jan Gelety
b17f4c3ca7 Update CSIT tests 170731 -> 170814
- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I09c8551e47dc78567e591ace1e552d3c534e5aab
Signed-off-by: Jan Gelety <jgelety@cisco.com>
2017-08-18 13:27:40 +00:00
Florin Coras
3d2a914762 feature: exit on misconfigured features (VPP-915)
Change-Id: Ifa11f356d727b69cb121a2bf4cfb9d87883f545d
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-18 12:58:09 +00:00
Neale Ranns
0714541603 Use correct msg ID in the sw-interface-event from TAP and VHOST
Change-Id: I0124fa264f7f390fc7cd9722da59be03116831c5
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-08-18 12:50:41 +00:00
Pavel Kotucek
dafd20b08a Fix vpp crash when adding macip acl
When adding at least two different types of MACIP acl vpp crash.

Change-Id: Ibbc76b94015311945be081fe0d8af71cf0672332
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2017-08-18 12:35:13 +00:00
Pavel Kotucek
f77e913549 Fix small issues in ACL api
Enable IP address without prefix length, if not given use max (32/128)
Parse correctly type of acl (ipv4).

Change-Id: I3d5d6b45037c9e0f95d2d112ae584f006c6cb4d1
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2017-08-18 12:34:43 +00:00
Andrew Yourtchenko
71bb05454c acl-plugin: time out the sessions created by main thread too (VPP-948)
In multithread setup the main thread may send packets,
which may pass through the node with permit+reflect action.
This creates the connection in lists for thread0,
however in multithread there are no interupt handlers there.

Ensure we are not spending too much time spinning in a
tight cycle by suspending the main cleaner thread
until the current iteration of interrupts is processed.

Change-Id: Idb7346737757ee9a67b5d3e549bc9ad9aab22e89
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit c1ff53f25d04ec1cc31844abd38014e91e398b5f)
2017-08-18 10:53:22 +00:00
Klement Sekera
8712ada6c3 make test: fix broken passing of return value
Change-Id: I2cb83caaf55ca9a29c06d71c6d20f8273ec062b3
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-08-18 10:34:39 +00:00
Dave Wallace
30fb4a2f43 Fix socket_test.sh to run iperf3 in docker.
Change-Id: I47018fee4283b7b257f16e21b82bf7e497a7d985
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-08-17 16:30:11 -04:00
Dave Barach
3bbcfab119 TCP source address automation
- v6 support
- Non-default VRF ID collection
- Break up ip source address list into CLI + API-friendly functions
- Automate proxy arp / proxy nd configuration
- Automate local adjacency insertion
- Binary API support

Change-Id: Iede31184f65cc1ec8c414447d2d60a1334e3fe15
Signed-off-by: Dave Barach <dave@barachs.net>
2017-08-17 17:24:25 +00:00
Klement Sekera
f413bef135 make test: collect symlinks to failed tests
Compress files in temporary directories of failed tests and symlink
the directories under /tmp/vpp-failed-unittests location - preparation
for jenkins archivation. Automatically cleanup the directory at start
of test run.

The compression is performed only when environment variable
COMPRESS_FAILED_TEST_LOGS is set to one of "yes", "y", "1".
This is set in verify target, but left unset by default, so when
invoking make test by hand, files won't be compressed.

Change-Id: I84c8f1c6aa79aa9c0b753357022b1f195f17a283
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-08-17 14:44:05 +00:00
Ole Troan
6bf177ce81 Python API: VPP-947 Empty chroot_prefix fails on encode()
Change-Id: Ide2cdc456f3ab3219930fb8e423b871810469cdc
Signed-off-by: Ole Troan <ot@cisco.com>
2017-08-17 13:21:27 +00:00
Marek Gradzki
89b931fdf9 jvpp: suppress unwritten fields warrning found in DTO's hashCode
DTOs fields are initialized by generated JNI code, so
we can safely ignore FB.UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD.

Coverity uses FindBugs to analyse Java code,
so it should be possible to suppress some of the
issues that are false positives or intentional.

Change-Id: I1375f6123e3eb44db44065d603d9d81726161acb
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16 18:13:25 +00:00
Florin Coras
20a14b9eac ip4: cleanup ip local
Change-Id: I4f751b0181f25ec6c4abd3a9c7b0386d80743b3a
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-16 16:50:08 +00:00
root
c9d1c5b6b3 tcp: fix v6 sessions
Change-Id: Ia6dd5e948b17b2f3866fe70838eabb09e35415e1
Signed-off-by: Dave Barach <dbarach@cisco.com>
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-16 16:47:44 +00:00
Matus Fabian
ab9a59c19a SNAT: Make proto optional in nat64_bib_dump (VPP-942)
make proto optional in nat64_bib_dump and nat64_st_dump

Change-Id: Idd102ce2b1555d38783fd22c84e46b4c48570edc
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-08-16 15:56:32 +00:00
Neale Ranns
d292ab1e0f No context in SW interface event
At this pointin the game, events do not have an associated context. they have the client_index and pid instead.

Change-Id: I5052cab78f710bba630a61d2390acbaa1b3813ab
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-08-16 13:32:39 +00:00
Florin Coras
0e9c33bb5f tcp: improve builtin http server
Additionally:
- remove opaques from stream_session_t
- ensure first segment manager is only used once per app.

Change-Id: I143d1fdb8effc88815ef969b78122ba3ac29e06e
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-16 13:28:27 +00:00
Pavel Kotucek
4f80b81d4a Add missing counters for P2P ethernet interfaces
Change-Id: I9d172d70f645fea5005abced73ca2700e640263a
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2017-08-16 12:18:22 +00:00
Matus Fabian
f8cd581744 NAT64: Fallback to 3-tuple key for non TCP/UDP sessions (VPP-884)
Change-Id: I4cafc8291725feb499355092bd429433e649b5b2
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-08-16 08:36:43 +00:00
Dave Wallace
6d5c4cdbcc VCL: copy complete ip addr to/from vpe-api buf.
Change-Id: I951e051278e775a7ecdaa88af812f535727baa92
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-08-16 05:53:58 +00:00
Marek Gradzki
5da27c260e jvpp: move JVppReply's id out of synchronized block
Should make Coverity stop thinking we try to synchronize reply.context.

Change-Id: I97169e46b9c8f594836d6beb75b9f42dfc6e5bad
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-16 01:31:00 +00:00
Neale Ranns
24b170aac5 Support proxy ARP on mirrored TAP interfaces
When VPP has an interface whose address is also applied to a TAP
interface on the host, then VPP's TAP interface will be unnumbered
to the 'real' interface and do proxy ARP from the host.
the curious aspect of this setup is that ARP requests from the host
will come from the VPP's own address.

Change-Id: Ia238790e1034ba3cd3facdab29387b65a31525f2
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-08-15 16:37:21 +00:00
Andrew Yourtchenko
e9ab1c0b4a acl-plugin: don't attempt to delete the ACLs on interface deletion if ACL plugin heap is not initialized
With the addition of the own heap, the delete routines called from interface deletion
callback may attempt to initialize the ACL plugin heap. This is obviously not
a desirable condition - so, return early from the callback if the ACL plugin
heap has not been initialized yet - there is for sure nothing to clean up.

Change-Id: I08a6ae725294016ff5824189ade91c288e2c473b
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
2017-08-15 15:00:59 +00:00
Pavel Kotucek
8dc802062b IPv6 local-address for P2P ethernet interfaces
Change-Id: I87d3cb5754843f38593e92f60a39af2e5241d1cf
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2017-08-15 13:57:41 +00:00
Billy McFall
e9bac6953d VPP-939: Update CLI Helptext for rx-placement commands
The CLI commands were change from 'set/show interface placement' to
'set/show interface rx-placement', but the associated help text was not
updated. On the 'set interface rx-placement', some of the parameters
were renamed, which was confusing when looking at the documentation for
help.

While in the file interface_cli.c, cleaned up several other CLI
commands. There are still other commands in the file that need
addressing.

Change-Id: Ifdc357c73ad9f3362133c495217b5a6b3a411eab
Signed-off-by: Billy McFall <bmcfall@redhat.com>
2017-08-15 12:34:51 +00:00
Florin Coras
ab0289a85c tcp: state machine improvements
- Add SYN_RCVD timeout
- Fix FIN_WAIT_1 to CLOSING transition

Change-Id: I42ca7fc087f6fdfae15bd7a6175dd3226ed341c7
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-15 12:33:31 +00:00
Marco Varlese
8ddd518f9a Previous version was still downloading, unpacking and building IPSEC / AES
libraries.

This patch addresses the misbehaviour.

Change-Id: I41f1ece3ca21c5a8f2c95533ed3d77a535233ea6
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2017-08-15 11:00:53 +00:00
Marek Gradzki
af09551335 coverity: remove dependency on uint32_t in fib_test.c
Fixes make build-coverity

Change-Id: I5cf6992224f18b8e8770d365c42b3e759dc93f73
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2017-08-15 10:23:14 +00:00
Matus Fabian
6912628261 SNAT: fix overlapping address space test
change address/network of the second interface within VRF 10

Change-Id: Iab9772a419fb3e8f1a193756bdaa68cd8cdbb121
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-08-14 23:39:58 -07:00
Dave Wallace
d69f4f416d Fix VCL LD_PRELOAD lib location in socket_test.sh
- Use VCL_LDPRELOAD_LIB_DIR env. var if set.
- Default to /usr/local/lib where it will be installed.
- Change library name to libvcl_ldpreload.so.0.0.0

Change-Id: I4fc30b581c8406c5895f875d859aa44bb9ef19b5
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-08-14 23:50:05 +00:00
Florin Coras
82d3ec8b51 TCP: Update time_now once per burst
Change-Id: I58089d7a9867ede9d8a36b2aea62edef04cb5b81
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-08-14 21:26:32 +00:00