vpp.git
5 years agoGBP: use sclass in the DP for policy 28/17928/7
Neale Ranns [Thu, 28 Feb 2019 11:11:39 +0000 (11:11 +0000)]
GBP: use sclass in the DP for policy

Change-Id: I154e18f22ec7708127b8ade98e80546ab1dcd05b
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoTests: Example duplicate code refactoring. 69/17969/3
Paul Vinciguerra [Fri, 1 Mar 2019 16:46:29 +0000 (08:46 -0800)]
Tests: Example duplicate code refactoring.

Refactor of duplicate methods in test/test_reassembly.py.

Change-Id: I46f880da6a0ced2acae1fa33c6892d0148b26139
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agointerface: migrate old MULTIARCH macros to VLIB_NODE_FN 02/18002/7
Filip Tehlar [Mon, 4 Mar 2019 11:33:32 +0000 (03:33 -0800)]
interface: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Ib92e338d0becbfbc38e6b9f34f262df76b63eead
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agocop: migrate old MULTIARCH macros to VLIB_NODE_FN 12/18012/2
Filip Tehlar [Tue, 5 Mar 2019 09:22:04 +0000 (01:22 -0800)]
cop: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Ic0c9c50376ceb0ff4e2d5e52e13b6506e68adf4b
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agovxlan*: migrate old MULTIARCH macros to VLIB_NODE_FN 17/18017/2
Filip Tehlar [Tue, 5 Mar 2019 11:01:43 +0000 (03:01 -0800)]
vxlan*: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Ide23bb3d82024118214902850821a8184fe65dfc
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agovmbus: fix bug that breaks multiple netvsc vdevs 06/18006/2
Matthew Smith [Mon, 4 Mar 2019 15:43:45 +0000 (09:43 -0600)]
vmbus: fix bug that breaks multiple netvsc vdevs

VPP supports two DPDK drivers for managing netvsc devices on
Azure/Hyper-V. The new netvsc PMD looks a lot like other PCI-based
PMDs but it requires recently added kernel support (>=4.17). The
older vdev_netvsc is an abstraction that manages the mlx4 VF
and tap device underlying the netvsc interface using the failsafe PMD.
Distros with older kernels (e.g. RHEL/CentOS 7.x) have to use vdev_netvsc.

At startup, netvsc devices are processed and an attempt is made to
initialize them for management by the netvsc PMD. If that fails, then
vlib_vmbus_bind_to_uio() returns early and the device can be initialized
for management by vdev_netvsc.

The operation that is supposed to fail if the netvsc PMD cannot be used
is registration of the netvsc device type ID with the uio_hv_generic
driver. This operation is attempted exactly once so it does not fail
for netvsc devices processed after the first one and they end up in a
state where they cannot be initialized for use by vdev_netvsc.

Only unset uio_new_id_needed if uio_hv_generic registration succeeds.

Change-Id: I6be925d422b87ed24e0f4611304cc3a6b07a34fd
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
5 years agospan: migrate old MULTIARCH macros to VLIB_NODE_FN 19/18019/2
Filip Tehlar [Tue, 5 Mar 2019 11:46:40 +0000 (03:46 -0800)]
span: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I5c671d8af8d528eae625001d4755db8ef61f00b2
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agogeneve: migrate old MULTIARCH macros to VLIB_NODE_FN 11/18011/2
Filip Tehlar [Tue, 5 Mar 2019 08:36:04 +0000 (00:36 -0800)]
geneve: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Ie7b201b2742e0051b249acc011f609905bc178c8
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoipip: migrate old MULTIARCH macros to VLIB_NODE_FN 24/18024/2
Filip Tehlar [Tue, 5 Mar 2019 12:50:23 +0000 (04:50 -0800)]
ipip: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I9c05225b71b60dc2b419a96daeb71d89757aef98
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agosctp: migrate old MULTIARCH macros to VLIB_NODE_FN 32/18032/2
Filip Tehlar [Tue, 5 Mar 2019 14:50:19 +0000 (06:50 -0800)]
sctp: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I7248a94977fe11bbe58db53d7ca8ae8c582e7305
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agorpm: set exec bits on plugins 31/18031/2
Matthew Smith [Tue, 5 Mar 2019 15:28:48 +0000 (09:28 -0600)]
rpm: set exec bits on plugins

Install plugin shared libraries with permissions set to 0755
instead of 0644 during RPM builds.

When building with rpmbuild, if a compiled file is not executable,
it's source files and symbols are not included in the vpp-debuginfo RPM.
This makes debugging problems with DPDK (and other plugins probably)
difficult unless you are running on the machine where the build
was generated.

