vpp.git
6 years agoPackets recieved on VLAN-0 map to the main interface 36/6936/7
Neale Ranns [Tue, 30 May 2017 14:30:04 +0000 (07:30 -0700)]
Packets recieved on VLAN-0 map to the main interface

Change-Id: I21b1ad39275495d4d006023b58f630a213445854
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix coverity issue 26/7026/1
Filip Tehlar [Tue, 6 Jun 2017 13:32:52 +0000 (15:32 +0200)]
Fix coverity issue

Change-Id: I5f7dc38beb96b600be67599049f951d8a17ff8da
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoUpdate CSIT tests 170529 -> 170605 15/7015/1
Jan Gelety [Tue, 6 Jun 2017 07:41:06 +0000 (09:41 +0200)]
Update CSIT tests 170529 -> 170605

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

Change-Id: I49396105470609422f28a49211012fcd9f252587
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agoRework vxlan-gpe to support FIB 2.0 and bypass mode 89/6889/10
Hongjun Ni [Sat, 27 May 2017 12:23:09 +0000 (20:23 +0800)]
Rework vxlan-gpe to support FIB 2.0 and bypass mode

Change-Id: I0324f945bdb4dd3b19151be6f3ce24a47a000104
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoFix lisp map-notify parsing 11/7011/2
Florin Coras [Mon, 5 Jun 2017 22:38:50 +0000 (15:38 -0700)]
Fix lisp map-notify parsing

Change-Id: Ib22ffee3d8ac63af171d032c2ffcb44a2e42400c
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agovlib: add screen-256color CLI terminal type 10/7010/2
Damjan Marion [Mon, 5 Jun 2017 19:56:12 +0000 (21:56 +0200)]
vlib: add screen-256color CLI terminal type

Change-Id: Ia78e69e5e8ed18020314aef321b94ac37037799b
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agovlib: add unix_file_del_by_index function 09/7009/2
Damjan Marion [Mon, 5 Jun 2017 19:54:46 +0000 (21:54 +0200)]
vlib: add unix_file_del_by_index function

Change-Id: I9eca5f9d1c1ae62d5ba5fb36f2f97434dbaf334e
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agovppinfra: fix vec_validate_init_empty_aligned macro 08/7008/2
Damjan Marion [Mon, 5 Jun 2017 19:53:39 +0000 (21:53 +0200)]
vppinfra: fix vec_validate_init_empty_aligned macro

Change-Id: Ieafd00c7d03fe5c090808c7af4aa2f86974a092e
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoSNAT: fix ICMP hairpinning 00/7000/2
Matus Fabian [Mon, 5 Jun 2017 12:55:48 +0000 (05:55 -0700)]
SNAT: fix ICMP hairpinning

Change-Id: I9d63133bd1db72917571ade868040c4597c896a1
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoMore GCC-7 errors 05/7005/2
Marco Varlese [Mon, 5 Jun 2017 15:59:24 +0000 (17:59 +0200)]
More GCC-7 errors

The Wmaybe-uninitialized is the new error included with Wall.
This patch addresses the warning and fixes it.

Change-Id: I8fdf9ff2d236c46b717024a14874fbbbad8af303
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoLISP-GPE: return index of newly created fwd entry, VPP-868 99/6999/2
Filip Tehlar [Mon, 5 Jun 2017 11:40:13 +0000 (13:40 +0200)]
LISP-GPE: return index of newly created fwd entry, VPP-868

Change-Id: I4fc45097cb994ab6a59503d9fcfb693d1c7ec442
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoLISP: fix GPE entry dump, VPP-871 95/6995/1
Filip Tehlar [Mon, 5 Jun 2017 07:50:38 +0000 (09:50 +0200)]
LISP: fix GPE entry dump, VPP-871

Change-Id: Ifcd6d2caecce29c8b4605d06b9df82b36a403e74
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoFix typo for specifying table_id on ping. 92/6992/2
wenxian li [Sun, 4 Jun 2017 13:52:07 +0000 (13:52 +0000)]
Fix typo for specifying table_id on ping.

Change-Id: I76d399915c76ec68d8a401e11c14dc15c55291e4
Signed-off-by: wenxian li <wofanli@gmail.com>
6 years agoFix for gcc7 55/6955/4
Marco Varlese [Wed, 31 May 2017 12:00:37 +0000 (14:00 +0200)]
Fix for gcc7

When building VPP code with gcc7 a warning (threated as error) is encountered and the build fails.
This patch addressed the compilation issue.

Change-Id: I49af9288a84d91ec8145da07c00aefb5333ec418
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoFix mac_age process crash in multi-threaded environment 88/6988/2
Steve Shin [Fri, 2 Jun 2017 17:09:02 +0000 (10:09 -0700)]
Fix mac_age process crash in multi-threaded environment

VPP crash is observed when MAC aging is enabled with multi-threaded mode.
If a thread other-than-zero expands the working_copies vector,
working_copy_lengths should be initialized with vec_validate_init_empty(..., -1)
to fill -1 across lower-numbered working_copy_lengths vector element.

Change-Id: I60959fc6511306b33acae323df9c6898fc6c50ce
Signed-off-by: Steve Shin <jonshin@cisco.com>
6 years agomemif: fix coverity warnings 77/6977/2
Steven [Thu, 1 Jun 2017 21:25:15 +0000 (14:25 -0700)]
memif: fix coverity warnings

Check -1 for return from read prior to using the data

Change-Id: Ibab7309244de488737ea7938b334fab495bf855d
Signed-off-by: Steven <sluong@cisco.com>
6 years agoAdd option to build sample plugin in top-level makefile 62/6962/3
Damjan Marion [Wed, 31 May 2017 17:25:08 +0000 (19:25 +0200)]
Add option to build sample plugin in top-level makefile

