3307 Commits

Author SHA1 Message Date
Neale Ranns
be302d7203 BIER coverity fix in route downlaod
Change-Id: I9341f1554d804dfeeecef656e59e8598704863dc
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-19 18:43:59 +00:00
Neale Ranns
4bc2d7ab39 FIB memory leak during recursive loop detection
Change-Id: I5ecd43330b3329b072e6da62a4eed1641eb17f8f
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-19 18:43:32 +00:00
Dave Barach
5e30aceb3a VPP-1032: fix coverity warning in bier
Change-Id: I0f8d2d9be78d4d936ed61538aee1b7207871347b
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-19 16:10:53 +00:00
Juraj Sloboda
3e86a30a83 Fix passing bad context for callback function
Change-Id: I61e6019ab34f52c82bf3f1e5327501a613f58bd9
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2017-12-19 14:39:29 +00:00
Matus Fabian
b932d26ea4 NAT: Twice NAT44 (VPP-969)
Translation of both source and destination addresses and ports for 1:1 NAT
session initiated from outside network (ExternalIP K8 use case).

Change-Id: Ic0000497cf71619aac996d6d580844f0ea0edc14
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-12-19 10:34:07 +00:00
Dave Wallace
f13f6a4dc9 lldp: Fix Coverity Warnings CID 177942, CID 177945
Change-Id: Ic1ab32c5df3f7a613fe0dcd6bfc15037fa2a008b
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-12-19 00:12:20 +00:00
Dave Wallace
97b1a27130 session api: Fix Coverity Warning CID 180115
Change-Id: I87e3de556910851d16af343bfcbede49500843ff
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-12-18 23:12:11 +00:00
Dave Wallace
bbfa303097 API: Fix Coverity Warning CID 177944
Change-Id: I5dbd5e5673ecb0d3878053ae9985478740cf3bc6
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-12-18 15:40:53 -05:00
Matus Fabian
e4d1283651 NAT: Add performance testing TRex scripts and config (VPP-832)
Change-Id: I149a20f183b836db4c32fb4e4a8438b3a14c1c26
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-12-18 17:18:22 +00:00
Radu Nicolau
ff9f040e63 Updated MAINTAINERS
Added Radu Nicolau as maintainer for
src/devices/dpdk/ipsec/ and src/vnet/ipsec/

Change-Id: If354344f5685ce0e431757768b77c4d5e8e409f9
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
2017-12-18 16:16:22 +00:00
Dave Barach
e6e012f6f5 Fix nat44 identity mapping
Set l_addr to the interface address if the interface address is known
when the identity mapping is created.

Change-Id: I61af0f5248c9d86d23a24457b342b2e1fb4ac726
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-18 15:35:20 +00:00
Ed Warnicke
798150b195 Provide useful output when installed vpp-dpdk version is incorrect
Change-Id: Icb931de82cb5969fa4976611629e2f882c720a99
Signed-off-by: Ed Warnicke <eaw@cisco.com>
2017-12-18 14:19:15 +00:00
Hongjun Ni
c91f50242f Support kube-proxy data plane
This plugin provides kube-proxy data plane on user space,
which is used to replace linux kernal's kube-proxy based on iptables.
The idea is largely inspired from VPP LB plugin.

Currently, kube-proxy plugin supports three service types:
1) Cluster IP plus Port: support any protocols, including TCP, UDP.
2) Node IP plus Node Port: currently only support UDP.
3) External Load Balancer.

Please refer to kp_plugin_doc.md for details.

Change-Id: I36690e417dd26ad5ec1bd77c7ea4b8100416cac6
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2017-12-18 13:55:45 +00:00
Pablo Camarillo
42998828c9 SR-MPLS: binary API and automated steering
Change-Id: Iacfbaaa91ea8bd92790dec9fce567063bdbc5d64
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
2017-12-18 13:41:36 +00:00
Krishanpal singh
d2fec4a255 VPP-269 Coding standards cleanup - vnet/vnet/policer
Change-Id: Ib92794205027d3242c6f0c8962fe02ac38c7129b
Signed-off-by: Krishanpal singh <krish.singh03@gmail.com>
2017-12-18 12:23:58 +00:00
Jan Gelety
3df8728088 Update CSIT tests 171204 -> 171218
- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I5ad0e36fa40095cc107a31b32dd2bbf936636dc4
Signed-off-by: Jan Gelety <jgelety@cisco.com>
2017-12-18 09:03:17 +01:00
Ole Troan
034e05567f PAPI: Add docstrings to unit tests.
Change-Id: I0e20100c9e2ca4e951f605a79d48c04ff47864cb
Signed-off-by: Ole Troan <ot@cisco.com>
2017-12-16 22:16:24 +00:00
Neale Ranns
33ce60d675 GRE tunnel key includes the FIB table
- GRE tunnels with the same src,dst addresses are not the same tunnel
- Two data-plane improvements:
  - the cached key was never updated and so useless
  - no need to dereference the tunnel's HW interface to get the sw_if_index