Change-Id: I9cc92af855a66366ec3b81a87b82bfd9994bc180
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
5 years agoip: coverity woes 43/18043/2
Steven Luong [Tue, 5 Mar 2019 23:42:21 +0000 (15:42 -0800)]
ip: coverity woes

coverity complains about logically dead code for the statement if (error) because
error was assigned to 0 prior to the check. I believe error was meant to get the
return status of the call vnet_punt_socket_add.

Change-Id: I794167493f63cb898d3618c2c28817823f46b765
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agovlib: coverity woes 42/18042/2
Steven Luong [Tue, 5 Mar 2019 23:29:22 +0000 (15:29 -0800)]
vlib: coverity woes

Remove logically dead code to keep coverity from complaining

Change-Id: If27d6684d19ab3c8886732a67922c86e5f0b3554
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agoIPSEC: tunnel encap/decap dual loop speedups 99/17999/6
Neale Ranns [Mon, 4 Mar 2019 14:13:14 +0000 (14:13 +0000)]
IPSEC: tunnel encap/decap dual loop speedups

baseline:
 ipsec0-tx 1.27e1
 ipsec-if-input 8.19e1

this change:
 ipsec0-tx 6.17e0
 ipsec-if-input 6.39e1

this also fixes the double tunnel TX counts by removing the duplicate
from the TX node.

Change-Id: Ie4608acda08dc653b6fb9e2c85185d83625efd40
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoGBP: format EPG retention policy 48/18048/3
Neale Ranns [Wed, 6 Mar 2019 07:32:46 +0000 (07:32 +0000)]
GBP: format EPG retention policy

Change-Id: I17826cfa9a27dc241e07988bf0bbaf9eca9ae525
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoGBP: learn from ARP and L2 packets 40/18040/3
Neale Ranns [Mon, 4 Mar 2019 22:08:11 +0000 (14:08 -0800)]
GBP: learn from ARP and L2 packets

Change-Id: I8af7bca566ec7c9bd2b72529d49e04c6e649b44a
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoVOM: GBP show allowed ethertypes in contracts 49/18049/1
Neale Ranns [Wed, 6 Mar 2019 07:59:15 +0000 (23:59 -0800)]
VOM: GBP show allowed ethertypes in contracts

Change-Id: I8314f51d519966b1d9aef96318f6836ace944c9a
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agopunt.c -- coverity woes 44/18044/2
Steven Luong [Tue, 5 Mar 2019 23:57:52 +0000 (15:57 -0800)]
punt.c -- coverity woes

Coverity complains about identical code is executed for if and else branch.
Clean them up by removing the useless code.

Change-Id: Ie53f1dff055440ab2c3c3d2ea91edb1e50204b38
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agoipsec: cleanup, remove unnecessary code, 45/18045/1
Kingwel Xie [Wed, 6 Mar 2019 03:56:17 +0000 (22:56 -0500)]
ipsec: cleanup, remove unnecessary code,

ipsec_proto_main moved to ipsec.c
fix missing '\0' of backend name

Change-Id: I90760b3045973a46792c2f098d9b0b1b3d209ad0
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
5 years agoVXLAN-GBP: decap checks src,dst&VNI for unicast, then checks only dst&VNI for multicast 29/18029/3
Neale Ranns [Tue, 5 Mar 2019 14:11:57 +0000 (06:11 -0800)]
VXLAN-GBP: decap checks src,dst&VNI for unicast, then checks only dst&VNI for multicast

Change-Id: I17caf3c5a2060de497c44655b66a15a2007f716b
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoGBP: format include EPG index 33/18033/1
Neale Ranns [Tue, 5 Mar 2019 16:50:18 +0000 (08:50 -0800)]
GBP: format include EPG index

Change-Id: I1789a4ea44cfc6a11ad8750074ffcf14c4ab8712
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoTest: vpp_papi_provider. __getattr__ 21/18021/3
Paul Vinciguerra [Tue, 5 Mar 2019 12:30:04 +0000 (04:30 -0800)]
Test: vpp_papi_provider. __getattr__

Replace custom __getattr__ with custom __getattribute__.

Change-Id: Ib96176abc07eefedba305ed874621001a810eb0d
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agobier: migrate old MULTIARCH macros to VLIB_NODE_FN 18/18018/2
Filip Tehlar [Tue, 5 Mar 2019 11:34:52 +0000 (03:34 -0800)]
bier: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I561591c7d31ec66dfa0a1d7ef66bcf1d0c70f07c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoqos: migrate old MULTIARCH macros to VLIB_NODE_FN 01/18001/3
Filip Tehlar [Mon, 4 Mar 2019 16:14:07 +0000 (08:14 -0800)]
qos: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I4dc77979594de0b6a21644ea0a982085c6386010
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agompls: migrate old MULTIARCH macros to VLIB_NODE_FN 22/18022/2
Filip Tehlar [Tue, 5 Mar 2019 12:32:11 +0000 (04:32 -0800)]
mpls: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I8c5f7cda655e3343d50a96d714796ea4255588b6
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoGBP: per-group EP retention policy 23/18023/2
Neale Ranns [Tue, 5 Mar 2019 12:22:08 +0000 (04:22 -0800)]
GBP: per-group EP retention policy