Change-Id: Ibf15eeb5fef2a3761089e6386783a1606d2e2b79
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoAdd debian 8 support in extras/vagrant/build.sh 91/6891/5
khers [Wed, 24 May 2017 11:13:54 +0000 (15:43 +0430)]
Add debian 8 support in extras/vagrant/build.sh

Change-Id: I03f73615f4355163afd9fb5062dcea7c2df5a49a
Signed-off-by: khers <s3m2e1.6star@gmail.com>
6 years agoUpdate CSIT tests 170518 -> 170529 53/6953/6
Peter Mikus [Wed, 31 May 2017 09:40:21 +0000 (11:40 +0200)]
Update CSIT tests 170518 -> 170529

Change-Id: I33de2948019683961b5ab576db2c3303c8d2bd5e
Signed-off-by: Peter Mikus <pmikus@cisco.com>
6 years agovhost: add debug vhost-user on | off CLI 76/6976/2
Steven [Thu, 1 Jun 2017 19:49:23 +0000 (12:49 -0700)]
vhost: add debug vhost-user on | off CLI

Add runtime debug vhost-user on | off CLI to facilitate troubleshooting.
This feature is needed to avoid recompiling the code to debug vhost issues.
The debugging messages should not be on the data path to avoid performance
hit.

Change-Id: I4c40f65dbb222557cba3fb8706fa3b7b62eec95f
Signed-off-by: Steven <sluong@cisco.com>
6 years agoAdd l3 routing for GTP-U decap 48/6948/3
Hongjun Ni [Wed, 31 May 2017 16:24:12 +0000 (00:24 +0800)]
Add l3 routing for GTP-U decap

Change-Id: Ic3c8cd58cb2b02622299cf74c9efcabd2ef2b513
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoFix 'ip probe' on /32 18/6918/3
Neale Ranns [Tue, 30 May 2017 09:08:14 +0000 (02:08 -0700)]
Fix 'ip probe' on /32

Change-Id: Ib874ad93357500b2c425d75cf48834264b2183fc
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoMPLS trace the EOS bit correctly 63/6963/2
Neale Ranns [Wed, 31 May 2017 17:34:35 +0000 (10:34 -0700)]
MPLS trace the EOS bit correctly

Change-Id: I6c3fd612c19d9305f48ae0e429e12e96679e3b29
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoSupport to install dependencies on openSUSE distribution 73/6973/2
Marco Varlese [Thu, 1 Jun 2017 13:20:15 +0000 (15:20 +0200)]
Support to install dependencies on openSUSE distribution

This patch allows to use the "make install-dep" on openSUSE.

Change-Id: Ib0586ffebbf882032468e4f4c0df2d5d8e99d7c9
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoIP Mcast - recalculate on interface up/dowm 37/6937/5
Neale Ranns [Tue, 30 May 2017 16:53:52 +0000 (09:53 -0700)]
IP Mcast - recalculate on interface up/dowm

Change-Id: Ie5b88fd7187ed62218a2e4e0e493c33e3e9ecc2f
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoImprove fifo allocator performance 35/6935/11
Dave Barach [Tue, 30 May 2017 13:30:07 +0000 (09:30 -0400)]
Improve fifo allocator performance

- add option to preallocate fifos in a segment
- track active fifos with doubly linked list instead of vector
- update udp redirect test code to read fifo pointers from API call
  instead of digging them up from fifo segment header
- input-node based active-open session generator

Change-Id: I804b81e99d95f8690d17e12660c6645995e28a9a
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Barach <dbarach@cisco.com>
6 years agomake test: add suddenly missing dependency (six module) 70/6970/2
Klement Sekera [Thu, 1 Jun 2017 03:06:45 +0000 (05:06 +0200)]
make test: add suddenly missing dependency (six module)

Change-Id: I121eaee6b752a6b3bfe1d5ecf803f67147c77beb
Signed-off-by: Klement Sekera <ksekera@cisco.com>
6 years agoRevert "dpdk: build sw cryptodev support with make verify" 59/6959/3
Peter Mikus [Wed, 31 May 2017 15:23:59 +0000 (15:23 +0000)]
Revert "dpdk: build sw cryptodev support with make verify"

This reverts commit 0e2e10b77d63196bfb93ae5be1251bbc1a1b561a.

Change-Id: I3c1737f391b6ed127f92416f06449216e79859bb
Signed-off-by: Peter Mikus <pmikus@cisco.com>
6 years agomemif: multi-queues support 38/6938/6
Steven [Tue, 30 May 2017 17:35:51 +0000 (10:35 -0700)]
memif: multi-queues support

- Add rx-queues and tx-queues option to the create memif CLI
- Add vlib_worker_thread_barrier_sync () to memif_conn_fd_read_ready () as
the latter function may disconnect the ring and clean up the shared memory.
- On transmit, write the rid (queue number) to the socket.
- On receive, read the rid and trigger the interrupt for the corresponding
thread.

Change-Id: If1c7e26c7124174678f047909cbc33e931eaac8c
Signed-off-by: Steven <sluong@cisco.com>
6 years agoRevert "Update CSIT tests 170518 -> 170529" 45/6945/2
Dave Wallace [Tue, 30 May 2017 21:47:18 +0000 (21:47 +0000)]
Revert "Update CSIT tests 170518 -> 170529"

This reverts commit 9757325c52c223d85abfad834b071077365d4808.

Change-Id: I3bee0fe7d48be723334f2bd9fffd3240658b9e71
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoFlowprobe: Stateful flows and IPv6, L4 recording 30/5730/37
Ole Troan [Mon, 13 Mar 2017 12:39:52 +0000 (13:39 +0100)]
Flowprobe: Stateful flows and IPv6, L4 recording