Change-Id: I2f2ea6e08c759a810b753cec22c497e921a2ca01
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-16 19:39:26 +00:00
Gabriel Ganne
8e66b9bf4b Use crc32 wrapper (VPP-1086)
This allows arm platforms to also take advantage of crc32 hardware
acceleration.

* add a wrapper for crc32_u64. It's the only one really used. Using it
  instead of a call to clib_crc32c() eases building symmetrical hash
  functions.
* replace #ifdef on SSE4 by a test on clib_crc32c_uses_intrinsics.
  Note: keep the test on i386
* fix typo in lb test log

Change-Id: I03a0897b70f6c1717e6901d93cf0fe024d5facb5
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
2017-12-16 19:32:25 +00:00
Damjan Marion
f9dc9c4629 dpdk: unset ETH_TXQ_FLAGS_NOXSUMS only for selected PMDs
Change-Id: I1699e440052faa317b06d46692e8656a41d21bfe
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-12-16 11:52:52 +00:00
Dave Barach
2877eee189 VPP-1102: fix dangling references in RPC handling
Queue RPC calls and send them from the main dispatch loop. As things stood,
if the vpp main input queue filled, worker threads could enter a
barrier-sync spin-wait in the middle of processing a frame. If thread
0 decided to recreate worker thread data structures, the worker thread(s)
could easily crash.

Legislate the problem out of existence by enqueueing RPC messages only
from the main dispatch loop. At that point, doing a barrier-sync wait
is perfectly OK.

Change-Id: I18da3e44bb1f29a63fe5f30cf11de732ecfd5bf7
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-15 22:32:11 +00:00
Florin Coras
891f0a1caa apps: refactor uri and update build infra
Change-Id: Ifa9966a27586a1a65038d069cf4a1e6e21a72d45
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-12-15 19:05:57 +00:00
Vijayabhaskar Katamreddy
ce07412a54 Fix icmp/udp/tcp punt/drop paths
Send packets to ip4/6_punt/drop nodes instead of error-drop/punt nodes

dbarach: clean up an annoying checkstyle issue: indent 2.2.10
(OpenSUSE version) and indent 2.2.11 (Ubuntu / CentOS versions) had an
artistic disagreement about ip_frag.c.

Change-Id: I660bee28a064af9c6c70371363081e941d1c3a94
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-15 15:58:46 +00:00
Gabriel Ganne
0e789423bb make test: disable tests which require CXX >= 5.3 on rhel
same as commit d3e671e0dbb879d90f00bdee608ee0bb5f6357ae did for centos

Change-Id: If57765490d1ef41042a42db433b704af2f0c0ffd
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
2017-12-15 14:44:28 +00:00
Dave Wallace
9c5161aedf VCL-LDPRELOAD: Fix Coverity Warning CID 178776
- Fix broken unit test code.
- Check for NULL ptr in vppcom_session_attr()
  VPPCOM_ATTR_GET_*_ADDR endpoint parameters.

Change-Id: I01169edce098ee855a9cba08893c2b08c93ea6c3
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2017-12-15 10:11:15 +00:00
Kevin Wang
6390df300e implement clib_smp_pause() for arm and aarch64 platform
Change-Id: Ic9c1c70e06b953538ed43fc91ed26b6be82ce812
Signed-off-by: Kevin Wang <kevin.wang@arm.com>
2017-12-15 10:04:40 +00:00
Florin Coras
119dd3af4b fib: fix show fib path-list and path
Change-Id: I465282e513b6a0482e96dd02fc7e0e4ed3e3731a
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-12-15 09:51:46 +00:00
“mystarrocks”
23f0c4515f ESP_AH_test_automation_scripts rev1
Change-Id: I941abdc4a02e4c52c66b9d299e380b27caca7c1d
Signed-off-by: “mystarrocks” <mystarrocks@yahoo.com>
2017-12-15 09:50:21 +00:00
Keith Burns (alagalah)
e1584a6c5d Ignore core files
Change-Id: I7ffaceb992d12fd255fe8a608b0493c2993c18c2
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2017-12-15 02:22:35 +00:00
Dave Barach
a4bab9d5dc Fix display of single-event event-logs
Change-Id: Ib3e25916c66fa3e1b082359095652c45d3b27d0f
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-14 17:22:16 -05:00
Swarup Nayak
1b70884563 VPP-1100 Fix loop in "set punt tcp/udp command"
Change-Id: I23081ea25a8d40d8ebe1fcb6efe4143e9c5a0fc6
Signed-off-by: Swarup Nayak <swarupnpvt@gmail.com>
2017-12-14 20:33:58 +00:00
Damjan Marion
2752b89ead pci: auto-detect right vfio/uio driver
Change-Id: Ib4012ff598698924484525932d041988cc4c63f6
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-12-14 16:26:00 +00:00
Mohsin Kazmi
091871c6a3 vom: acl: Extend constructor for l3 rule
New constructor can construct the l3 rule
using all or partial paratmeters.

