vpp.git
6 years agoNAT: add missing CLI and API documentation (VPP-1142) 97/10297/2
Matus Fabian [Mon, 29 Jan 2018 10:46:25 +0000 (02:46 -0800)]
NAT: add missing CLI and API documentation (VPP-1142)

Change-Id: I4e93595665b8d0e373c4df27311c27a51222961c
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoNAT: replace format_vnet_sw_interface_name with format_vnet_sw_if_index_name (VPP... 66/10266/2
Matus Fabian [Fri, 26 Jan 2018 13:07:23 +0000 (05:07 -0800)]
NAT: replace format_vnet_sw_interface_name with format_vnet_sw_if_index_name (VPP-1149)

Avoid crash when interface was deleted.

Change-Id: I2ac3031c13ca5ad3360495e1c4cb90b0002be5ff
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoAllow the provider of a midchain adjacency to pass context data that is returned... 10/10310/2
Neale Ranns [Mon, 29 Jan 2018 18:43:33 +0000 (10:43 -0800)]
Allow the provider of a midchain adjacency to pass context data that is returned in the fixup function

Change-Id: I458e6e03b03e27775df33a2fd302743126d6ac44
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agovcl: fix VPPCOM_ATTR_GET_LIBC_EPFD elog 16/10316/1
Florin Coras [Mon, 29 Jan 2018 16:55:25 +0000 (08:55 -0800)]
vcl: fix VPPCOM_ATTR_GET_LIBC_EPFD elog

Change-Id: Idc3e8f4ee69d8871534a94d4f485e695fac81756
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoDRAFT ip4/6_frag to support DPO Style based Next Node 52/10252/2
Vijayabhaskar Katamreddy [Thu, 25 Jan 2018 23:12:11 +0000 (15:12 -0800)]
DRAFT ip4/6_frag to support DPO Style based Next Node

Change-Id: I1df3d23c1c5668b83d52b41f51c0e3f24183af9e
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
6 years agomemif: Add new API calls to manage memif socket names. 72/10172/4
Jon Loeliger [Tue, 16 Jan 2018 22:37:16 +0000 (16:37 -0600)]
memif: Add new API calls to manage memif socket names.

New API calls and corresponding CLI commands allow the user
to manage the socket filenames for memif connections using:

    vppctl# create memif id <u32> filename <socket-filename>
    vppctl# delete memif id <u32>

and then referencing it later in a memif interface:

    vppctl# create memif <u32> socket-id <id> mode <mode> <master|slave> ...

Corresponding VAT cli entries have also been added.

The default memif socket file at id 0 are still always present.
The existing memif create/delete CLI commands have been slightly
altered into the new syntax:

    vppctl# create interface memif ...
    vppctl# delete interface memif ...

Change-Id: If2bdc7eac3d81e1d9011a5869747e52fc5e11639
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoSRv6 dynamic proxy plugin 37/10137/8
Francois Clad [Wed, 17 Jan 2018 11:18:41 +0000 (12:18 +0100)]
SRv6 dynamic proxy plugin

Change-Id: Ie460005510b8a70d00de31b6651e762cc3a63229
Signed-off-by: Francois Clad <fclad@cisco.com>
6 years agoRemove last vestigies of auto-ip-table create 47/10247/3
Neale Ranns [Thu, 25 Jan 2018 15:48:12 +0000 (07:48 -0800)]
Remove last vestigies of auto-ip-table create

Change-Id: If0f8472c0de5e324b24c9c672c0f8b57cc9f49a8
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
6 years agosession: use clib rwlocks instead of custom implementation 40/10240/3
Florin Coras [Wed, 24 Jan 2018 18:49:23 +0000 (10:49 -0800)]
session: use clib rwlocks instead of custom implementation

Change-Id: I68933d709ce9cc686ba06466e136434b663920ef
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoFirst-fit virtual space allocator 38/10238/3
Dave Barach [Thu, 25 Jan 2018 00:20:55 +0000 (19:20 -0500)]
First-fit virtual space allocator

Change-Id: I75e6c7d1a6ff1fcebc81ec10bd86b79f2bf3dc22
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoFix session/tcp coverity warnings 76/10276/3
Florin Coras [Fri, 26 Jan 2018 09:27:01 +0000 (01:27 -0800)]
Fix session/tcp coverity warnings

Change-Id: I5c404eacb4a6c1e16485a6656168d9171ff49a8b
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agojvpp: map VPP API enums to primitive types 63/10263/2
Marek Gradzki [Wed, 24 Jan 2018 15:35:11 +0000 (16:35 +0100)]
jvpp: map VPP API enums to primitive types

Adding enum support (VPP-1153) requires
JVPP generator refactoring
(see: VPP-1154, VPP-1155, VPP-480)

As a workaround we just update all the mappings
used for VPP API definitions to JAVA and C/JNI translation.

Change-Id: I9dff83e5199039a1a46a3d4685ce57cdeeeb2014
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agojvpp: use Python's logging API 61/10261/3
Marek Gradzki [Fri, 26 Jan 2018 10:39:27 +0000 (11:39 +0100)]
jvpp: use Python's logging API

Change-Id: Iec437e4672af1f0d1a24458afb977ba6fbeba4ed
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agosession: disconnect and echo client improvements 85/10285/2
Florin Coras [Fri, 26 Jan 2018 14:36:04 +0000 (06:36 -0800)]
session: disconnect and echo client improvements

Change-Id: If421bad17b6cfe8e321257c93bb38931e37d7b64
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoAdd support for 18.01. 84/10284/1
John DeNisco [Fri, 26 Jan 2018 19:55:33 +0000 (14:55 -0500)]
Add support for 18.01.
Fixed bugs.
Improved some config as the result of Tetration experience.

Change-Id: Ie4b8d2d77ca3ad165675c42fa2d9a4798d871f9d
Signed-off-by: John DeNisco <jdenisco@cisco.com>
6 years agosession: move builtin apps to their own folder 53/10253/5
Florin Coras [Thu, 25 Jan 2018 14:34:42 +0000 (06:34 -0800)]
session: move builtin apps to their own folder

This consolidates builtin apps under session-apps folder. It also
removes duplicate builtin echo server/client implementations.

Change-Id: I75ed879399c5aa9b75b1eb38b33aedf69dd8df3f
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoNAT44: fix ICMP error translation for endpoint dependent sessions (VPP-1150) 60/10260/2
Matus Fabian [Fri, 26 Jan 2018 11:17:01 +0000 (03:17 -0800)]
NAT44: fix ICMP error translation for endpoint dependent sessions (VPP-1150)

Change-Id: I85c799f28c4246884107e569a36482af10d9be9d
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoNAT44: add opaque string tag to static mapping APIs (VPP-1147) 54/10254/1
Matus Fabian [Fri, 26 Jan 2018 05:59:16 +0000 (21:59 -0800)]
NAT44: add opaque string tag to static mapping APIs (VPP-1147)

Change-Id: I620e2081285ca8ac5c2da8efc12fe6f540ea4fd1
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agovppinfra: add readers-writer lock 24/10224/4
Florin Coras [Wed, 24 Jan 2018 02:17:44 +0000 (18:17 -0800)]
vppinfra: add readers-writer lock

Change-Id: I606fd89c410369cbd9ce9dcaaaa9dc58796e7c0e
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agosession: add support for memfd segments 09/10109/17
Florin Coras [Mon, 15 Jan 2018 09:08:33 +0000 (01:08 -0800)]
session: add support for memfd segments

- update segment manager and session api to work with both flavors of
  ssvm segments
- added generic ssvm slave/master init and del functions
- cleanup/refactor tcp_echo
- fixed uses of svm fifo pool as vector

Change-Id: Ieee8b163faa407da6e77e657a2322de213a9d2a0
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoEvent log entries for VCL 75/10175/3
Keith Burns (alagalah) [Fri, 19 Jan 2018 22:26:35 +0000 (14:26 -0800)]
Event log entries for VCL

Change-Id: I8303859ef65552f64c94525c9b1112ec9a1a88d0
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years ago18.01 Release Notes 48/10248/1
Dave Wallace [Wed, 24 Jan 2018 06:02:37 +0000 (01:02 -0500)]
18.01 Release Notes

Change-Id: I2493a6135aecb4e2eead20a71dcb9ca16834cd63
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
(cherry picked from commit 9d21268d0a2277fb5a70db960d0d538620401834)

6 years agoUpdate CSIT tests 180115 -> 180122 80/10180/2
Jan Gelety [Mon, 22 Jan 2018 07:35:06 +0000 (08:35 +0100)]
Update CSIT tests 180115 -> 180122

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

Change-Id: I1a5afd49c37e1faf59311e16389b3b5deff015a3
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agoVPP-1144: PAPI Import leads to duplicate type definition. 41/10241/2
Ole Troan [Thu, 25 Jan 2018 08:53:31 +0000 (09:53 +0100)]
VPP-1144: PAPI Import leads to duplicate type definition.

Change-Id: I54c147004fd93681a6a9cf30fa5277c1dabce67c
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agosrv6-as: fixing version 33/10233/3
Francois Clad [Wed, 24 Jan 2018 15:24:03 +0000 (16:24 +0100)]
srv6-as: fixing version

Change-Id: I0ce60729e82536d9a97823bc6701e62bf364ea6c
Signed-off-by: Francois Clad <fclad@cisco.com>
6 years agoNAT: nat.c refactor (split out CLI) (VPP-1140) 45/10245/2
Matus Fabian [Thu, 25 Jan 2018 09:13:22 +0000 (01:13 -0800)]
NAT: nat.c refactor (split out CLI) (VPP-1140)

Moved CLI from nat.c to nat44_cli.c
Split "show nat44" to:
show nat44 addresses
show nat44 interfaces
show nat44 static mappings
show nat44 interface address
show nat44 sessions detail
show nat44 deterministic mappings
show nat44 deterministic timeouts
show nat44 deterministic sessions
show nat workers

Change-Id: I2d1be8941dd0e4a9e037f4a4d2cd192389beb8ed
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agofixup python ply package name for fedora >= 25 42/10242/1
Gabriel Ganne [Thu, 25 Jan 2018 09:03:13 +0000 (10:03 +0100)]
fixup python ply package name for fedora >= 25

package name is:
 * python-ply for centos7/rhel7
 * python2-ply / python3-ply for fedora >= 25

Change-Id: Id021802a46a0cc29e9db57e18841a76575437002
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agomake test: verify that /dev/shm is big enough 25/10225/2
Klement Sekera [Wed, 24 Jan 2018 12:41:50 +0000 (13:41 +0100)]
make test: verify that /dev/shm is big enough

Verify that /dev/shm size is >= 512M, which should be enough for `make
test' needs. If the verification fails, try to enlarge it automatically.
This helps avoid docker vpp/make test crashes (seen as SIGBUS).

Change-Id: I4e23d59ff8bf8befc320fa229fb6c9bfeb809a8f
Signed-off-by: Klement Sekera <ksekera@cisco.com>
6 years agoSRv6 masquerading proxy plugin 39/10139/7
Francois Clad [Wed, 17 Jan 2018 15:08:41 +0000 (16:08 +0100)]
SRv6 masquerading proxy plugin

Change-Id: Ia65cf2c7b7fdf84c64e60af4cc815251022c53a9
Signed-off-by: Francois Clad <fclad@cisco.com>
6 years agoMakefile: Add python-ply to RPM_DEPENDS list. 35/10235/1
Jon Loeliger [Wed, 24 Jan 2018 19:47:46 +0000 (13:47 -0600)]
Makefile: Add python-ply to RPM_DEPENDS list.

Change-Id: I1bbb29ec2303f87c0053691fc157a747bff1626d
Signed-off-by: Jon Loeliger <jdl@netgate.com>
6 years agoSCTP stack (RFC4960) 50/9150/74
Marco Varlese [Mon, 30 Oct 2017 17:17:21 +0000 (18:17 +0100)]
SCTP stack (RFC4960)

== CONTENT ==
* SCTP chunks definition as per RFC4960;
* Helper functions to set/get values to/from the corresponding chunks;
* Hooks to the session/application layers;
* Complete state-machine handling;
* Implementation for unexpected chunk received in a certain
state (state-machine error handling)
* Support for 1-single connection;
* Sample application to test receive/transmit data-path;
* Test to validate SCTP stack;

Change-Id: I1b55c455ab400be9513f4e094dadfc3181d2ebc9
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoImprove the error reporting for a IP multicast RPF miss. 12/10212/3
Neale Ranns [Tue, 23 Jan 2018 16:38:50 +0000 (08:38 -0800)]
Improve the error reporting for a IP multicast RPF miss.

now we get:

00:00:04:288925: pg-input
 ...
00:00:04:289345: ethernet-input
 ...
00:00:04:289524: ip6-input
 ...
00:00:04:289553: ip6-mfib-forward-lookup
 ...
00:00:04:289584: ip6-mfib-forward-rpf
  entry 14 itf 2 flags Forward,
00:00:04:289754: ip6-drop
    UDP: 2002::1 -> ff01:2::255
      tos 0x00, flow label 0x0, hop limit 64, payload length 21
    UDP: 1234 -> 1234
      length 21, checksum 0x90d1
00:00:04:289802: error-drop
  ip4-input: Multicast RPF check failed

08:36:44,517    Count                    Node                  Reason
       182                ip4-input               Multicast RPF check failed
         8             ip6-icmp-input             neighbor advertisements sent
         8             ip6-icmp-input             router advertisements sent
         8                arp-input               ARP replies sent

Change-Id: I1b29cda4ec77a88db45bfb25c7473cd64bbf501a
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoImprove tunnel interface creation performance 16/10216/4
John Lo [Wed, 24 Jan 2018 00:21:34 +0000 (19:21 -0500)]
Improve tunnel interface creation performance

Modify interface creation to allow creation of tunnel interfaces
without dedicated per tunnel output and tx nodes which are not
used for most tunnel types. Also changed interface-output node
function vnet_per_buffer_interface_output() so it does not rely
on hw_if_index as the next node index which is not flexible nor
efficient for large scale tunnel interfaces.

The improvenemts are done for VXLAN, VXLAN-GPE, GENEVE and GTPU
tunnels. GRE tunnel is still using per tunnel output nodes which
will be changed in a separate patch with other GRE enhencements.

Change-Id: I4123c01c0d2ead814417a867adb8c8a407e4df55
Signed-off-by: John Lo <loj@cisco.com>
6 years agoNAT44: asymmetrical static mapping and one-armed NAT (VPP-1138) 06/10206/2
Matus Fabian [Tue, 23 Jan 2018 14:07:01 +0000 (06:07 -0800)]
NAT44: asymmetrical static mapping and one-armed NAT (VPP-1138)

One-armed NAT should work for asymmetrical static mappings without adding external address to the NAT44 pool.

Change-Id: Ie886b75b55c3b552d1029a50bd967625fde80f09
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agodocs: Clean up TOC 17/10217/1
Dave Wallace [Tue, 23 Jan 2018 22:47:02 +0000 (17:47 -0500)]
docs: Clean up TOC

Change-Id: I5415c002a431d84372f56d4a77dc2aabd6ef55f7
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
(cherry picked from commit 1eb970d16028e9a987c1dd2bfe217d1313262b81)

6 years agoAdding a format function for bihash init routine to format the key, value, when verbo... 50/9850/5
Vijayabhaskar Katamreddy [Thu, 14 Dec 2017 21:20:50 +0000 (13:20 -0800)]
Adding a format function for bihash init routine to format the key, value, when verbose option is used

Change-Id: Ib63ead4525332f897b8a1d8a4cf5a0eb1da1e7f3
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
6 years agoFix typo / coverity warning 07/10207/1
Dave Barach [Tue, 23 Jan 2018 15:04:08 +0000 (10:04 -0500)]
Fix typo / coverity warning

Change-Id: I4a3a6803083f3d707351440486bba59d8194339f
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoFor DHCP client configuration control the setting of the broadcast flag in the 69/10169/2
Neale Ranns [Wed, 17 Jan 2018 18:29:10 +0000 (10:29 -0800)]
For DHCP client configuration control the setting of the broadcast flag in the
DISCOVER message sent.

According to RFC2131:

   In the case of a client using DHCP for initial configuration (before
   the client's TCP/IP software has been completely configured), DHCP
   requires creative use of the client's TCP/IP software and liberal
   interpretation of RFC 1122.  The TCP/IP software SHOULD accept and
   forward to the IP layer any IP packets delivered to the client's
   hardware address before the IP address is configured; DHCP servers
   and BOOTP relay agents may not be able to deliver DHCP messages to
   clients that cannot accept hardware unicast datagrams before the
   TCP/IP software is configured.

   To work around some clients that cannot accept IP unicast datagrams
   before the TCP/IP software is configured as discussed in the previous
   paragraph, DHCP uses the 'flags' field [21].  The leftmost bit is
   defined as the BROADCAST (B) flag.  The semantics of this flag are
   discussed in section 4.1 of this document.  The remaining bits of the
   flags field are reserved for future use.  They MUST be set to zero by
   clients and ignored by servers and relay agents.  Figure 2 gives the
   format of the 'flags' field.

this changes means VPP conforms to the:
   "SHOULD accept and forward to the IP layer any IP packets delivered
    to the client's hardware address before the IP address is configured"
with the caveat that VPP allows DHCP packets destined to the stanard client
DHCP port to be delivered. With this enhancement the control-plane is now
able to choose the setting of the broadcast flag.

Change-Id: Ia4eb2c9bb1e30c29f9192facc645e9533641955a
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoVPPAPIGEN: vppapigen replacement in Python PLY. 81/8781/23
Ole Troan [Thu, 12 Oct 2017 11:06:35 +0000 (13:06 +0200)]
VPPAPIGEN: vppapigen replacement in Python PLY.

This is a version of the VPP API generator in Python PLY. It supports
the existing language, and has a plugin architecture for generators.
Currently C and JSON are supported.

Changes:
 - vl_api_version to option version = "major.minor.patch"
 - enum support
 - Added error checking and reporting
 - import support (removed the C pre-processor)
 - services (tying request/reply together)

Version:
 option version = "1.0.0";

Enum:
 enum colours {
   RED,
   BLUE = 50,
 };
 define foo {
  vl_api_colours_t colours;
 };

Services:
 service {
  rpc foo returns foo_reply;
  rpc foo_dump returns stream foo_details;
  rpc want_stats returns want_stats_reply
      events ip4_counters, ip6_counters;
 };

Future planned features:
 - unions
 - bool, text
 - array support (including length)
 - proto3 output plugin
 - Refactor C/C++ generator as a plugin
 - Refactor Java generator as a plugin

Change-Id: Ifa289966c790e1b1a8e2938a91e69331e3a58bdf
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoNAT44: Fix interface feature removal. 95/10195/2
Milan Lenco [Mon, 22 Jan 2018 13:05:14 +0000 (14:05 +0100)]
NAT44: Fix interface feature removal.

Change-Id: Ie7cd809f30decc36cb8e1f4d8acc4b41f17cd390
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
6 years agovom: acl: Fix l3 acl handle populate 07/10107/2
Mohsin Kazmi [Mon, 15 Jan 2018 13:16:45 +0000 (14:16 +0100)]
vom: acl: Fix l3 acl handle populate

Change-Id: I5f105a1abb8a28645d6c961ad92f91c23787047f
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
6 years agovom: ip_route: fix handle populate 06/10106/2
Mohsin Kazmi [Fri, 12 Jan 2018 18:11:44 +0000 (19:11 +0100)]
vom: ip_route: fix handle populate

Change-Id: I91892084133daadb74caa7aa13ee1071599ba892
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
6 years agovom: Fix connection to VAPI and add disconnect function 05/10105/3
Mohsin Kazmi [Mon, 8 Jan 2018 11:58:32 +0000 (12:58 +0100)]
vom: Fix connection to VAPI and add disconnect function

Change-Id: I2dd5dbafe36e5ae536b3e600beb6920a71238b7a
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
6 years agosvm: queue sub: Add conditional timed wait 60/9960/6
Mohsin Kazmi [Thu, 4 Jan 2018 17:57:26 +0000 (18:57 +0100)]
svm: queue sub: Add conditional timed wait

On reviece side svm queue only permits blocking and
non-blocking calls. This patch adds timed wait blocking
functionality which returns either on signal/event or
on given time out.

It also preserves the original behavior, so it will not
hurt client applications which are using svm queue.

Change-Id: Ic10632170330a80afb8bc781d4ccddfe4da2c69a
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
6 years agoNAT44: asymmetrical static mapping rule (VPP-1135) 54/10154/2
Matus Fabian [Thu, 18 Jan 2018 11:38:45 +0000 (03:38 -0800)]
NAT44: asymmetrical static mapping rule (VPP-1135)

add option to NAT44 static mapping API/CLI to make rule asymmetrical (rule match only out2in direction)

Change-Id: If262a3ff375a24d3059f0de1f1ac387a4fe09475
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agovhost_user: 'nregions' saves the actual number of mapped guest physical address area 76/10176/3
Haiyang Tan [Sat, 20 Jan 2018 09:01:28 +0000 (04:01 -0500)]
vhost_user: 'nregions' saves the actual number of mapped guest physical address area

This patch fixed the VMA leak that if mapping one of guest physical address area get failed.

Change-Id: I07b0b9a932209561d6ff2b2dd08a111ea5db2209
Signed-off-by: Haiyang Tan <haiyang.tan.dev@gmail.com>
6 years agoVCL/LD_PRELOAD: Fix unfiltered debug output. 63/10163/2
Dave Wallace [Thu, 18 Jan 2018 22:01:40 +0000 (17:01 -0500)]
VCL/LD_PRELOAD: Fix unfiltered debug output.

Change-Id: I625b219fe6ffd21f87a163244569a4075cd432a4
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoFix MP hazard in interrupt node scheduling 73/10173/3
Dave Barach [Fri, 19 Jan 2018 18:09:20 +0000 (13:09 -0500)]
Fix MP hazard in interrupt node scheduling

Change-Id: Iff14ed6ffd822eb2286aac6af467d9c8660e3d81
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoSRv6 static proxy plugin 35/10135/4
Francois Clad [Tue, 16 Jan 2018 16:52:24 +0000 (17:52 +0100)]
SRv6 static proxy plugin

Change-Id: Ia0654461d9fa36503323a8375997719c873d23b9
Signed-off-by: Francois Clad <fclad@cisco.com>
6 years agoLD_PRELOAD: Fix Coverity Warning CID 182227 70/10170/2
Dave Wallace [Fri, 19 Jan 2018 17:17:08 +0000 (12:17 -0500)]
LD_PRELOAD: Fix Coverity Warning CID 182227

Change-Id: I2698a59db29cbace49335e035478b5f456d0b06a
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agovxlan:restructure encap loop 38/10138/3
Eyal Bari [Wed, 17 Jan 2018 10:06:32 +0000 (12:06 +0200)]
vxlan:restructure encap loop

unified some code from IPv4/6 pathes
replaced unrolled rewrite copy with simple assignment
refactored stats handling
was not tested for performance

Change-Id: I00aeb9dd5b72584e6606e1a076e5c8270389aaa4
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agoSub-Interface deletion not cleanup hash's properly (VPP-1136) 68/10168/2
John Lo [Thu, 18 Jan 2018 17:44:50 +0000 (12:44 -0500)]
Sub-Interface deletion not cleanup hash's properly (VPP-1136)

On deleting sub-interfaces, functions vnet_delete_sub_interface()
and vnet_delete_hw_interface() are not cleaning up sub-interface
related hash tables and memory properly.

Change-Id: I17c7c4b2078c062c77bfe48889beb677610035ca
Signed-off-by: John Lo <loj@cisco.com>
(cherry picked from commit 7f5bec647c9dc743c015d461d040e63a77fd0a08)

6 years agoElog entries for VCL 65/10165/2
Keith Burns (alagalah) [Fri, 19 Jan 2018 00:01:34 +0000 (16:01 -0800)]
Elog entries for VCL

Change-Id: Ica8470aaf581e69a74fe4f0fc0296ff3fb6f87d3
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoLD_PRELOAD: Fix coverity warnings 64/10164/1
Dave Wallace [Thu, 18 Jan 2018 22:21:19 +0000 (17:21 -0500)]
LD_PRELOAD: Fix coverity warnings

** CID 182185:  Memory - illegal accesses  (UNINIT)
** CID 182184:  Memory - illegal accesses  (UNINIT)
** CID 182183:    (UNINIT)
** CID 182182:  Memory - illegal accesses  (UNINIT)
** CID 182181:  Memory - illegal accesses  (UNINIT)
** CID 182180:  Uninitialized variables  (UNINIT)
** CID 182179:  Null pointer dereferences  (REVERSE_INULL)
** CID 182178:  Uninitialized variables  (UNINIT)
** CID 182177:  Uninitialized variables  (UNINIT)

Change-Id: I33e043572db493eef58d85c5096ceac5a7d41c7a
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agovlib: add vlib_buffer_alloc_to_ring API 58/10158/2
Damjan Marion [Thu, 18 Jan 2018 13:54:04 +0000 (14:54 +0100)]
vlib: add vlib_buffer_alloc_to_ring API

Change-Id: I4e2804754b443f5f41fb25eed8334908c4a70f84
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agotapv2: add option to set host-side default gw 55/10155/3
Damjan Marion [Thu, 18 Jan 2018 12:35:11 +0000 (13:35 +0100)]
tapv2: add option to set host-side default gw

Change-Id: I76fd655ecd9445299b94b3b5af10e7b1588584e4
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoVPP-1119: PPPoE's destination MAC was overwritten 62/10062/2
Hongjun Ni [Mon, 8 Jan 2018 22:52:19 +0000 (06:52 +0800)]
VPP-1119: PPPoE's destination MAC was overwritten

Change-Id: I6ae99c00e76058654f2c5e71377e9fd1bd13b47b
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
(cherry picked from commit c287cd550b91be7a93bae76d0086db87f575e3d3)

6 years agoEvent log entries for VCL 50/10150/2
Keith Burns (alagalah) [Wed, 17 Jan 2018 23:16:32 +0000 (15:16 -0800)]
Event log entries for VCL

Change-Id: I288ecd7f39422ed900a5c6fbaf9c939ab5c06880
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoFIB Inherited Srouce 77/9477/6
Neale Ranns [Thu, 6 Apr 2017 11:41:02 +0000 (04:41 -0700)]
FIB Inherited Srouce

forwarding provided by the source is pushed to all other entries
it covers in the sub-tree

Change-Id: I2a45222ef653358f55c2436de3e3c6353cfadba2
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agodpdk plugin depends on numactl-libs 52/10152/1
Gabriel Ganne [Thu, 18 Jan 2018 10:00:17 +0000 (11:00 +0100)]
dpdk plugin depends on numactl-libs

dpdk_plugin.so depends on libnuma.so.1

Change-Id: Ia1fd3b5cec043b294cc14cd947908675b451deac
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agoVPP-1122 dpdk/ipsec: fix transport mode pkt len 21/10121/5
Radu Nicolau [Tue, 16 Jan 2018 15:33:31 +0000 (15:33 +0000)]
VPP-1122 dpdk/ipsec: fix transport mode pkt len

Change-Id: I6eef2ca258ff5b4aa9b21b98543d814633e295af
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
6 years agoLD_PRELOAD: stateless LDP 39/9939/13
Dave Wallace [Thu, 4 Jan 2018 03:24:41 +0000 (22:24 -0500)]
LD_PRELOAD: stateless LDP

- Refactor LDP to be stateless.
- Use upper bit of fd to identify
  tag as VCL session.
- Clean up debug output.
- Add VCOM config env vars for
  app name and sid bit.
- Add VCL get/set attributes
- Add VCL poll implementation.

Change-Id: I4603ae88254c460a024fdb79fe91c6d1ef9bc7b9
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agossvm: reuse clib mem infra for memfd segments 34/10134/2
Florin Coras [Tue, 16 Jan 2018 10:40:18 +0000 (02:40 -0800)]
ssvm: reuse clib mem infra for memfd segments

Change-Id: I67648dbed3c7ed291b3e1ce617d83a776d3623bb
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agostats: Fix per interface stats 60/9560/6
Mohsin Kazmi [Wed, 15 Nov 2017 13:21:59 +0000 (14:21 +0100)]
stats: Fix per interface stats

Change-Id: I94618933719abb6ada1272bcf76f4f5304043873
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
6 years agostn: add vat support 10/10110/2
Florin Coras [Mon, 15 Jan 2018 12:43:02 +0000 (04:43 -0800)]
stn: add vat support

Change-Id: Ifba0a4a297b6c01d75b86bc211a32740af5e48ed
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoFix api test_client.c compilation 02/10102/3
Pierre Pfister [Mon, 15 Jan 2018 14:30:16 +0000 (15:30 +0100)]
Fix api test_client.c compilation

c42fc05bfbb26fd11fe92ac9d11587660a817ac1 removed
mr_create_table_if_needed parameter in FIB API calls.
This commit fixes the API test program, which was not compiling
anymore.

Change-Id: Id6899c860235363bef9ba35cd8f24033a55cd5e6
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
6 years agoFix checksum offload sssue caused by overwriten lX_hdr_offset 04/10104/3
Damjan Marion [Mon, 15 Jan 2018 16:57:00 +0000 (17:57 +0100)]
Fix checksum offload sssue caused by overwriten lX_hdr_offset

This happens when 2 packets belonging to 2 different interfaces hit
dual loop in the ethernet-input. Packets go to slow path which doesn't
set l2 hdr offset correctly for l3 packets.

Change-Id: I61d87c079db0b2e21f8af6f6b600bff14030535d
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoELOG additions for VCL 27/10127/2
Keith Burns (alagalah) [Tue, 16 Jan 2018 22:20:34 +0000 (14:20 -0800)]
ELOG additions for VCL

Change-Id: I61557f9ad9ca2a033ba01bd25a7a8cd4d5ce092e
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoacl-plugin: multicore: use pool_init_fixed for per-worker preallocated pools 20/10120/2
Andrew Yourtchenko [Tue, 16 Jan 2018 15:33:28 +0000 (16:33 +0100)]
acl-plugin: multicore: use pool_init_fixed for per-worker preallocated pools

One worker thread may be processing the packets
for session owned by another worker thread.
During session access the validity of the pool
index is checked - however, the free bitmap pointer
might change just at that moment, potentially resulting
in a crash.

Thus, use the pool_init_fixed() when initializing the per-worker pools,
so that the free bitmaps are as well staying in their place.

Change-Id: I5796e6b62fdc1efd4299124a388b84a7c0dc19cd
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoTolerate missing nodes during feature arc initialisation 51/10051/2
Neale Ranns [Wed, 10 Jan 2018 11:49:29 +0000 (03:49 -0800)]
Tolerate missing nodes during feature arc initialisation

Change-Id: Ib0d0b663bf71ce52ead2f81140c710f31f040f89
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoapi: fix api_format.c soft link to vat 25/10125/4
Florin Coras [Tue, 16 Jan 2018 10:50:12 +0000 (02:50 -0800)]
api: fix api_format.c soft link to vat

Commit 6c4dae27e75fc66 broke api_format.c soft link between vat at vpp
api. Probably a make fixstyle issue. Thanks to John Lo for catching
this.

Change-Id: I0567b49fb5c70314d7d6e72f8c9f0f1575948702
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agotapv2: deleting tap interface may leak buffers (VPP-1124) 22/10122/1
Steven [Tue, 9 Jan 2018 19:13:29 +0000 (11:13 -0800)]
tapv2: deleting tap interface may leak buffers (VPP-1124)

Buffers may be allocated for indirect descriptors by tx thread and
they are freed when tx thread is invoked in the next invocation.
This is to allow the recipient (kernel) to have a chance to process
them. But if the tap interface is deleted, the tx thread may not yet
be called to clean up the indirect descriptors' buffers. In that case,
we need to remove them without waiting for the tx thread to be called.
Failure to do so may cause buffers leak when the tap interface is deleted.

For the RX ring, leakage also exists for vring->buffers when the interface
is removed.

Change-Id: I3df313a0e60334776b19daf51a9f5bf20dfdc489
Signed-off-by: Steven <sluong@cisco.com>
(cherry picked from commit d8a998e74b815dd3725dfcd80080e4e540940236)

6 years agoUpdate CSIT tests 171218 -> 180115 15/10115/1
Jan Gelety [Tue, 16 Jan 2018 07:37:50 +0000 (08:37 +0100)]
Update CSIT tests 171218 -> 180115

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

Change-Id: I25a69cf3c9a93754e0cbfc0c1bc62f10883d3027
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agobfd: fix bfd_auth_keys_dump 08/10108/2
Florin Coras [Mon, 15 Jan 2018 09:17:29 +0000 (01:17 -0800)]
bfd: fix bfd_auth_keys_dump

Change-Id: I58598f18b9af70e580be4d28a0c40ec0ffcd5dca
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agosvm: refactor memfd and remove ssvm_eth 96/10096/3
Florin Coras [Sun, 14 Jan 2018 20:25:50 +0000 (12:25 -0800)]
svm: refactor memfd and remove ssvm_eth

Change-Id: Icde296e956eb89ea3a17d547f04a833916ec6440
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agofix udp_ping api naming error 76/10076/3
Gabriel Ganne [Thu, 11 Jan 2018 14:09:38 +0000 (15:09 +0100)]
fix udp_ping api naming error

Error messages:
ERROR:VAPI CPP GEN:Cannot find reply to message `udp_ping_add_del_req'
ERROR:VAPI CPP GEN:Cannot find reply to message `udp_ping_export_req'
ERROR:VAPI C GEN:Cannot find reply to message `udp_ping_add_del_req'
ERROR:VAPI C GEN:Cannot find reply to message `udp_ping_export_req'

Api was *_req/*_resp, but when explicitely declared, the reply should
then have been *_req_reply.
Both api response are empty, so I propose to remove them, and use
autoreply

API changes:
rename udp_ping_add_del_req -> udp_ping_add_del
rename udp_ping_export_req -> udp_ping_export
delete udp_ping_add_del_reply (empty response)
delete udp_ping_export_reply (empty response)
vl_api_version 1.0.0 ->2.0.0

Change-Id: Id3456c8101a7689fbc56dc2d9076625c2b3af0ad
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agoMarvell device plugin 07/9907/11
Damjan Marion [Tue, 26 Dec 2017 13:40:13 +0000 (13:40 +0000)]
Marvell device plugin

Depends in musdk 17.10 [1], tested on MACCHIATObin [2] board.
currently only coves PP2.

musdk must be compiled with:
./configure --enable-bpool-dma=64

[1] https://github.com/MarvellEmbeddedProcessors/musdk-marvell
[2] http://macchiatobin.net

Change-Id: I0247a6b860b0a067c54190eae0bd3fe08de234ad
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agovabits - subtract from the 'end' address instead of from 'bits'. 75/10075/2
Gabriel Ganne [Thu, 11 Jan 2018 14:04:19 +0000 (15:04 +0100)]
vabits - subtract from the 'end' address instead of from 'bits'.

This is a fixup for the commits on
calc base address on AArch64 based on autodetected VA space size

As reported by: Brian Brooks <brian.brooks@arm.com>
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Change-Id: Id1bd7b7d7e5c188d8547c46134082bd4563b92db

6 years agoImprove "show xxx tunnel" and "show int addr" output 94/10094/3
John Lo [Fri, 12 Jan 2018 22:15:25 +0000 (17:15 -0500)]
Improve "show xxx tunnel" and "show int addr" output

Improve "show xxx tunnel" output functions format_xxx_tunnel() for
GRE, VXLAN, VXLAN-GPE, GENEVE and GTPU tunnels to make their output
more consistent and provide better information.
Improved the output of "show int addr" to make its info more
consistent with tunnels and provide fib-index info.

Change-Id: Icd4b5b85a5bec417f8ee19afea336c770ad3b4c5
Signed-off-by: John Lo <loj@cisco.com>
6 years agoapi: fix handlers that explicitly depend on svm queue 61/10061/2
Florin Coras [Wed, 10 Jan 2018 16:17:03 +0000 (08:17 -0800)]
api: fix handlers that explicitly depend on svm queue

Fixes the remainig apis that explicitly check svm queue length.

Change-Id: I6055c7c50050affee3098e162e15fb12c205e5db
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agotcp: make proxy server uri cli configurable 79/10079/3
Florin Coras [Thu, 11 Jan 2018 10:23:35 +0000 (02:23 -0800)]
tcp: make proxy server uri cli configurable

Change-Id: I94c7315558ccc9f3d4bcdefd09a696234bc56227
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoapi: remove transport specific code from handlers 38/10038/9
Florin Coras [Tue, 9 Jan 2018 14:39:23 +0000 (06:39 -0800)]
api: remove transport specific code from handlers

This does not update api client code. In other words, if the client
assumes the transport is shmem based, this patch does not change that.
Furthermore, code that checks queue size, for tail dropping, is not
updated.

Done for the following apis:
Plugins
- acl
- gtpu
- memif
- nat
- pppoe
VNET
- bfd
- bier
- tapv2
- vhost user
- dhcp
- flow
- geneve
- ip
- punt
- ipsec/ipsec-gre
- l2
- l2tp
- lisp-cp/one-cp
- lisp-gpe
- map
- mpls
- policer
- session
- span
- udp
- tap
- vxlan/vxlan-gpe
- interface
VPP
- api/api.c
OAM
- oam_api.c
Stats
- stats.c

Change-Id: I0e33ecefb2bdab0295698c0add948068a5a83345
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoRemove vpp_api_test interface name filter catalog 77/10077/2
Dave Barach [Thu, 11 Jan 2018 15:25:07 +0000 (10:25 -0500)]
Remove vpp_api_test interface name filter catalog

If I remember correctly, I added the interface name filter catalog to
avoid cluttering up the vat interface table with [unused] packet
generator interfaces. Since we no longer create pg interfaces we're
not planning to use, the filter catalog does more harm than
good. Every new interface name prefix would have had to be added to
the list, and folks wouldn't likely know they should do that...

Change-Id: I4067f8ba70ad13c8dc5ebaf21a23759a2cf2675e
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoHandle a mix of CNAME, A/AAAA records 60/10060/2
Dave Barach [Wed, 10 Jan 2018 23:18:59 +0000 (18:18 -0500)]
Handle a mix of CNAME, A/AAAA records

Poster-child: 8.8.8.8 resolving mag.ncep.noaa.gov

Change-Id: I600cd0274b9017e9c91817511d3d3366f0bd02b9
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoVPP-1131: doxygen: Documentation for Debug CLI stops at src/plugin/l2e 74/10074/2
Billy McFall [Wed, 10 Jan 2018 21:48:59 +0000 (16:48 -0500)]
VPP-1131: doxygen: Documentation for Debug CLI stops at src/plugin/l2e

Change-Id: I3ce014da7b514aa766a90cacddd76cd2247406a8
Signed-off-by: Billy McFall <bmcfall@redhat.com>
(cherry picked from commit bbdfeaebf25525a55d9a87ba4c0f789c176cc7bf)

6 years agoNAT44: asymmetrical load balancing static mapping rule (VPP-1132) 73/10073/1
Matus Fabian [Thu, 11 Jan 2018 12:09:17 +0000 (04:09 -0800)]
NAT44: asymmetrical load balancing static mapping rule (VPP-1132)

Add option to NAT44 load balancing static mapping API/CLI to make rule asymmetrical (rule match only in out2in direction).

Change-Id: I325ecef5591e4bf44ce4469a24d44fe56c3bb2e9
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoAdd support for MAP-T CE (VPP-1058) 04/10004/2
Juraj Sloboda [Tue, 19 Dec 2017 19:57:48 +0000 (20:57 +0100)]
Add support for MAP-T CE (VPP-1058)

Change-Id: Ib99058323c50f20fcdb44185aee027c5c6ef8c91
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
6 years agoAdd basic support for DS-Lite CE (VPP-1059) 50/10050/4
Juraj Sloboda [Tue, 9 Jan 2018 15:08:32 +0000 (16:08 +0100)]
Add basic support for DS-Lite CE (VPP-1059)

Change-Id: Ifcca60da3f77c0a4959f98b3365c846badbdc2d0
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
6 years agosvm: calc base address on AArch64 based on autodetected VA space size 49/10049/2
Gabriel Ganne [Wed, 10 Jan 2018 10:40:50 +0000 (11:40 +0100)]
svm: calc base address on AArch64 based on autodetected VA space size

fix proposal for aec8f8984771cabc79a8ed64f56afcf61465d00a

* fix 0/1 bit count
* fix memory leak

Change-Id: I488229917c463be10b8a5a1b0a3d7723f05061d0
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agomakefile set CXXFLAGS so they are propageted to sub-builds 57/10057/1
Neale Ranns [Wed, 10 Jan 2018 15:27:17 +0000 (07:27 -0800)]
makefile set CXXFLAGS so they are propageted to sub-builds

Change-Id: I55d9953851062f7106c66701d46bcd9073cf1ee4
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
6 years agoFix stn rules dump api (VPP-1123) 31/10031/3
Florin Coras [Tue, 9 Jan 2018 09:51:43 +0000 (01:51 -0800)]
Fix stn rules dump api (VPP-1123)

Change-Id: If9e9e4fc348d20396713d9017100dda63a107edb
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoFunctional improvements, bug fixes 37/10037/2
Dave Barach [Tue, 9 Jan 2018 22:00:00 +0000 (17:00 -0500)]
Functional improvements, bug fixes

At least when testing against "known good" DNS servers: it turns out
that sending 2x requests - one for an A-record and another for a
AAAA-record - seems to work better than sending a single DNS_TYPE_ALL
request.

Fix c-string vs. u8 vector mistakes. Fix server failover.

Change-Id: I26554f0a9c1744376f21372506ebec8658e351e2
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agosvm: calc base address on AArch64 based on autodetected VA space size 99/9999/3
Damjan Marion [Mon, 8 Jan 2018 15:35:35 +0000 (16:35 +0100)]
svm: calc base address on AArch64 based on autodetected VA space size

Change-Id: I7487eb74b8deebff849d662b55a6708566ccd9ef
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoVPP-1113 SR MPLS path.frp_label_stack 21/10021/3
Pablo Camarillo [Mon, 8 Jan 2018 14:53:20 +0000 (15:53 +0100)]
VPP-1113 SR MPLS path.frp_label_stack

provide one label stack per fib_table_entry_path_add2 call. otherwise multiple mheap releases take place.

Change-Id: I475ca1b801fc85dddda0b540c69ad628a274df7f
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
6 years agoVCL eventlog - track create/delete 75/9975/8
Keith Burns (alagalah) [Fri, 5 Jan 2018 22:39:59 +0000 (14:39 -0800)]
VCL eventlog - track create/delete

Change-Id: I972b7d264e612ab04eb4671253f3654a76578e1c
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoVPP-1120 SRv6 bug with SID list containing only one SID and no srh 20/10020/4
Pablo Camarillo [Mon, 8 Jan 2018 13:25:55 +0000 (14:25 +0100)]
VPP-1120 SRv6 bug with SID list containing only one SID and no srh

Packets with a SR policy of one SID list create a malformed packet.
Outer IPv6 header points to a routing extension header that does not
exist since the SID list contains only one SID.

Change-Id: I1effee0457453bab95706a8a24fdabfbd843d5b7
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
6 years agophysmem: fix physmem allocation on kernels without NUMA support 35/9935/2
Damjan Marion [Wed, 3 Jan 2018 15:48:34 +0000 (15:48 +0000)]
physmem: fix physmem allocation on kernels without NUMA support

Change-Id: I056598a1818a39c2da73e252600c14585e5aae83
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoPatch ENA PMD to skip setting tx flags in rx path 78/9878/3
Matthew Smith [Mon, 18 Dec 2017 20:19:07 +0000 (14:19 -0600)]
Patch ENA PMD to skip setting tx flags in rx path

On rx, the ENA PMD sets tx offload flags based on the
received packet's l4 protocol. This means you need
to turn off those offloads for every packet if you
encapsulate packets arriving on an interface using
that PMD. Disable this behavior.

Change-Id: Icae9f32e3d292d767da440ae5c1280902bdaa083
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agomemif: fix coverity divide by zero 01/10001/2
Steven [Mon, 8 Jan 2018 17:24:04 +0000 (09:24 -0800)]
memif: fix coverity divide by zero

Coverity complains about divide by zero if tx_queues gets the value of 0
from the macro vec_len(). While we don't anticipate such condition to
happen, programming errors may exist. To defend against divide by zero,
crash and burn if tx_queues gets a value of 0.

Change-Id: I65e014c07e9d4adfe119d5b373b5dc24cb818a03
Signed-off-by: Steven <sluong@cisco.com>
6 years agoRevert "VOM: fix cflags" 35/10035/2
Dave Wallace [Tue, 9 Jan 2018 19:42:56 +0000 (19:42 +0000)]
Revert "VOM: fix cflags"

This reverts commit 4363ad6c96b5641fca1b16c5a6ec22e2364adcfd.

Change-Id: Ie71ee265659e06ada37f40cfceed4c20b1cbf6e5
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>