Change-Id: I67839281623721bf42f0a918a53356143d9dc78a
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agodpdk: build sw cryptodev support with make verify 47/5847/8
Sergio Gonzalez Monroy [Wed, 22 Mar 2017 15:22:14 +0000 (15:22 +0000)]
dpdk: build sw cryptodev support with make verify

Change-Id: Ica95b5d3d44563c93c89b2a3233171c3aa1f048d
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
6 years agoLISP: L2 ARP handling 39/6839/5
Filip Tehlar [Wed, 17 May 2017 15:21:10 +0000 (17:21 +0200)]
LISP: L2 ARP handling

Change-Id: I1ec328cda73f7eaf7867cd8a2a17852ee0cd23f1
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoRelocate Coverity scripts 07/6907/2
Chris Luke [Mon, 29 May 2017 14:02:45 +0000 (10:02 -0400)]
Relocate Coverity scripts

- Move Coverity scripts from build-root/scripts to extras/scripts
- Update coverity-build with new path and add some comments

Change-Id: I1be8069fb574aaacbac9b7f2c9c80b9aad1790ec
Signed-off-by: Chris Luke <chrisy@flirble.org>
6 years agoUpdate CSIT tests 170518 -> 170529 05/6905/2
Jan Gelety [Mon, 29 May 2017 12:32:55 +0000 (14:32 +0200)]
Update CSIT tests 170518 -> 170529

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

Change-Id: I66357690f41e23dd1b924cc50a951a6c3696e071
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agoAdd Debian Jessie support in toplevel makefile 97/6897/2
Damjan Marion [Mon, 29 May 2017 10:29:05 +0000 (12:29 +0200)]
Add Debian Jessie support in toplevel makefile

Change-Id: I805800503f5330c14d2e654c02bf43e21e7ce917
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agomemif: master instance crashes when typing quit on slave 88/6888/2
Steven [Fri, 26 May 2017 21:18:58 +0000 (14:18 -0700)]
memif: master instance crashes when typing quit on slave

When I type in 'quit' on the slave instance, the master instance crashes
on this line.

0: /home/sluong/vpp-master/vpp/build-data/../src/vlib/unix/input.c:200 (linux_epoll_input) assertion `! pool_is_free (um->file_pool, _e)' fails
Aborted (core dumped)

Below is the decode from gdb
    line_number=0, fmt=0x7f57af6cc9a0 "%s:%d (%s) assertion `%s' fails")
    at /home/sluong/vpp-master/vpp/build-data/../src/vppinfra/error.c:143
    vm=0x7f57af8e2400 <vlib_global_main>, node=0x7f576d40ad80, frame=0x0)
    at /home/sluong/vpp-master/vpp/build-data/../src/vlib/unix/input.c:200
    vm=0x7f57af8e2400 <vlib_global_main>, node=0x7f576d40ad80,
    type=VLIB_NODE_TYPE_PRE_INPUT, dispatch_state=VLIB_NODE_STATE_POLLING,
    frame=0x0, last_time_stamp=1525665215050617)
    at /home/sluong/vpp-master/vpp/build-data/../src/vlib/main.c:1016
    vm=0x7f57af8e2400 <vlib_global_main>, is_main=1)
    at /home/sluong/vpp-master/vpp/build-data/../src/vlib/main.c:1500

I am able to reproduce the problem consistently with the below procedure.

1. Create 3 memif interfaces between slave and master instances.
2. Type 'quit' on the slave. Neither crashes the first time.
3. Bring back the slave. Type 'quit' on the master. Neither crashes.
4. Bring back the master. Type 'quit' on the slave. The master crashes.

There are two places the interrupt line is disconnected and the unix file is
removed via the call unix_file_del ()

1. memif_int_fd_read_ready ()
2. memif_disconnect () which is called via multiple places in memif.

When the crash happens, the unix file was removed from memif_disconnect ()
via memif_conn_fd_read_ready () with size of the message == 0 in recvmsg ().
It is noted when the unix file was removed from memif_int_fd_read_ready (),
it never crashes. It is a race condition. However, if I follow the
aformentioned procedure, the crash always happens.

The reason the crash happens when memif_disconnect () removes the unix file
is because there may still be pending input in linux_epoll_input (). When
linux_epoll_input () tries to access the unix file via the line 200
      unix_file_t *f = pool_elt_at_index (um->file_pool, i);
it crashes.

We could add code in linux_epoll_input () to avoid the crash if the index
for the particular file_pool is already free. Or we could fix memif to not
remove the unix file in memif_conn_fd_read_ready () when recvmsg () got 0
byte and just postpone the unix file deletion in memif_int_fd_read_ready ()
later after linux_epoll_input () got a chance to run to empty the input
stream.

I choose to fix the problem in the latter approach. I split the function
memif_disconnect () into two parts. For the code path which
memif_conn_fd_read_ready () calls memif_disconnect (), it does not remove the
unix file. All other calls to memif_disconnect () will continue to do what
it uses to do to avoid regression.

Please let me know if I should fix the problem other way.

Change-Id: I8efe2a3d24c6581609bc7b6fe82c2b59c22d8e4b
Signed-off-by: Steven <sluong@cisco.com>
6 years agoShow example syntax for setting plugin path 90/6890/2
Burt Silverman [Sun, 28 May 2017 02:40:30 +0000 (22:40 -0400)]
Show example syntax for setting plugin path

Change-Id: I7972273d0e9bd36e3fd6e12ab0268341ba572313
Signed-off-by: Burt Silverman <burtms@gmail.com>
6 years agoMPLS lookup DPO does not pop the label (nor does it handle replicate) 83/6883/2
Neale Ranns [Fri, 26 May 2017 10:48:53 +0000 (03:48 -0700)]
MPLS lookup DPO does not pop the label (nor does it handle replicate)