Change-Id: I828ec1c4713decb5824e4a73c3692cebc2324cc2
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
2017-12-14 15:03:18 +00:00
Mohsin Kazmi
810bea1806 vom: acl-list: Add comparison operator - for UT
Change-Id: I341f522b46dd85fb3b1dd43fd125513f16f89171
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
2017-12-14 15:03:11 +00:00
Damjan Marion
fad3fb362c vppinfra: add AVX512 variant of clib_memcpy
Taken from DPDK, also AVX2 variant updated to be in sync with DPDK
version.

Change-Id: I8a42e4141a5a1a8cfbee328b07bd0c9b38a9eb05
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-12-14 13:37:30 +00:00
Milan Lenco
73e7f427e8 tap_v2: include host-side parameters in the dump binary API
Change-Id: I097a738b96a304621520f1842dcac7dbf61a8e3f
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
2017-12-14 11:08:49 +00:00
Dave Barach
545d9eaeff VPP-1032: clean up coverity warnings.
"This time, for sure..."

Change-Id: Ie981003842d37c5eb6a0b2fe3abe974a93b86df8
Signed-off-by: Dave Barach <dave@barachs.net>
2017-12-14 09:51:49 +00:00
Matthew Smith
2f5eb0afa0 Enable AWS ENA PMD
Elastic Network Adapter PMD for newer AWS instance types

Change-Id: Ic7f6ac4a261ccc7af3ffb2ed8950274532e3feae
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
2017-12-14 09:50:28 +00:00
Matus Fabian
5e52529ada NAT64: fix coverity (VPP-1032)
CIDs 180713 and 180714

Change-Id: Ia4856d1a62f176e99983f8c82eaa09d5df9d4ca5
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-12-14 09:48:13 +00:00
Neale Ranns
ceb4d05ba0 BIER disposition default route
Change-Id: I7196ad8bf6afaf356674789c05e23ac000bc038e
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-14 09:25:31 +00:00
Florin Coras
ff6e7699a5 session: cleanup attach flags
Change-Id: I39d21d15677f57e10b69b8842f2cbca277abddf0
Signed-off-by: Florin Coras <fcoras@cisco.com>
2017-12-14 00:45:51 +00:00
Neale Ranns
cf3561bde5 IP bi-direction multicast - same cable check on egress
Change-Id: I655382f7f74181dd7c795a2b22f151f76b50e793
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-13 21:53:11 +00:00
Gabriel Ganne
7e665d64eb make "test-all" target pass again
The "test-all" target is still never called as part of any continuous
test (as it probably should) but at least it can now be expected to
succeed.

VXLAN-GPE:
* decapsulate Ethernet to "l2-input" instead of "ethernet-input"
  otherwise the inner mac address get checked against the interface one
  (external) and packet gets dropped (mac mismatch)
* set packet input sw_if_index to unicast vxlan tunnel for learning

TEST:
* VXLAN:
  * reduce the number of share tunnels:
    => reduce test duration by half
    => no functional change
* VXLAN-GPE:
  * fix test TearDown() cli: command is "show vxlan-gpe" only
  * remove vxlan-gpe specific tests as the were a duplicated of the
    BridgeDomain one and already inherited.
  * disable test_mcast_rcv() and test_mcast_flood() tests
* P2PEthernetAPI:
  * remove test: "create 100k of p2p subifs"
    there already is a "create 1k p2p subifs" so this one is a load test
    and not a unit test.
    See: lists.fd.io/pipermail/vpp-dev/2017-November/007280.html

Change-Id: Icafb83769eb560cbdeb3dc6d1f1d3c23c0901cd9
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
2017-12-13 19:03:56 +00:00
Neale Ranns
fa1da15ca5 BIER: API documentation fixes.
Change-Id: I497305d9a4fd556ed8b4a7ceb3654df94ff98f56
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-13 16:26:23 +00:00
Damjan Marion
52014c674e physmem: fix bug in detection of cross page boundary allocations
Change-Id: I18e9227565243bce7d4102b1950eec9e019a097a
Signed-off-by: Damjan Marion <damarion@cisco.com>
2017-12-13 16:25:29 +00:00
Neale Ranns
1ec3652c25 Separate heap for IPv4 mtries
Change-Id: I497e9f6489dd35219bcf2b51ac992467aac4c8eb
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-13 16:07:34 +00:00
Neale Ranns
8716e6bf43 GRE: fix single loop decap and add test
Change-Id: I64e8a76a17057ae69de72a5a80c0a194cd0c21cb
Signed-off-by: Neale Ranns <nranns@cisco.com>
2017-12-13 15:14:49 +00:00
Matus Fabian
51e759fd06 NAT64: multi-thread support (VPP-891)
Change-Id: Iebf859b6d86482e4465423bad598eecf87e53ec4
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-12-13 14:15:35 +00:00
Matus Fabian
331acc6324 NAT: DS-Lite AFTR tunnel endpoint address respond to ICMPv6 echo request (VPP-1090)
Change-Id: I361c043979274eac1aefcd95abdf1624a3ef2756
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2017-12-13 14:13:14 +00:00
Juraj Sloboda
51e5edcbdd Fix parameter mismatch in map-t code
Change-Id: Ifa37767eb2c3cfc343f54691e6042473a6adf474
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2017-12-13 14:12:39 +00:00