Change-Id: I3ed4e2e92f74f15b07fcd3e7fbc3fa8718d5249d
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agogre: migrate old MULTIARCH macros to VLIB_NODE_FN 04/18004/2
Filip Tehlar [Mon, 4 Mar 2019 17:21:59 +0000 (09:21 -0800)]
gre: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I0f6b9f306f2323216ba64b694e8fdfa116e6cc9c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoL2: ARP term - learn but don't send response to GARPs 08/18008/2
Neale Ranns [Mon, 4 Mar 2019 22:11:25 +0000 (14:11 -0800)]
L2: ARP term - learn but don't send response to GARPs

Change-Id: I766767d27f37493dc9f2bde1297c1b620cd1e321
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agotest framework: Fix wrapper functions to match API message names. 10/18010/1
Ole Troan [Mon, 4 Mar 2019 22:55:43 +0000 (23:55 +0100)]
test framework: Fix wrapper functions to match API message names.

In preparation to remove the wrappers in vpp_papi_provider.py, ensure
names used in tests match the actual API message names.

Change-Id: I230ca4eb75aa727ff68d702e085a2edbbc6b6d19
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agoIPSEC: script to bounce IPSEC traffic through a pipe to test encrypt and decrpyt 97/17997/5
Neale Ranns [Mon, 4 Mar 2019 13:44:42 +0000 (13:44 +0000)]
IPSEC: script to bounce IPSEC traffic through a pipe to test encrypt and decrpyt

Change-Id: I262a9412951b5df616920a8fad16c61eae96d0cc
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoFix 2x overconsumption of debug cli input bugs 98/17998/2
Dave Barach [Mon, 4 Mar 2019 13:52:54 +0000 (08:52 -0500)]
Fix 2x overconsumption of debug cli input bugs

Change-Id: I658489dc9cf437ff43d9c69a896c9fe4e01ec38e
Signed-off-by: Dave Barach <dave@barachs.net>
5 years agotest framework: add factory function and default parameters 46/17946/6
Ole Troan [Thu, 28 Feb 2019 19:20:47 +0000 (20:20 +0100)]
test framework: add factory function and default parameters

This is the first step to be able to remove all the API message
wrappers in vpp_papi_provider.py. This allows to remove all
functions that do not override parameters (different from zero),
and a separate dictionary for messages requiring different defaults.

The general requirement is that all new tests should use named
arguments directly. Not positional arguments through the wrapper.

Note when removing functions, the calls in vpp_papi_provider
wrappers do not necessarily follow message order.

Change-Id: If64916c07f8622c138db3a9d7c4a98b93a058e68
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agolibmemif: Connection request APIs 93/17993/2
Jakub Grajciar [Mon, 4 Mar 2019 11:42:19 +0000 (12:42 +0100)]
libmemif: Connection request APIs

Add APIs that allow changing reconnect timer and request connection.
First connection request is automatically sent once slave interface is created.

Change-Id: Ie3558b7b94a780b046755f7f0ac6c3dcf07633e4
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
5 years agodevices: migrate old MULTIARCH macros to VLIB_NODE_FN 95/17995/3
Filip Tehlar [Mon, 4 Mar 2019 11:03:13 +0000 (03:03 -0800)]
devices: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I911fb3f1c6351b37580c5dbde6939a549431a92d
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoGBP: return appropriate error code if tranport mode subnet has no interface 96/17996/2
Neale Ranns [Mon, 4 Mar 2019 12:21:28 +0000 (04:21 -0800)]
GBP: return appropriate error code if tranport mode subnet has no interface

Change-Id: Ic230b332a01c36454c11d0b6515ec256bd0fd5c6
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoGBP: Global config for EP retention 94/17994/2
Neale Ranns [Mon, 4 Mar 2019 10:20:04 +0000 (02:20 -0800)]
GBP: Global config for EP retention

Change-Id: I9508c67b494b5edecb2bc393a53e7d47c2574978
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoadj: migrate old MULTIARCH macros to VLIB_NODE_FN 92/17992/3
Filip Tehlar [Mon, 4 Mar 2019 10:52:54 +0000 (02:52 -0800)]
adj: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Iac92a6d15e1feef4d97b8db09fc60901dc9f7880
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agobuffers: support cases where numa node memory is not available 50/17950/4
Damjan Marion [Thu, 28 Feb 2019 22:16:11 +0000 (23:16 +0100)]
buffers: support cases where numa node memory is not available