Change-Id: I7de6b96631d1645d0eadd38525860d84d78e316d
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoARP/ND use path_remove to complement path_add 86/6886/2
Neale Ranns [Fri, 26 May 2017 09:59:16 +0000 (02:59 -0700)]
ARP/ND use path_remove to complement path_add

don't add duplicate extensions.

Change-Id: Icf72d6e1b004d0dda532bec2b51f6b74544925bb
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoImprove jvppgen object array member instantiation 81/6881/3
Robert Varga [Thu, 25 May 2017 17:03:18 +0000 (19:03 +0200)]
Improve jvppgen object array member instantiation

Since all objects of the array have the same type, the object
constructor is a loop invariant. Move the lookup out of the loop,
making things faster.

Change-Id: I631c72b59c6c63eccd49ede41c6dc0541c325db9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Robert Varga <nite@hq.sk>
6 years agoLISP: do not try to delete paths when fwd entry is negative 84/6884/3
Filip Tehlar [Fri, 26 May 2017 10:10:53 +0000 (12:10 +0200)]
LISP: do not try to delete paths when fwd entry is negative

Change-Id: I50a0cbc7d8ecc94ad494df4720bb4199673e9793
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoFix JNI templates 79/6879/3
Robert Varga [Thu, 25 May 2017 14:18:28 +0000 (16:18 +0200)]
Fix JNI templates

The JNI templates around array and object handling are wrong in the
sense that they fail to delete local references for objects which
have been assigned to fields/arrays. Fix this by invoking
DeleteLocalRef.

Change-Id: I1c31d81f4235d821ccd51c96be7b176f64284928
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Signed-off-by: Robert Varga <nite@hq.sk>
6 years agoMPLS hash function improvements 82/6882/2
Neale Ranns [Thu, 25 May 2017 19:38:58 +0000 (12:38 -0700)]
MPLS hash function improvements

Change-Id: I28e98f445c01493562b6196a4f5b532a51f178af
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoMPLS interface output feature not explicitly enabled 74/6874/1
Neale Ranns [Mon, 22 May 2017 15:02:04 +0000 (11:02 -0400)]
MPLS interface output feature not explicitly enabled

Change-Id: I54cb5113ec8e37f5da321041d7925393cae31aa5
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoaf_packet: fix coverity error 16/6816/4
Ray Kinsella [Sat, 20 May 2017 12:42:30 +0000 (13:42 +0100)]
af_packet: fix coverity error

Fix coverity error associated with fd.

Change-Id: I0648aebaf356308bc03cc7217922479bfc4e22f7
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
6 years agoAdd p2p flag to IPsec tunnel interface hw class 68/6868/1
Matthew Smith [Wed, 24 May 2017 21:18:27 +0000 (16:18 -0500)]
Add p2p flag to IPsec tunnel interface hw class

Change-Id: I4ac05ee5974f5e7ab3685d325446a6e77048a948
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agoMPLS tunnels; path-list lock leak and debug CLI imrpovements 64/6864/2
Neale Ranns [Wed, 24 May 2017 17:53:43 +0000 (10:53 -0700)]
MPLS tunnels; path-list lock leak and debug CLI imrpovements

Change-Id: Ifb51b49d4dac1f07027b12398314a52b5cce343e
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoSNAT: fix IPFIX data src and dst port 56/6856/2
Matus Fabian [Wed, 24 May 2017 08:52:20 +0000 (01:52 -0700)]
SNAT: fix IPFIX data src and dst port

Change-Id: Ifa9582962710a3601fcccbbf388529043fc7f08a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoIPv6 Performance bugs 27/6827/3
Neale Ranns [Mon, 22 May 2017 13:20:20 +0000 (09:20 -0400)]
IPv6 Performance bugs

- inline the FIB lookup function; this requires access to the bihash, so for files that use more than one type this casues problems. those files that include ip6_fib.h unnecessarily have been updated
- better use of the feature arcs. ip6-lookup and interface-output are now sentinels (end-node-index in the cm speak) rather than enabled features.

Change-Id: I9d1375fee63f7dbb2d327da6124d8e60b63367ec
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoMissing VLIB node for IPv6 disposition from mcast MPLS LSP 63/6863/2
Neale Ranns [Wed, 24 May 2017 17:32:58 +0000 (10:32 -0700)]
Missing VLIB node for IPv6 disposition from mcast MPLS LSP

Change-Id: Ibc0e1910a4926fdfbf74571efb5fd5810bfa09da
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agovlib: use driver_override in sysfs for binding pci devs to vfio/uio drivers 46/6846/4
Damjan Marion [Tue, 23 May 2017 16:32:21 +0000 (18:32 +0200)]
vlib: use driver_override in sysfs for binding pci devs to vfio/uio drivers

Change-Id: I262e455792fd95d286ee3ebc0049e2352ae5899f
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoMPLS trace fixes 62/6862/2
Neale Ranns [Wed, 24 May 2017 16:37:49 +0000 (09:37 -0700)]
MPLS trace fixes

Change-Id: I141a14e1098e562bdb3c3ac576754f4f19dbcb04
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoLeak locks and tables in the Classifier 41/6841/2
Neale Ranns [Tue, 23 May 2017 13:10:33 +0000 (06:10 -0700)]
Leak locks and tables in the Classifier

Change-Id: Iae04c57bba87ab3665388eadd0805f75171636a5
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix tab-completion coverity issue 60/6860/2
Yoann Desmouceaux [Wed, 24 May 2017 13:51:48 +0000 (15:51 +0200)]
Fix tab-completion coverity issue