Change-Id: I550ef893e41d86310d4e5af16d6100b8e557b68a
Signed-off-by: Damjan Marion <damarion@cisco.com>
5 years agoHash and handoff reassembly fragments 84/17984/2
Vijayabhaskar Katamreddy [Sat, 2 Mar 2019 03:57:06 +0000 (19:57 -0800)]
Hash and handoff reassembly fragments

in the following two scenarios
    1. When fragments arrive in multiple interfaces and endup in different threads
    2. When fragments arrive in same interafce but in different queues due to interface RSS doesnt have the ability to place fragments in the right queues

Change-Id: I9f9a8a4085692055ef6823d634c8e19ff3daea05
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
5 years agostats: fix crash on early init 32/17932/6
Filip Tehlar [Thu, 28 Feb 2019 12:36:10 +0000 (04:36 -0800)]
stats: fix crash on early init

Change-Id: I911b5070f544c3556ad1ca584d42689c00cc38f3
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoGBP: fix and print GBP BD flags 91/17991/2
Neale Ranns [Mon, 4 Mar 2019 09:14:24 +0000 (01:14 -0800)]
GBP: fix and print GBP BD flags

Change-Id: If3fe2752c9339049123ff4674e3a29449b520374
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agosession: remove svm_segment_index from session struct 86/17986/3
Florin Coras [Sun, 3 Mar 2019 22:56:05 +0000 (14:56 -0800)]
session: remove svm_segment_index from session struct

Change-Id: I42ef9ee38f93600a0d6f2699b1b2a0a201fcec9c
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosvm: avoid heap push/pop on fifo free 87/17987/2
Florin Coras [Mon, 4 Mar 2019 00:08:51 +0000 (16:08 -0800)]
svm: avoid heap push/pop on fifo free

Change-Id: Id6a7698da0c7b43313554d736c4df60b820beb80
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosession: eventfd for mq only for bapi socket transport 88/17988/2
Florin Coras [Mon, 4 Mar 2019 00:46:52 +0000 (16:46 -0800)]
session: eventfd for mq only for bapi socket transport

Change-Id: I9badb376aa31fc2c7c452a16cc4dc997a8a66d97
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agovcl: remove unused fields and structures 89/17989/3
Florin Coras [Mon, 4 Mar 2019 01:56:48 +0000 (17:56 -0800)]
vcl: remove unused fields and structures

Change-Id: I49a95c4e2eb17e5a6ab514dde2505294a4c01353
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agoGBP: fix UT after multi-arch change 90/17990/1
Neale Ranns [Mon, 4 Mar 2019 09:37:43 +0000 (01:37 -0800)]
GBP: fix UT after multi-arch change

Change-Id: I09c400d71b3c973341fd79fe9b6709592d96822c
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agogbp: migrate old MULTIARCH macros to VLIB_NODE_FN 65/17965/4
Filip Tehlar [Thu, 28 Feb 2019 10:51:47 +0000 (02:51 -0800)]
gbp: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I3b10caa447b796172f787df8fcbb92f2b4dd2803
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agosession: remove deprecated binary apis 82/17982/8
Florin Coras [Sat, 2 Mar 2019 18:47:47 +0000 (10:47 -0800)]
session: remove deprecated binary apis

Change-Id: Ia1a628498fa3b639b6b1508f65c6aea1806f73ec
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosession: notify app of segment removal 77/17977/3
Florin Coras [Sat, 2 Mar 2019 01:12:02 +0000 (17:12 -0800)]
session: notify app of segment removal

Change-Id: I3774f7ffd14be73e9bbbf4cdd6d3b22f24fee730
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosession: fix unlisten with invalid handles 78/17978/4
Florin Coras [Sat, 2 Mar 2019 03:26:31 +0000 (19:26 -0800)]
session: fix unlisten with invalid handles

Change-Id: I6fbfa06e3df9988254561bf1a770084028117005
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosession: cleanup/rename functions 75/17975/4
Florin Coras [Fri, 1 Mar 2019 21:00:58 +0000 (13:00 -0800)]
session: cleanup/rename functions

- remove unused functions
- rename old "stream" functions

Change-Id: Icbb03daa9f9f1c58b5be5c38aa8a9cbcf9159b47
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agosession: cleanup session event types 74/17974/3
Florin Coras [Fri, 1 Mar 2019 20:41:21 +0000 (12:41 -0800)]
session: cleanup session event types

Change-Id: I87bdf705341dd760f0be907a663aa64140977d39
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agotcp: allow future acks if in window 48/17948/5
Florin Coras [Thu, 28 Feb 2019 20:49:45 +0000 (12:49 -0800)]
tcp: allow future acks if in window

Change-Id: I84ad1830b8db43f6031cf2876cd94f6a71216b83
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agoTests: Trivial fox use of 'is'. 73/17973/2
Paul Vinciguerra [Fri, 1 Mar 2019 18:35:55 +0000 (10:35 -0800)]
Tests: Trivial fox use of 'is'.

'is' evaluates diffently depending on the value.

  >>> x=-10
  >>> x is -10
  False

  >>> x=10
  >>> x is 10
  True
  >>>

Change-Id: If72ec7c47e3e95180a4d08a773984253c80154d6
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoIPSEC: tunnel-input; don't load the HW interface struct 35/17935/3
Neale Ranns [Thu, 28 Feb 2019 12:03:58 +0000 (12:03 +0000)]
IPSEC: tunnel-input; don't load the HW interface struct

also fix the stats to include all the data in the tunnel.
And don't load the SA.

Change-Id: I7cd2e8d879f19683175fd0de78a606a2836e6da2
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agonsh: fix load failure 14/17914/3
Filip Tehlar [Wed, 27 Feb 2019 16:44:26 +0000 (08:44 -0800)]
nsh: fix load failure

Change-Id: I687ddba41bc80e2fbb39ebc30449ced7254e45f8
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agogtpu: migrate old MULTIARCH macros to VLIB_NODE_FN 68/17868/4
Filip Tehlar [Tue, 26 Feb 2019 12:53:38 +0000 (04:53 -0800)]
gtpu: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Id6e82910f8d991e355d3f26222eea4ac3ab091b1
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agodpdk: update mlx[45] linking options 49/17949/2
Matthew Smith [Thu, 28 Feb 2019 16:33:12 +0000 (10:33 -0600)]
dpdk: update mlx[45] linking options

Upstream DPDK changed the names of the options to use dlopen()
with libibverbs and libmlx[45] from RTE_LIBRTE_MLX[45]_DLOPEN_DEPS
to RTE_IBVERBS_LINK_DLOPEN (handles both mlx4 and mlx5).

VPP's build option to enable this configuration when building DPDK
no longer worked starting when VPP moved to DPDK 19.02. Update VPP's
build options to enable the correct option name.

Change-Id: I8e34e1d3fc4ee8aac4fd6f2a7d27177f2b0dea50
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
5 years agoioam: migrate old MULTIARCH macros to VLIB_NODE_FN 61/17961/3
Filip Tehlar [Fri, 1 Mar 2019 11:18:58 +0000 (03:18 -0800)]
ioam: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: Icb919a053b35ef62f958c60c725d3aae4c32358f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agopppoe: migrate old MULTIARCH macros to VLIB_NODE_FN 36/17936/2
Filip Tehlar [Thu, 28 Feb 2019 13:58:56 +0000 (05:58 -0800)]
pppoe: migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I0af8104f6d35820aa39d22cd23d4f9211d61faa0
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoVOM: mprefix and mpath encode fixes 64/17964/1
Neale Ranns [Fri, 1 Mar 2019 15:16:40 +0000 (07:16 -0800)]
VOM: mprefix and mpath encode fixes

Change-Id: Id3c281e680683c7267c9db66cc806fed58c8cfcb
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agosession: refactor local connects 11/17911/21
Florin Coras [Wed, 27 Feb 2019 15:55:46 +0000 (07:55 -0800)]
session: refactor local connects

- Switches local connects to cut-thru transport
- Removes local sessions as a separate session type

Change-Id: I997c6355d8c8e4f2110678f785b0f5d96bba47f7
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agoVOM: vxlan-tunnel mcast interface fix 59/17959/2
Neale Ranns [Fri, 1 Mar 2019 10:27:46 +0000 (02:27 -0800)]
VOM: vxlan-tunnel mcast interface fix

Change-Id: Ica6a0b4133ccc1997ef0547274982d0cc9761724
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoTests: Remove all wildcard imports. 43/17943/3
Paul Vinciguerra [Thu, 28 Feb 2019 17:00:09 +0000 (09:00 -0800)]
Tests: Remove all wildcard imports.

They mask dependencies and confuse third party tools.

Change-Id: I24ee16bfa0d746a8e8cb99891ba8b20523048b69
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoTests: Refactor duplicated code. 52/17952/2
Paul Vinciguerra [Thu, 28 Feb 2019 23:34:00 +0000 (15:34 -0800)]
Tests: Refactor duplicated code.

Naveen suggested earlier today that we should refactor duplicate code.
This commit kicks off the effort.

Change-Id: I855b0f40d41d1f3a2e673f3b254b76b596409656
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoSave signum and faulting address in static variables 51/17951/2
Dave Barach [Thu, 28 Feb 2019 22:52:57 +0000 (17:52 -0500)]
Save signum and faulting address in static variables