Change-Id: I051d015e7eee621dbef273b2c57449ea4c44b768
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
6 years agoTEST/L2BD:fix flush tests 52/6852/2
Eyal Bari [Wed, 24 May 2017 07:11:20 +0000 (10:11 +0300)]
TEST/L2BD:fix flush tests

flush tests will now enable learning on the bridge, and send broadcast packets
to add dynamic entries to the l2_fib. it will then disable learning, flush, and
will verify packets are not forwarded to flushed "hosts".

Change-Id: Ie6f123e59f6c89af511bdc5a02dd199420c424e9
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agoipfix: make IPFIX work for all skip_n_vectors values (VPP-204) 57/2457/12
Juraj Sloboda [Mon, 22 Aug 2016 14:02:11 +0000 (07:02 -0700)]
ipfix: make IPFIX work for all skip_n_vectors values (VPP-204)

Change-Id: Id2ffcd048b93d8efc8f825744cf2aeef5c436d53
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
6 years agoSimple script to 'git blame' on new Coverity issues 45/6845/2
Chris Luke [Tue, 23 May 2017 15:46:52 +0000 (11:46 -0400)]
Simple script to 'git blame' on new Coverity issues

- Pass an email in to stdin and the script produces output similar
to:

Hi,

Please find the latest report on new defect(s) introduced to fd.io VPP
found with Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)

** CID 167726:  Resource leaks  (RESOURCE_LEAK)
/src/vnet/devices/af_packet/device.c: 215 in
af_packet_interface_admin_up_down()

________________________________________________________________________________________________________
*** CID 167726:  Resource leaks  (RESOURCE_LEAK)
/src/vnet/devices/af_packet/device.c: 215 in
af_packet_interface_admin_up_down()
>>>     CID 167726:  Resource leaks  (RESOURCE_LEAK)
>>>     Handle variable "fd" going out of scope leaks the handle.
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
209)   af_packet_if_t *apif =
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
210)     pool_elt_at_index (apm->interfaces, hw->dev_instance);
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
211)   u32 hw_flags;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
212)   int rv, fd = socket (AF_UNIX, SOCK_DGRAM, 0);
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
213)   struct ifreq ifr;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
214)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
215)   /* if interface is a bridge ignore */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
216)   if (apif->host_if_index < 0)
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
217)     goto error; /* no error */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
218)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
219)   /* use host_if_index in case host name has changed */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
220)   ifr.ifr_ifindex = apif->host_if_index;
** CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
/src/vnet/devices/af_packet/device.c: 252 in
af_packet_interface_admin_up_down()

________________________________________________________________________________________________________
*** CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
/src/vnet/devices/af_packet/device.c: 252 in
af_packet_interface_admin_up_down()
>>>     CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "fd" is passed to a parameter that cannot be negative.
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
246)     }
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
247)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
248)   if ((rv = ioctl (fd, SIOCSIFFLAGS, &ifr)) < 0)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
249)     {
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
250)       clib_unix_warning ("af_packet_%s error: %d",
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
251)   apif->is_admin_up ? "up" : "down", rv);
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
252)       goto error;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
253)     }
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
254)
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
255)   vnet_hw_interface_set_flags (vnm, hw_if_index, hw_flags);
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
256)
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
257) error:

Change-Id: I9756c16ea24e7520704155ae1f6c5f132087e3bc
Signed-off-by: Chris Luke <chrisy@flirble.org>
6 years agoAdd TAB-based auto-completion to the CLI 55/6755/5
Yoann Desmouceaux [Thu, 18 May 2017 09:00:48 +0000 (11:00 +0200)]
Add TAB-based auto-completion to the CLI

Hitting tab:
 - in the middle of a uniquely defined subcommand will expand the subcommand
 - in the middle of a non-uniquely defined (or empty) subcommand will display
   all possible subcommands, and possibly expand to the lowest common prefix

Change-Id: Ib858eefdb0353cd2c3aad472799d15cd537455a0
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
6 years agoLabelled attached paths via an MPLS tunnel 37/6837/1
Neale Ranns [Tue, 23 May 2017 10:43:47 +0000 (03:43 -0700)]
Labelled attached paths via an MPLS tunnel

Change-Id: Ic86617c9c3217122043656ce2ea70bb106df5b2d
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoAdded support for Virtio-user interfaces by means of a new VNET_DPDK_PORT_TYPE. 44/6744/2
Mohammed Hawari [Wed, 17 May 2017 13:52:02 +0000 (15:52 +0200)]
Added support for Virtio-user interfaces by means of a new VNET_DPDK_PORT_TYPE.

Change-Id: I101e32cee8d9de51227b39ec2639c9fb44da1e6c
Signed-off-by: Mohammed Hawari <mhawari@cisco.com>
6 years agoARP/ND entries for the same address on different interfaces (VPP-848) 61/6761/8
Neale Ranns [Thu, 18 May 2017 10:03:22 +0000 (03:03 -0700)]
ARP/ND entries for the same address on different interfaces (VPP-848)

there are, intentionally, no validation checks in the ARP/ND code to prevent an ARP/ND entry from being installed for an address that is not local to the interface's sub-net. This is ok, since the adjacency/FIB code is designed to handle this case using the 'refinement' criteria - i.e. only installing a FIB entry for the address if the address 'refines' (i.e. is more specific than) the interface's sub-net.
However, the refinement criteria currently operates on the FIB entry's prefix (which is a /32, so on the address) and not on the next-hop in the path.
So, enter multiple ARP entries for the same address on different links, and this refinement criteria uses only the last added path, and so will remove the FIB entry should the ARP entries be added in the 'wrong' order.
This fix updates the refinement criteria to work on each path of the FIB entry. The entry is installed if one of the paths refines the covers and only paths refining the cover contribute forwarding.
Per-path refinement checks are stored in path-extensions. The patch is rather large as path-extension, which were previously used only for out-going MPLS labels, have been generalized.