Comes in handy when looking at core files from optimized images.

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

5 years agoFix API return code in case of error. 83/17883/2
Igor Mikhailov (imichail) [Tue, 26 Feb 2019 19:53:18 +0000 (11:53 -0800)]
Fix API return code in case of error.

Change-Id: I22f866bacbc9c6e3abb0405f5c5a205910cec17b
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
5 years agostats: Add node names in /sys/nodes/names 85/17885/6
Ole Troan [Tue, 26 Feb 2019 21:14:13 +0000 (22:14 +0100)]
stats: Add node names in /sys/nodes/names

Change-Id: I9c92d51cc0e9dccf3c3726c4de8d7f15537778c9
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agoMAINTAINERS: Add Paul Vinciguerra to test/ 53/17953/2
Paul Vinciguerra [Fri, 1 Mar 2019 00:37:16 +0000 (16:37 -0800)]
MAINTAINERS: Add Paul Vinciguerra to test/

Change-Id: Id8a48299eb26f62561b54aa4d240d312f47a952d
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agovpp_papi.py: Change VppEnum from explicit metaclass to metaclass wrapper/decorator. 91/17891/2
Paul Vinciguerra [Wed, 27 Feb 2019 04:39:44 +0000 (20:39 -0800)]
vpp_papi.py: Change VppEnum from explicit metaclass to metaclass wrapper/decorator.

Change-Id: Iab41bb972e3c7ec005a1a13d5a25f654ae8c3932
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agotest/vpp_ip_route.py: Trivial. Remove duplicate key. 45/17945/2
Paul Vinciguerra [Thu, 28 Feb 2019 17:06:31 +0000 (09:06 -0800)]
test/vpp_ip_route.py: Trivial. Remove duplicate key.

Change-Id: I2c347daeecd5441b8fe3e3f7527a8e21844668d0
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoRemove unused imports from hooks 42/17942/1
Naveen Joy [Thu, 28 Feb 2019 16:46:41 +0000 (08:46 -0800)]
Remove unused imports from hooks

Change-Id: I087b057da526c18f8cce1902dcb594dd5ce0a4b8
Signed-off-by: Naveen Joy <najoy@cisco.com>
5 years agostats: Add interface name to sw_if_index as /if/names 74/17874/8
Ole Troan [Tue, 26 Feb 2019 15:37:03 +0000 (16:37 +0100)]
stats: Add interface name to sw_if_index as /if/names

Expose interface name to sw_if_index table as a directory node in the stats segment.

Change-Id: Ie50e4af01997d141880f02e3a8496bfeb91b9944
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agoVOM: child accessors on GBP route domain 23/17923/2
Neale Ranns [Thu, 28 Feb 2019 08:41:26 +0000 (00:41 -0800)]
VOM: child accessors on GBP route domain

Change-Id: I7b74b0b98b2c427bf29bb1d2932044d9924588cb
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agol2e: Migrate old MULTIARCH macros to VLIB_NODE_FN 98/17898/4
Filip Tehlar [Tue, 26 Feb 2019 15:28:33 +0000 (07:28 -0800)]
l2e: Migrate old MULTIARCH macros to VLIB_NODE_FN

Change-Id: I55f45d84212e2293e3798dff6850d86d75414d02
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agoMPLS: tunnel delete crash 73/17673/3
Neale Ranns [Tue, 19 Feb 2019 10:10:13 +0000 (02:10 -0800)]
MPLS: tunnel delete crash

Change-Id: I4adf713f4a1d596b9c8a78b79b5df2c7eb0c56f0
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoTEST: IPSEC NAT-T with UDP header 07/17807/3
Neale Ranns [Mon, 25 Feb 2019 14:32:02 +0000 (14:32 +0000)]
TEST: IPSEC NAT-T with UDP header

Change-Id: I5ef8b3f4be40a7a0b0f1cb90dc0e15a4711e8664
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agosession: refactor local/cut-through listens 98/17798/18
Florin Coras [Fri, 22 Feb 2019 21:11:38 +0000 (13:11 -0800)]
session: refactor local/cut-through listens

Introduce a cut-through transport as replacement to local sessions. This
first patch removes the per app local listener pools and switches local
listeners to sessions with cut-through transport.

Change-Id: I98b20c25bc5df5f4110bf66f76c650a973032618
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agoFix centos build and build documentation 73/17873/4
jdenisco [Tue, 26 Feb 2019 14:19:24 +0000 (09:19 -0500)]
Fix centos build and build documentation

Change-Id: I326204d26b613254e39c6a0ffe9f9491981ba3c3
Signed-off-by: jdenisco <jdenisco@cisco.com>
5 years agoVPP-1576: fix Coverity issues 15/17915/2
Dave Barach [Wed, 27 Feb 2019 17:36:28 +0000 (12:36 -0500)]
VPP-1576: fix Coverity issues

Change-Id: I8b59b2e1c0525abf4b0492e50a7af57df4cd3ce2
Signed-off-by: Dave Barach <dave@barachs.net>
5 years agoDOC ONLY: update bug report section 08/17908/2
Dave Barach [Wed, 27 Feb 2019 15:14:01 +0000 (10:14 -0500)]
DOC ONLY: update bug report section

More detail on why it's important to supply .debs or .rpms which
precisely match core files. Probably won't help, but we can try...

Change-Id: I7842eaea0ef921b934e84b7f18f6a333b1381292
Signed-off-by: Dave Barach <dave@barachs.net>
5 years agostring_test: The dark side of coverity 13/17913/1
Steven Luong [Wed, 27 Feb 2019 16:19:27 +0000 (08:19 -0800)]
string_test: The dark side of coverity

Me: "Mr Coverity, I thought I fixed the dead code warning just few days ago in
this file. Why are you still complaining about the same stuff to me?"

Mr. Coverity: "Duh! But you are supposed to fix all occurences in the same file."

Me: "Mr. Coverity, I didn't see you flag the warning in the other places last
time?"

Mr. Coverity: "Shh! That is the secret of my dark side!"

Change-Id: I565eccd90bf1bb39c9881664d361f83396ca8bcc
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agoIKEv2 plugin export fixes 00/17900/2
Neale Ranns [Wed, 27 Feb 2019 10:16:20 +0000 (10:16 +0000)]
IKEv2 plugin export fixes

Change-Id: If6b0edb0dd242e0ef6953c8f4c1826eb80b9e1cc
Signed-off-by: Neale Ranns <nranns@cisco.com>
5 years agoNAT44: active-passive HA (VPP-1571) 80/17880/2
Matus Fabian [Tue, 26 Feb 2019 17:05:23 +0000 (09:05 -0800)]
NAT44: active-passive HA (VPP-1571)

session synchronization so that we can build a plain active-passive HA NAT pair

Change-Id: I21db200491081ca46b7af3e82afc677c1985abf4
Signed-off-by: Matus Fabian <matfabia@cisco.com>
5 years agoFix crash in barrier sync when vlib_worker_threads is zero 78/17878/2
Damjan Marion [Tue, 26 Feb 2019 16:15:48 +0000 (17:15 +0100)]
Fix crash in barrier sync when vlib_worker_threads is zero

Change-Id: I6819dd9dbfc15c17740bdb98b51bdd639ef8c4d2
Signed-off-by: Damjan Marion <damarion@cisco.com>
5 years agovmxnet3: RSS support 88/17888/1
Steven Luong [Wed, 27 Feb 2019 00:45:54 +0000 (16:45 -0800)]
vmxnet3: RSS support

Configurable up to 16 RX queues per interface. Default is 1.

Change-Id: If9e2beffeb7e7dc8c2264b4db902132b2fea02c1
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agoVPP-1574: minimize RPC barrier sync calls 86/17886/2
Dave Barach [Tue, 26 Feb 2019 22:04:40 +0000 (17:04 -0500)]
VPP-1574: minimize RPC barrier sync calls

Grab the thread barrier across a set of RPCs, to greatly increase
efficiency. Avoids running afoul of the barrier sync holddown
timer.

Change-Id: I782dfdb1bed398b290169c83266681c9edd57a3f
Signed-off-by: Dave Barach <dave@barachs.net>
5 years agonsh: migrate old MUTIARCH macros to VLIB_NODE_FN 59/17859/4
Filip Tehlar [Tue, 26 Feb 2019 10:59:07 +0000 (02:59 -0800)]
nsh: migrate old MUTIARCH macros to VLIB_NODE_FN

Change-Id: Iafe8b3a38f2a7d7571e60db91608d8130bb07cb3
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
5 years agostats: buffer gauge callbacks use index instead of name. 65/17865/2
Ole Troan [Tue, 26 Feb 2019 12:10:56 +0000 (13:10 +0100)]
stats: buffer gauge callbacks use index instead of name.

Change-Id: I500b8e72d7e021b9564dad0ffc087cb0e1ceb96f
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agovppapigen: Expose "option version" in generated JSON file. 79/17879/1
Ole Troan [Tue, 26 Feb 2019 17:03:16 +0000 (18:03 +0100)]
vppapigen: Expose "option version" in generated JSON file.