Change-Id: I00be359148cb948c32c52109e832a70537a7920a
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agovhost: migrate to use device infra for worker thread assignment, rx-mode. 40/6540/6
Steven [Mon, 1 May 2017 21:03:02 +0000 (14:03 -0700)]
vhost: migrate to use device infra for worker thread assignment, rx-mode.
and add adaptive mode support to receive queue

- Migrate vhost to use device infra which does the interface/queue to worker
thread assignment.

- Retire vhost thread CLI and corresponding code which assigns interface/queue
to worker thread. set interface placement should be used instead to customize
the interface/queue to worker thread assignment.

- Retire vhost interrupt/polling option when creating vhost-user interface.
Instead, set interface rx-mode should be used.

- Add code in vnet_device_input_unassign_thread to change the node state
to interrupt if the last polling interface has left the worker thread for the
device of the corresponding interface/queue.

- Add adaptive mode support. The node state is set to interrupt initially.
When the scheduler detects a burst of traffic, it switches the input node to
polling. Then we inform the device that we don't need interrupt notification.
When the traffic subsides, the scheduler switches the input node back to
interrupt. Then we immediately tell the driver that we want interrupt
notification again.

- Remove some duplicate code in vlib/main.c

Change-Id: Id19bb1b9e50e6521c6464f470f5825c26924d3a8
Signed-off-by: Steven <sluong@cisco.com>
6 years agodpdk: make dpdk global debug level configurable 25/6825/3
Damjan Marion [Mon, 22 May 2017 13:32:04 +0000 (15:32 +0200)]
dpdk: make dpdk global debug level configurable

Adds startup.conf knob:

dpdk {
log-level debug
}

Change-Id: I80dfbc00559528d7b0970958fba9f08d97aa7118
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoLISP-GPE: add dump call for VNIs in use 60/6760/7
Filip Tehlar [Thu, 18 May 2017 12:23:32 +0000 (14:23 +0200)]
LISP-GPE: add dump call for VNIs in use

Change-Id: I394af7c1ac9fd0177ff5d298e4008245df54b436
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoDisable "make test" for CentOS 28/6828/1
Damjan Marion [Mon, 22 May 2017 14:56:54 +0000 (16:56 +0200)]
Disable "make test" for CentOS

Due to issues with python on centos we cannot reliably
execute "make test". To be removed after problem is solved.

Change-Id: I92d2b647c72a8ba58cf8a9d4b443357e61ef403f
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoSkip L2 FIB flush tests 21/6821/1
Neale Ranns [Mon, 22 May 2017 09:46:01 +0000 (02:46 -0700)]
Skip L2 FIB flush tests

These tests attempt to flush static entries from a bridge-domain that has no aging configured. for both reasons it will fail.
The fact thtat they occationally pass is due to the fact that the assert_nothing_cpatured does not actually capture packets, so it misses the fact that there are some.

Change-Id: Ie5c98a42944e29a3d482156f7e9246511380372f
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix GTP-U Coverity issues 78/6778/4
Hongjun Ni [Fri, 19 May 2017 15:52:34 +0000 (23:52 +0800)]
Fix GTP-U Coverity issues

Change-Id: I982e0dfb96c371672aa636aa7e40f06a84e2bb69
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoAPI: Cleaning up message naming that does not follow the conventions 62/6662/8
Ole Troan [Fri, 12 May 2017 09:55:35 +0000 (11:55 +0200)]
API: Cleaning up message naming that does not follow the conventions

is_address_reachable - Disabled so deleted
cli_request - Renamed to cli
vnet_summary_stats_reply - Renamed to vnet_get_summary_stats_reply
bridge_domain_sw_if_details - Deleted, incorporated in main message
l2_fib_table_entry - Renamed to l2_fib_table_details

Change-Id: I93b7e8769a3ba7b4989b3c270270f575f386464f
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoImprove session debugging 09/6809/5
Florin Coras [Fri, 19 May 2017 16:49:19 +0000 (09:49 -0700)]
Improve session debugging

Also improves builtin client code.

Change-Id: I8bca1aa632028f95c373726efb0abf2ee0eff414
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agovhost: buffers leak and interface disable upon vring descriptor out of mmap 75/6775/2
Steven [Fri, 19 May 2017 04:22:00 +0000 (21:22 -0700)]
vhost: buffers leak and interface disable upon vring descriptor out of mmap

When processing a vring descriptor which is outside of mmap, we disable
the interface and spit a message to shut/no shut the interface. This is
not practical as application using vhost cannot constantly checking the
logs and do the recovery. The proposed fix is to log an error, like
other errors that we encounter.

The other bug is buffer leak in the function rewind. At the end of the
while loop when b_current != b_head, we still have to give back 1 more
buffer or add 1 to rx_buffers_len.

Change-Id: I68c0b24f070e644cd8878f42272a7b518f14393f
Signed-off-by: Steven <sluong@cisco.com>
6 years agoRestore possibility to build vpp in debug mode for rpms 74/6774/3
Igor Mikhailov (imichail) [Fri, 19 May 2017 02:46:17 +0000 (19:46 -0700)]
Restore possibility to build vpp in debug mode for rpms

Change-Id: I3935b3f312852e0f032c48726651561fb8616273
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
6 years agoVPP-849: improve vnet classifier memory allocator performance 72/6772/3
Dave Barach [Thu, 18 May 2017 23:16:47 +0000 (19:16 -0400)]
VPP-849: improve vnet classifier memory allocator performance

Port the linear-scan bucket fix from bihash_template.c.