Change-Id: Iaa78ee181589584885b0f377eafb89e603718bd4
Signed-off-by: Ole Troan <ot@cisco.com>
5 years agosession: fix local binds 31/17831/2
Florin Coras [Mon, 25 Feb 2019 23:17:28 +0000 (15:17 -0800)]
session: fix local binds

Change-Id: I1d92bec29c718de7a517bbbb335d09c68c221c71
Signed-off-by: Florin Coras <fcoras@cisco.com>
5 years agoVPP-1508 Python3 abstract classes 60/16160/10
Paul Vinciguerra [Sun, 25 Nov 2018 05:46:05 +0000 (21:46 -0800)]
VPP-1508 Python3 abstract classes

Update the syntax to support abstract classes in python 2 and python 3.

Depends on: new style classes -- https://gerrit.fd.io/r/16166

Change-Id: Iad2c1240149f38b3faca1b37ab95d3d210e1daee
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agovmxnet3: lro/tso and rx checksum 27/17827/2
Steven Luong [Mon, 25 Feb 2019 20:10:53 +0000 (12:10 -0800)]
vmxnet3: lro/tso and rx checksum

Add lro/tso and rx checksum support. lro/tso is configured via startup.conf
   vmxnet3 { lro }
It is disable by default due to not all versions of ESXi supports it.

Change-Id: Icf224ff528884ecd9e655b4fcf4481194e8c5a63
Signed-off-by: Steven Luong <sluong@cisco.com>
5 years agoMove pcap rx/tx trace code out of the dpdk plugin 28/17828/2
Dave Barach [Mon, 25 Feb 2019 20:27:28 +0000 (15:27 -0500)]
Move pcap rx/tx trace code out of the dpdk plugin

Moved code to the ethernet input node, and the interface output
path(s). Since we no longer skip ethernet-input, there's no reason
for device drivers to know anything about pcap rx tracing, etc.

Change-Id: I08d32fb1b90cbee1bd4f609837d533e047b36fa4
Signed-off-by: Dave Barach <dave@barachs.net>
5 years agoFix vpp crashing when attempting to run in kubernetes Pod 38/17838/5
Artem Belov [Tue, 26 Feb 2019 01:47:34 +0000 (01:47 +0000)]
Fix vpp crashing when attempting to run in kubernetes Pod

mmap does not fail but writing to mapped memory is causing sigbus.

Change-Id: I5135f32eede67fccb4aaa07a501cd262d254ed8d
Signed-off-by: Artem Belov <artem.belov@xored.com>
5 years agomake test: Stop downloading pip. 34/17734/2
Paul Vinciguerra [Wed, 20 Feb 2019 17:51:54 +0000 (09:51 -0800)]
make test: Stop downloading pip.

Use the installed version of pip.  If a newer version of pip is needed,
it can be specified in requirements.txt.  This is to improve idempotence
by providing some control over upstream changes.

Change-Id: I07b7651f8ddba6005bf85d11fef9e3343ee2dcd2
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agomake test: Add exception handling around subprocess. 65/16265/7
Paul Vinciguerra [Wed, 28 Nov 2018 19:34:21 +0000 (11:34 -0800)]
make test: Add exception handling around subprocess.

This cleans up exception catching to identify oserrors.  By raising the
specific exception closer to the offending call, we get additional stack history
and can add clearer error logging to assist in troubleshooting.

Change-Id: I592e4d46844b822a816485bf54910f8daed92088
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoDSLITE: Fix dslite_get_b4_addr_reply message type. 26/17626/3
Jon Loeliger [Fri, 15 Feb 2019 18:06:11 +0000 (12:06 -0600)]
DSLITE: Fix dslite_get_b4_addr_reply message type.

Fix what appears to be a cut-n-past error.

Change-Id: I71ee32c1b0d2dc38ed3df4bd24ec4248005a6008
Signed-off-by: Jon Loeliger <jdl@netgate.com>
5 years agoVPP-1508 python tests: unicode 67/16267/9
Paul Vinciguerra [Mon, 26 Nov 2018 00:09:26 +0000 (16:09 -0800)]
VPP-1508 python tests: unicode

Change unicode references to use text_type

Change-Id: Ia71c16e3235bc509abd3b1c651ae125f892ab108
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
5 years agoRemove fake MAP domain 0 entry. 08/17808/2
Jon Loeliger [Thu, 21 Feb 2019 19:29:51 +0000 (13:29 -0600)]
Remove fake MAP domain 0 entry.

Problematic:
    - It didn't have its counters initialized, so vpp crashed
      during a "show map stat"
    - Not all the tests for "are there any domains" actually
      accounted for the fake entry at pool slot 0.
    - Dump details happily returned its bogus entry.

Change-Id: I57aaa9f63917686334fd4a9fa7bc80044bf1718c
Signed-off-by: Jon Loeliger <jdl@netgate.com>