Change-Id: Id8b2d1fe402401f098270ce6121c2f44f2f24c49
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoRemove specific versions of some packages. 08/6808/2
Thomas F Herbert [Wed, 17 May 2017 23:00:07 +0000 (19:00 -0400)]
Remove specific versions of some packages.
Add lcov for rhel.
Correct fedora Development tools group and rpm-build.

Change-Id: I0a19e239e6bc4f34f3aacfbb7e08e2abbdc061ed
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
6 years agoaf_packet: set mac address support 58/6758/4
Ray Kinsella [Thu, 18 May 2017 10:56:28 +0000 (11:56 +0100)]
af_packet: set mac address support

Added support to the interfaces mac address.
Resolved an fd leak when the interface is a bridge.

Change-Id: I6608c51b11a50bd0ae4aabe0dc5788c4301b5a1e
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
6 years agomfib CLI bugs (VPP-852) 83/6783/2
Neale Ranns [Fri, 19 May 2017 09:54:32 +0000 (02:54 -0700)]
mfib CLI bugs (VPP-852)

Change-Id: I1b71010e20742eee02693d672e24c85897e37759
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoEnforce Bridge Domain ID range to match 24-bit VNI range 73/6773/2
John Lo [Fri, 19 May 2017 02:26:47 +0000 (22:26 -0400)]
Enforce Bridge Domain ID range to match 24-bit VNI range

Enforce bridge domain ID range to allow a maximum value of 16M
which matches the range of 24-bit VNI used for virtual overlay
network ID.
Fix "show bridge-domain" output to allow full 16M BD ID range
to be displayed using 8-digit spaces.

Change-Id: I80d9c76ea7c001bcccd3c19df1f3e55d2970f01c
Signed-off-by: John Lo <loj@cisco.com>
6 years agoAdd indent to DEB_DEPENDS missing in vagrant box. 51/6751/3
Dave Wallace [Thu, 18 May 2017 05:03:15 +0000 (01:03 -0400)]
Add indent to DEB_DEPENDS missing in vagrant box.

Change-Id: Icb9412ed09095443c20ae1fe2b71b646bbe580b0
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoRemove nop code from session_manager_add_first_segment(). 33/6733/2
Dave Wallace [Wed, 17 May 2017 02:05:57 +0000 (22:05 -0400)]
Remove nop code from session_manager_add_first_segment().

Change-Id: I071e8d78ed9312ebf8e572bf01ece447ce1a1835
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoImprove sack bytes accounting and testing 48/6748/6
Florin Coras [Wed, 17 May 2017 21:21:51 +0000 (14:21 -0700)]
Improve sack bytes accounting and testing

Change-Id: Iabeda0d0615b0f6fe20dd00611cb4c594d90b7eb
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoacl-plugin: reject the too-short variable-length messages from clients (VPP-839) 49/6749/2
Andrew Yourtchenko [Wed, 17 May 2017 21:43:59 +0000 (23:43 +0200)]
acl-plugin: reject the too-short variable-length messages from clients (VPP-839)

Prior to commit bfd9227e6da567e0e19e026afe94cd4c0b65f725, there was
no clean way to check the lower-level message length as supplied
by the client, so there was no option but to trust that the client
does the right thing and allocates memory correctly.
The absence of checks makes it hard for a misbehaving client
to spot the problem - because everything "appears" to work
correctly for the specific erroneous message exchange.
This commit ensures the message received is at least
as big as we expect, and complains loudly if it is not.

Change-Id: I806eaac7c7f1ab3c64cb2bfa6939ce27da9a2b44
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoVPP-847: improve bihash template memory allocator performance 50/6750/2
Dave Barach [Thu, 18 May 2017 00:20:50 +0000 (20:20 -0400)]
VPP-847: improve bihash template memory allocator performance

Particularly in the DCLIB_VEC64=1 case, using vectors vs. raw
clib_mem_alloc'ed memory causes abysmal memory allocator performance.

Change-Id: I07a4dec0cd69ca357445385e2671cdf23c59b95d
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoUpdate CSIT tests 170504 -> 170518 62/6762/1
Jan Gelety [Thu, 18 May 2017 12:55:14 +0000 (14:55 +0200)]
Update CSIT tests 170504 -> 170518

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

Change-Id: I916427584df514088f2d8cbcc3483c397ca4d6f5
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agodpdk: disable 16-bit descriptors for X710/XL710 45/6745/2
Damjan Marion [Wed, 17 May 2017 14:07:32 +0000 (16:07 +0200)]
dpdk: disable 16-bit descriptors for X710/XL710

This fixes issue with rx packet drops on VF.

Change-Id: I8c1a35213013f8856b71e7204496f463319cbe28
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoioam: configuration for SRv6 localsid (VPP-693) 48/6348/3
shwethab [Tue, 11 Apr 2017 06:21:44 +0000 (06:21 +0000)]
ioam: configuration for SRv6 localsid (VPP-693)

This add debug cli to accept SRv6 localsid that will be
used to attract the return traffic for M-Anycast flows.

Change-Id: I8f8dd115c36498141ae4cb143c6584141950b1d3
Signed-off-by: shwethab <shwetha.bhandari@gmail.com>
(cherry picked from commit 00c14a94c34fac89e6e589c4a7aad20d8dd183dc)

6 years agoAdd vl_msg_api_get_message_length[_inline] 68/6668/10
Dave Barach [Fri, 12 May 2017 15:59:25 +0000 (11:59 -0400)]
Add vl_msg_api_get_message_length[_inline]

Change-Id: I6d86cf7966d51ec7a507bbb59c586adbfb45be05
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agodpdk: Do not check and set rte_mbuf refcnt if dpdk ver >= 17.05 42/6742/2
Damjan Marion [Wed, 17 May 2017 11:58:07 +0000 (13:58 +0200)]
dpdk: Do not check and set rte_mbuf refcnt if dpdk ver >= 17.05

According to DPDK release notes this is done by DPDK.
Also, it fixes assers in debug image.

Change-Id: Ida1d25f8cd0c2232110e44eabd7dc3e512336758
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoVPP-719: Accept ARP replies from VRRP hw addr 34/6734/3
Matthew Smith [Wed, 17 May 2017 02:35:56 +0000 (21:35 -0500)]
VPP-719: Accept ARP replies from VRRP hw addr

Check whether an ARP src hw addr starts with 00:00:5e:00:01
before rejecting due to a mismatch between ARP src hw addr
and ethernet frame src addr.

Change-Id: Ia3ecd5d6dba34876aca8d90bc622a0a1397e48fb
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agovhost: bad packet assembled from descriptor chaining 35/6735/2
Steven [Wed, 17 May 2017 04:26:13 +0000 (21:26 -0700)]
vhost: bad packet assembled from descriptor chaining

When the descriptor is chained via multiple parts, vhost is supposed
to reassemble the different parts to form a packet prior to passing
the packet to the next input node. However, bad packet was seen, having
bad ethertype, source, and destination mac addresses.

The problem was due to the destination pointer not being incremented as
each chain is processed. THe result was the first chain is copied to the
beginning of the buffer, the next chain is copied, then the last chain
is also copied to the beginning of the buffer. As a result, the ethertype,
source and destination mac, etc, are being overwritten by the very last
chain of the descriptor.

Change-Id: I78f9a91de68c85574047912576dcc311d7597e21
Signed-off-by: Steven <sluong@cisco.com>
6 years agoUse counters on ipsec tunnel interfaces 30/6730/4
Matthew Smith [Tue, 16 May 2017 16:51:18 +0000 (11:51 -0500)]
Use counters on ipsec tunnel interfaces

Increment byte & packet counters when packets are sent or received on an
IPsec tunnel interface. Set counters to zero when the interface is deleted.

Change-Id: Ie9584aa82778875dd4d0c931005f7720b4d5c76d
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agoAdd ethernet type to support NSH over ethernet 32/6732/3
Hongjun Ni [Wed, 17 May 2017 10:09:38 +0000 (18:09 +0800)]
Add ethernet type to support NSH over ethernet

Change-Id: I876599d6183fab989949e8ccad5c0a3ef81991be
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoVPP-846: tcp perf / scale / hardening 31/6731/2
Dave Barach [Tue, 16 May 2017 21:41:34 +0000 (17:41 -0400)]
VPP-846: tcp perf / scale / hardening

Fix builtin server event queue handling

Change-Id: I21b49c37188746cadb2fd9423291c5dc1335798c
Signed-off-by: Dave Barach <dbarach@cisco.com>
6 years agoARP learning fixes (VPP-843) 28/6728/3
Neale Ranns [Tue, 16 May 2017 15:46:45 +0000 (08:46 -0700)]
ARP learning fixes (VPP-843)

learn ARP peers if, 1) it's a reply to a local address, 2) we are sending a response to a request.
send proxy ARP responses only in the interface the request was sent.

Change-Id: I22b949c65122824233076492b7dd537daca07bc2
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFixes to tcp active opens and reception 13/6713/3
Dave Barach [Mon, 15 May 2017 20:27:05 +0000 (16:27 -0400)]
Fixes to tcp active opens and reception

- Properly initialize connection index
- Add new session to main hash table
- Drop packets that are completely in the past with respect to the rcv
  wnd (e.g., retransmits due to premature timer pops)

Change-Id: Ic0873018ff0a4c59e0913863dc7f0c0f822d5c34
Signed-off-by: Dave Barach <dbarach@cisco.com>
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoUnneeded linking 38/6638/9
Marco Varlese [Wed, 10 May 2017 15:02:58 +0000 (17:02 +0200)]
Unneeded linking

Removed the linking which does not appear to be necessary when using in repo
dpdk and which causes a build failure when using the shared-dpdk mode.

Change-Id: I6bad2bd11d6db40fbd2def78f98c6beba66ff416
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoL2FIB: add flush test 19/6719/2
Eyal Bari [Mon, 15 May 2017 07:13:15 +0000 (10:13 +0300)]
L2FIB: add flush test

add tests for flush int/bd/all

Change-Id: Ia589ec5925b9c8acbb2fc16dafbf4842aa1a6eff
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agoVPP-845: add configurable elog post-mortem dump 22/6722/1
Dave Barach [Tue, 16 May 2017 13:08:14 +0000 (09:08 -0400)]
VPP-845: add configurable elog post-mortem dump

Off by default. Enable via cmdline "... vlib { elog-post-mortem-dump }
..."

Change-Id: I2056b9de9b37475f2bfeeb5404da838f1b42645a
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoping command does not work when there is woker thread (VPP-844) 88/6688/4
flyingeagle23 [Mon, 15 May 2017 08:57:20 +0000 (16:57 +0800)]
ping command does not work when there is woker thread (VPP-844)

Change-Id: Ic896b237a7d141243e1b7d6d4fbb2a120f44363e
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
6 years agoFix regression of setting device to admin-down state 14/6714/2
John Lo [Mon, 15 May 2017 23:21:15 +0000 (19:21 -0400)]
Fix regression of setting device to admin-down state

Change-Id: I0ffa572839405efe1170d6ddb073e53e9af02db7
Signed-off-by: John Lo <loj@cisco.com>
6 years ago1704: Release notes. Cherry pick from 6288. 89/6289/2
Ole Troan [Thu, 20 Apr 2017 06:57:47 +0000 (08:57 +0200)]
1704: Release notes. Cherry pick from 6288.

Change-Id: Ia6146106a708d5ab247225dfe49eb6ef686ae3d3
Signed-off-by: Ole Troan <ot@cisco.com>