vpp.git
7 years agovpp_lite: add cpu pinning support (VPP-467) 32/3332/8
Pavel Kotucek [Fri, 7 Oct 2016 06:37:28 +0000 (08:37 +0200)]
vpp_lite: add cpu pinning support (VPP-467)

Proper cpu pinning in vpp_lite platform, like in normal vpp image.
Extended “show threads” command to show propper information.
Changed handling of coreID and socketID for threads in "show threads"
CLI, pthread_getaffinity is used instead of info stored in DPDK.

Change-Id: Ic8299ec5e284472bb10a37a95fadeed57b6edae8
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoFix coverity warnings, VPP-486 85/3385/1
Dave Barach [Wed, 12 Oct 2016 21:32:39 +0000 (17:32 -0400)]
Fix coverity warnings, VPP-486

Change-Id: I7a14d9a28514cdb49f65fab1b120b53239fed7e3
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoVPP-213: vnet classifier does not work for l3 ip4 rules 14/3214/5
Ole Troan [Fri, 30 Sep 2016 07:22:36 +0000 (09:22 +0200)]
VPP-213: vnet classifier does not work for l3 ip4 rules

The classifier was written with the assumption that next-indicies
of IP4 and IP6 IP_LOOKUP_NEXT nodes are equal. That's not true,
and this patch splits the classifier session for IP4 and IP6.

Change-Id: Id0368f17bb1d3f145b771d2dc283b56871264e99
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoCoverity warnings in new FIB code (VPP-484) 78/3378/3
Neale Ranns [Wed, 12 Oct 2016 12:51:05 +0000 (13:51 +0100)]
Coverity warnings in new FIB code (VPP-484)

Change-Id: Ie221e246dd8c6a1b3c76e7aa85924762d4397782
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoVPP-362 Implement dumping of LISP adjacencies 47/3147/9
Filip Tehlar [Fri, 23 Sep 2016 08:00:52 +0000 (10:00 +0200)]
VPP-362 Implement dumping of LISP adjacencies

Change-Id: Ieea56f3bf9e749878d9f2b35d39d9f7a9cdabde4
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoRename ip_feature_init_cast(...) to vnet_feature_arc_init(...), VPP-481 61/3361/2
Dave Barach [Tue, 11 Oct 2016 20:16:02 +0000 (16:16 -0400)]
Rename ip_feature_init_cast(...) to vnet_feature_arc_init(...), VPP-481

Eliminate an unused parameter in vnet_feature_arc_init(...) which
eliminates a spurious relationship between feature arcs and ip.

Add doxygen tags for 2x debug CLI commands, and for
vnet_feature_arc_init(...)

Change-Id: If83589539bcbbbd4d85e84458dd7eb7eb08837a0
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoVPP-474 Revert "FIX sysctl configuration directory" 48/3348/2
Miroslav Miklus [Tue, 11 Oct 2016 11:35:26 +0000 (13:35 +0200)]
VPP-474 Revert "FIX sysctl configuration directory"

This reverts commit 822af5c95d080a58cda504228df4b5f3896e72b6.
Reason for revert is a bug in procps upstart script.

Change-Id: Ie9e501c9b52e65d8d0f31ce6600823021e89fb6f
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
7 years agovppinfra: use crc32q instruction instead of xxhash in bihash_8_8 39/3339/3
Damjan Marion [Tue, 11 Oct 2016 07:53:12 +0000 (09:53 +0200)]
vppinfra: use crc32q instruction instead of xxhash in bihash_8_8

xxhash calculation takes 10 clock cycles on Haswell so it makes sense
to use crc32q insutrction when available.

Change-Id: Iab5e7d9c8ec0125626bbcd067e5dc30574c8febc
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoRebind kernel drivers on VPP uninstall 51/3351/2
Peter Ginchev [Tue, 11 Oct 2016 12:34:24 +0000 (15:34 +0300)]
Rebind kernel drivers on VPP uninstall

Change-Id: Icb0ce47134146c3a212b234f088c682982480128
Signed-off-by: Peter Ginchev <pginchev@cisco.com>
7 years agoTest: Add test case for Load Balancer plugin 20/3320/3
Pierre Pfister [Fri, 7 Oct 2016 15:31:57 +0000 (16:31 +0100)]
Test: Add test case for Load Balancer plugin

This adds a basic test for the four existing encap modes
for the load balancer plugin.
- ip4 over gre4
- ip4 over gre6
- ip6 over gre4
- ip6 over gre6

Apparently, scapy does not support GRE and IPv6 combinations.
Hence, those tests do send packets through VPP, but only
ip4 over gre4 output is actually parsed and verified.

Change-Id: I7cedb0f88fd0788ee51b1428ddf9cff7c037511f
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoipfix: add l4 unformat support for mask and match (VPP-204) 63/2263/13
Juraj Sloboda [Mon, 8 Aug 2016 06:46:45 +0000 (23:46 -0700)]
ipfix: add l4 unformat support for mask and match (VPP-204)

Change-Id: Iff32c488af9b71acbc4e572c6741afae0a67333c
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
7 years agoipfix: add classification nodes for flow statistics (VPP-204) 62/2262/13
Juraj Sloboda [Mon, 8 Aug 2016 06:45:24 +0000 (23:45 -0700)]
ipfix: add classification nodes for flow statistics (VPP-204)

In order to have meaningfull IPFIX implementation we should be able
to classify all packets flowing through vpp. But existing IPv4 and IPv6
classifier nodes are called only if destination IP address is local
to vpp. This commit adds new IPv4 and IPv6 classifier nodes that should
be used for collecting flow statistics.

Change-Id: I60e60105663ba15b5200862a23bb817047fe4d1a
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
7 years agoAdd signal handling 30/3330/5
Dave Barach [Sun, 9 Oct 2016 21:43:22 +0000 (17:43 -0400)]
Add signal handling

Please send SIGTERM to stop vpp_api_test, especially during
long-running operations such as a high-count asynchronous set of
ip_add_del_routes.

Otherwise, there's every chance that the data plane to vpp_api_test
message queue will fill and cause an easily-avoided deadlock.

Change-Id: I09309b445c354e1a692fed708dd5ea44d1ea9882
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoplatform: rewrote vppctl script to include history 40/3040/6
Padraig [Wed, 21 Sep 2016 13:59:02 +0000 (14:59 +0100)]
platform: rewrote vppctl script to include history

Added more ability to search history to vppctl shell
*Up and down keys give history
*Script now written in Python 2.7.6
*Contains all original functionality
*Added Python dependency for deb/rpms

Change-Id: I5088f7b018fce92b9b5411df0bffc34709810dec
Signed-off-by: Padraig Connolly <padraig.connolly@intel.com>
7 years agoFIB2.0: memory leaks during load-balance update (VPP-475) 16/3316/3
Neale Ranns [Fri, 7 Oct 2016 14:14:33 +0000 (15:14 +0100)]
FIB2.0: memory leaks during load-balance update (VPP-475)

some other fixes and enhancemets to address failures in the IPv6 Scale testing:
 - The rate at which VPP sends ARP/ND requests, 1 per-millisecond, is too high. This is reduced to 1 every 10 ms. probably still too high.
 - If an ARP/ND response is received that does not contain a change to the known MAC address, no further processing is done.
 - Added stats to get info about the async FIB walks.
 - When walking FIB entries and performing a load-balance update, it is not necessary to re-insert the LB in the forwarding table.

Change-Id: Ifd47e4bdbce94495f44aaf1b78e7d1395ed870d1
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoFix double free in af_packet api/cli 23/3323/3
Ivan Kelly [Fri, 7 Oct 2016 16:02:43 +0000 (18:02 +0200)]
Fix double free in af_packet api/cli

The api was allocating a vector for the name, passing it, then freeing
it, on create. The cli allocated, passed then forgot about it.

af_packet_create_if was storing a reference to the name, which in the
case of the api, meant it was referencing dead memory. On
af_packet_delete_if this reference was freed, so in the api case, there
was a double free.

Also, the cli for delete leaked the name.

Change-Id: I4d572bd2936eaf8ea7a0a8ff282e83ac2bf1b062
Signed-off-by: Ivan Kelly <ivan@midokura.com>
7 years agoHONEYCOMB-228 Snat plugin jvpp support 14/2314/21
Marek Gradzki [Tue, 9 Aug 2016 11:23:08 +0000 (13:23 +0200)]
HONEYCOMB-228 Snat plugin jvpp support

Change-Id: I5510a0ae3ecfeb5bd41c3a73e6e05465ebd96165
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoTest Infra: Add plugin support 19/3319/2
Pierre Pfister [Fri, 7 Oct 2016 15:30:03 +0000 (16:30 +0100)]
Test Infra: Add plugin support

This patch adds plugin path to vpp commandline arguments
when 'make test' is run.
Hence, test cases can test plugins.

Change-Id: Ib90efa1f62e03b45b84533c49c7a5d040aa8cddf
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agounicast RPF for FIB2.0 02/3302/5
Neale Ranns [Mon, 3 Oct 2016 12:05:48 +0000 (13:05 +0100)]
unicast RPF for FIB2.0

In a heirarchical FIB performing a unicast RPF check would require the traversal of the data-plane graph to seek out all the adjacency objects and then read those to find their interface. This is not efficient. Instead, for each path-list we construct a list of unique input interfaces and link this uRPF-list against the entry in the prefix table. In the data-plane the uRPF list can be retrieved from the load-balance lookup result and the RPF check is a simple and efficient walk across the minimal interface list. The uRPF-list is maintained as the routing heirarchy changes, in a similar way to the data-plane object graph.
We also provide a knob to allow an arbitrary prefix to pass the loose check.

Change-Id: Ie7c0ae3c4483ef467cfd5b136ee0315ff98ec15b
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoVPP-395 Add udp-punt node(s) and API 88/3288/5
Alexander Popovsky (apopovsk) [Thu, 6 Oct 2016 05:31:23 +0000 (22:31 -0700)]
VPP-395 Add udp-punt node(s) and API

Uses existing UDP local API in order to register
requested UDP port punt to the host.

CLI: set punt udp [del] <port>
API: punt protocol <l4-protocol> [ip <ver>] [port <l4-port>] [del]
* Only UDP (l4-protocol = 17) is supported at this time

Change-Id: I9232af1c891d1ed174d77f3e0dfe60c4b9d85e40
Signed-off-by: Alex Popovsky <apopovsk@cisco.com>
7 years agoVPP-466: PG pg_create_interface API returns wrong interface index 06/3306/3
Pavel Kotucek [Fri, 7 Oct 2016 06:38:45 +0000 (08:38 +0200)]
VPP-466: PG pg_create_interface API returns wrong interface index

Change-Id: Ife7b2907012a79e6893cfa7f2cf61c7a54865248
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoVPP-464: Fix IPSec-GRE tunnel input with FIB 2.0 08/3308/2
Matus Fabian [Fri, 7 Oct 2016 10:29:09 +0000 (03:29 -0700)]
VPP-464: Fix IPSec-GRE tunnel input with FIB 2.0

Change-Id: Ic29592d39f1d672cb6e7e32b4af6123683e022a7
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoAdd some useful scripts 01/3301/1
Damjan Marion [Thu, 6 Oct 2016 14:53:32 +0000 (16:53 +0200)]
Add some useful scripts

Change-Id: Ic7ae9b43020ab4d26214bfab71b19ee259771c52
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix IP6 ND solicitation termination to allow link-local source IP 86/3286/2
John Lo [Wed, 5 Oct 2016 22:16:24 +0000 (18:16 -0400)]
Fix IP6 ND solicitation termination to allow link-local source IP

Move check for link-local source IP address for MAC/IP notification
only. Allow generation of response to IP6 ND solicitation request
if a match is found for target IP irrespective of source IP type.

Change-Id: Ib79d4b75fb4fe8aece625fd8cd26c8b9fc75ea47
Signed-off-by: John Lo <loj@cisco.com>
7 years agoFix sw_interface_set_unnumbered API for FIB2.0 87/3287/1
Igor Mikhailov (imichail) [Wed, 5 Oct 2016 22:58:35 +0000 (15:58 -0700)]
Fix sw_interface_set_unnumbered API for FIB2.0

ip[4|6]_sw_interface_enable_disable() should be called for
the unnumbered interface (and not on the interface with IP address)

Change-Id: Iffd347c539567c1302fa8136eea9c4e06b24d1bd
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
7 years agodon't require root privileges when running the tests 78/3278/2
Klement Sekera [Wed, 5 Oct 2016 12:05:33 +0000 (14:05 +0200)]
don't require root privileges when running the tests

Change-Id: Ib67bf1a898e3c1e4038698f1cb068ae9099d7921
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoFix crash caused by "show trace" due to incorrect usage of IP adjacency. 83/3183/4
Vengada Govindan [Wed, 28 Sep 2016 09:45:57 +0000 (02:45 -0700)]
Fix crash caused by "show trace" due to incorrect usage of IP adjacency.

Change-Id: Ice0a6939b399eed150b0c58139b79dd4bed91113
Signed-off-by: Vengada Govindan <venggovi@cisco.com>
7 years agoFix LISP map-request resend deadlock 77/3277/3
Florin Coras [Wed, 5 Oct 2016 13:05:34 +0000 (16:05 +0300)]
Fix LISP map-request resend deadlock

Change-Id: I2cc57079741279669241b88d0317853e1312e8c5
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoVPP-339: SNAT static mapping 16/2516/10
Matus Fabian [Fri, 26 Aug 2016 12:45:27 +0000 (05:45 -0700)]
VPP-339: SNAT static mapping

1:1 NAT
1:1 NAT with ports
1:1 NAT static mapping only - add "static mapping only [connection tracking]"
                              to snat startup config

Change-Id: I37cd06a9d71d1943eb6618034d7c547c4a9348c4
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoPython API: Add support for shared memory prefix 74/3274/3
Ole Troan [Wed, 5 Oct 2016 09:10:50 +0000 (11:10 +0200)]
Python API: Add support for shared memory prefix

Recheck.
This is to support multiple VPP instances on same host.

Change-Id: Ibe511b1f790fc8771900085577423f7e71dc45df
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoLoad Balancer: Use FIB 2.0 73/3273/2
Pierre Pfister [Wed, 5 Oct 2016 08:38:21 +0000 (09:38 +0100)]
Load Balancer: Use FIB 2.0

This patch fixes load balancer, which was not working
since FIB 2.0.

Two FIB DPO types are defined:
- One for IPv4 GRE
- One for IPv6 GRE

When an AS is created, the plugin automatically uses
the result from the FIB in order to transmit the packet.
Therefore, the packet does not need to visit ip-lookup twice.

The 'bypass' command was removed, as it is now done
automatically using this process.

Change-Id: Ib505ba31bfc67897eaff752821087821c360360a
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agodpdk: fix issue in parsing startup.conf dpdk section 71/3271/2
Damjan Marion [Wed, 5 Oct 2016 07:50:38 +0000 (09:50 +0200)]
dpdk: fix issue in parsing startup.conf dpdk section

Change-Id: Ibbcce6f54bc76b8922b1c649278643c6294d13f9
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix mutex/condvar sleep when adding API msgs, VPP-461 65/3265/3
Dave Barach [Tue, 4 Oct 2016 20:53:56 +0000 (16:53 -0400)]
Fix mutex/condvar sleep when adding API msgs, VPP-461

Simply put, threads cannot sleep waiting for the vlib memory api main
input queue to drain. If, say, thread i (i !=0) fills the vlib api
main input queue with rpc requests - and then blocks trying to add
another request - the game is over.

RPCs attempt a barrier synchronization, which fails with Pr = {1.0}
because thread i is in a mutex/condvar sleep.

Add a main-thread cut-through path, which directly invokes the RPC
callback function when called on the main thread.

Change-Id: Ib036f0cc43b5738455c3a111cff64a132537152e
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix CLI 'set interface unnumbered' to work with FIB 2.0 67/3267/1
Igor Mikhailov (imichail) [Wed, 5 Oct 2016 03:09:41 +0000 (20:09 -0700)]
Fix CLI 'set interface unnumbered' to work with FIB 2.0

Commit of the patch from Neale Ranns

Change-Id: Ia0480ef56036dd0aec990c3892a93b99eb9fb893
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
7 years agoMinor tweaks to hqos doc 64/3264/2
Chris Luke [Tue, 4 Oct 2016 20:17:56 +0000 (16:17 -0400)]
Minor tweaks to hqos doc

- correct formatting errors
- add to user_doc tree
- unix line endings, not windows(!)

Change-Id: I9aa5511c398fc33ecb25fb33ae64c8e666c56dd8
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agoFix LISP L2 fwd entry updates 50/3250/3
Florin Coras [Tue, 4 Oct 2016 15:03:49 +0000 (18:03 +0300)]
Fix LISP L2 fwd entry updates

Change-Id: I554041bf47aa82dd6f6e0563c68d8bbd3b18b255
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoVPP-355: add PBB (802.1ah) tag rewrite 20/2520/12
Pavel Kotucek [Fri, 26 Aug 2016 14:11:36 +0000 (16:11 +0200)]
VPP-355: add PBB (802.1ah) tag rewrite

- new API/CLI to define pbb tag rewrite on interface
- encapsulation/decapsulation of PBB tags
- tracing of PBB header
- PBB tag rewrite operations

Change-Id: I538b3025a8b2e41cdeed9f10fea94bbcd28b5f5f
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoUpdate CSIT tests 160925 -> 161002 49/3249/1
Jan [Tue, 4 Oct 2016 14:23:49 +0000 (16:23 +0200)]
Update CSIT tests 160925 -> 161002

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

Change-Id: I45f35e14e162bc1e8c69bd632f8813dde9f8270b
Signed-off-by: Jan Gelety <jgelety@cisco.com>
7 years agotest: new test infrastructure 37/3237/2
Damjan Marion [Mon, 3 Oct 2016 17:44:57 +0000 (19:44 +0200)]
test: new test infrastructure

Change-Id: I73ca19c431743f6b39669c583d9222a6559346ef
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Signed-off-by: Stefan Kobza <skobza@cisco.com>
Signed-off-by: Matej Klotton <mklotton@cisco.com>
Signed-off-by: Maciek Konstantynowicz <mkonstan@cisco.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFIB Memory Usage Diagnostics 35/3235/3
Neale Ranns [Sun, 2 Oct 2016 20:20:15 +0000 (21:20 +0100)]
FIB Memory Usage Diagnostics

add two new CLI commands:
 show fib memory
 show dpo memory
to display the memory usage of the FIB and DPO object types respectively.

Change-Id: I759e149a0b6fbb58d59c139362221dc33531cffa
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agovhost-user: avoid branching during prefetch 36/3236/2
Damjan Marion [Mon, 3 Oct 2016 15:44:24 +0000 (17:44 +0200)]
vhost-user: avoid branching during prefetch

Change-Id: I1f4421289b2f93b64a2470559d834717ef40e181
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agovhost: predict map_guest_mem returns similar results over time 20/3020/6
Pierre Pfister [Wed, 21 Sep 2016 07:08:55 +0000 (08:08 +0100)]
vhost: predict map_guest_mem returns similar results over time

It is very likely that all packets are being stored in the same
memory area.
It is also likely that all indirect descriptors are being
allocated from the same area.

This patch takes this into account by predicting the value
returned by map_guest_mem will be the same as the previous one.
It falls back to slow mode otherwise.

Change-Id: Ic1044a172fc4abe77387ba2e19e11cd1f39ad1e3
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoFix string parsing in lisp map-request itr-rlocs command 31/3231/2
Filip Tehlar [Mon, 3 Oct 2016 12:08:59 +0000 (14:08 +0200)]
Fix string parsing in lisp map-request itr-rlocs command

Change-Id: Ie17b324492d61130690ba9d05821eaefe10072d4
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoL2 over LISP and GRE (VPP-457) 27/3227/2
Neale Ranns [Mon, 3 Oct 2016 08:40:25 +0000 (09:40 +0100)]
L2 over LISP and GRE (VPP-457)

Change-Id: I0d7f9c7f41a9f9e0acb0950adedb90d45df08c2a
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoRemove old test files 26/3226/2
Damjan Marion [Fri, 30 Sep 2016 16:10:26 +0000 (18:10 +0200)]
Remove old test files

Make space for upcoming test framework.

Change-Id: I14da6cf95c645d8ee2b71579a658dc7ef3b9f027
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years ago(VPP-455) arp doesn't work when ip4 classifier configured with fib 2.0 28/3228/1
Neale Ranns [Sun, 2 Oct 2016 15:39:06 +0000 (16:39 +0100)]
(VPP-455) arp doesn't work when ip4 classifier configured with fib 2.0

Change-Id: I046de0c00db75d25ed90e33e9910c9dd0ff95580
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoVPP-363: add ability to change mac address of the interface 48/2548/8
Pavel Kotucek [Mon, 26 Sep 2016 08:40:02 +0000 (10:40 +0200)]
VPP-363: add ability to change mac address of the interface

Added ability to change interface address.
Added new CLI and API functions.

Change-Id: Ia336bc75ad8c5858c26f39af851485c4c6f19f58
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoFix double-free crash 25/3225/1
David Hotham [Fri, 30 Sep 2016 15:32:18 +0000 (16:32 +0100)]
Fix double-free crash

loop0 interfaces were transmitting the same packets multiple times,
eventually causing them to be freed multiple times

Change-Id: I32fcf5cfa10e58bb9e9bbbbc1b9312518d00ee9f
Signed-off-by: David Hotham <david.hotham@metaswitch.com>
7 years agoRemove RPM package dependency on vpp-devel 20/3220/2
John DeNisco [Fri, 30 Sep 2016 12:33:40 +0000 (08:33 -0400)]
Remove RPM package dependency on vpp-devel

Change-Id: Ie6e1b3c8c2e0cf64f06aafe13a693686fd4b486a
Signed-off-by: John DeNisco <jdenisco@cisco.com>
7 years agoVPP-454 Fix LISP GID dictionary issue 16/3216/2
Filip Tehlar [Fri, 30 Sep 2016 10:47:59 +0000 (12:47 +0200)]
VPP-454 Fix LISP GID dictionary issue

GID dictionary IP prefix entries are rewritten with more narrow one
which is not desirable. This patch does exact matching instead of
longest prefix matching.

Change-Id: I0191e23229a69ffe86f82ea4d71e4a5534dbb5b0
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agovat: add pg interfaces to sw_interface_dump (VPP-451) 15/3215/2
Damjan Marion [Fri, 30 Sep 2016 08:53:30 +0000 (10:53 +0200)]
vat: add pg interfaces to sw_interface_dump (VPP-451)

Change-Id: I976a44dcfb32b1132c14363174239333315b2c6f
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-450 Fix adding LISP adjacencies via CLI 84/3184/4
Filip Tehlar [Wed, 28 Sep 2016 12:27:59 +0000 (14:27 +0200)]
VPP-450 Fix adding LISP adjacencies via CLI

Change-Id: If90c9c630629e727fffc5d450516045a04433661
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoVPP-120: include custom types to Python representation of vpe.api 98/3198/3
Marek Gradzki [Thu, 29 Sep 2016 11:20:52 +0000 (13:20 +0200)]
VPP-120: include custom types to Python representation of vpe.api

Change-Id: Ide97a8bf55d3baf41a1e86af2c67c6b7b26b657a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoVPP-378: rename jvpp package to the same as groupId of deployed jars 78/3178/3
Marek Gradzki [Wed, 28 Sep 2016 08:12:04 +0000 (10:12 +0200)]
VPP-378: rename jvpp package to the same as groupId of deployed jars

Related changes:
- NSH: https://gerrit.fd.io/r/#/c/3181/
- Honeycomb: https://gerrit.fd.io/r/#/c/3182

Change-Id: Ifdd6b8b575916fdf99794618dbe604c2e17e8e82
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoDPDK HQoS: Enable Hierarchical Scheduler in VPP 48/2048/10
Jasvinder Singh [Thu, 21 Jul 2016 16:02:19 +0000 (17:02 +0100)]
DPDK HQoS: Enable Hierarchical Scheduler in VPP

This commit extends the vpp framework with new thread type "hqos-threads" that
runs the Hierarchical Quality of Service (HQoS) scheduler associted with output
interface.  HQoS Scheduler prioritize the packets from different users and
ensures sufficient bandwidth to pass the more important traffic.

At high level, HQoS scheduler is a buffer that can temporarily store a
large number of packets. In otherwords, it is a collection of large number
of queues organized into hierarchy of 5 levels; the port (i.e. the physical
interface) is at the root of the hierarchy followed by the subport (a set
of users), the pipes (individual users), the traffic classes (each with a
strict priority) and at the leaves, the queues.

In each HQoS scheduler, three operations are performed; classification
(setting HQoS port, subport, pipe, traffic class and queue within traffic
class from packet fields), enqueue (selecting HQoS queue for the packet,
and to drop the packet if the queue is full) and dequeue (schedule the
packet based on its length and available credits, and handover the scheduled
packet to the output interface).

In vpp, the number of hqos threads will be equal to cpu cores specified in
corelist-hqos-threads parameter cpu section of the vpp configuration file.
One hqos thread can run HQoS for multiple output interfaces. A particular HQoS
instance is initialised with default parameters required to configure hqos port,
subport, pipe and queues. Some of them can be re-configured in run-time
through CLI commands as well binary APIs.

Following illustrates the sample startup configuration file with 4x worker
threads feeding 2x hqos threads that handle each HQoS for 1x output interface.
For more details on HQoS configuration please refer to DPDK Programmer's Guide.

dpdk {
socket-mem 16384,16384

dev 0000:02:00.0 {
num-rx-queues 2
hqos
}
dev 0000:06:00.0 {
num-rx-queues 2
hqos
}

num-mbufs 1000000
}

cpu {
  main-core 0
  corelist-workers  1, 2, 3, 4
  corelist-hqos-threads  5, 6
}

Change-Id: I635c3395a7c4ddf0a239ef77b0b0a31a6dfc4767
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
7 years agoFix packet trace for IP4/IP6 lookup/forwarding nodes 72/3172/2
John Lo [Tue, 27 Sep 2016 21:44:02 +0000 (17:44 -0400)]
Fix packet trace for IP4/IP6 lookup/forwarding nodes

Change-Id: Ibf3d2e69dbac28fbef77d8ba20d7f5a60eea0198
Signed-off-by: John Lo <loj@cisco.com>
7 years agoclassify: fix issue with output classify node using wrong sw_if_index 73/2873/3
Christophe Fontaine [Fri, 9 Sep 2016 14:18:43 +0000 (16:18 +0200)]
classify: fix issue with output classify node using wrong sw_if_index

Output classify node should use sw_if_index[VLIB_TX]
Like in l2_output.c, we have to use sw_if_index[VLIB_TX]
to get the appropriate configuration.

Change-Id: I96b1a03ddf5c9e9c45fa3f5df3ea88895ed4345e
Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
7 years agoarp: handle ARP proxy after tunnelling 81/2981/4
David Hotham [Tue, 20 Sep 2016 13:34:00 +0000 (13:34 +0000)]
arp: handle ARP proxy after tunnelling

Only rewind the buffer back to the start of the ethernet header,
rather than all the way.  We don't want to undo earlier
decapsulation.

Change-Id: I5f4b183eb3e8df690695ce3a97e55f3b0579a266
Signed-off-by: David Hotham <david.hotham@metaswitch.com>
7 years agoFix RPM packaging dependencies 71/3171/2
John DeNisco [Tue, 27 Sep 2016 20:43:04 +0000 (16:43 -0400)]
Fix RPM packaging dependencies

Change-Id: Ife1523e11b7225ea0fd41c06c3b802bb171e91f4
Signed-off-by: John DeNisco <jdenisco@cisco.com>
7 years agoVPP-308: Added workaround for failed vnet build. For some reason 83/2383/2
Thomas F Herbert [Mon, 1 Aug 2016 22:33:48 +0000 (18:33 -0400)]
VPP-308: Added workaround for failed vnet build. For some reason
the clock slew is greater with Vagrant 1.8.5 which causes Makefile.am to be
timestamped as newer which causes builds to fail.

Change-Id: Id0d35c41ac66a2841c5aae20dd678f4bc125e41b
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
7 years agoFix hugepage detection issue 67/3167/2
Damjan Marion [Tue, 27 Sep 2016 15:51:13 +0000 (17:51 +0200)]
Fix hugepage detection issue

Per-numa free hugepages number was not read correctly due
to wrong sysfs path.

Change-Id: I889111027d7f93c42e2e4673d8d4e8f75ae065b6
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoScheduler policy & priority config, few minor fixes (VPP-425) 63/3163/3
Pavel Kotucek [Fri, 23 Sep 2016 06:54:14 +0000 (08:54 +0200)]
Scheduler policy & priority config, few minor fixes (VPP-425)

- scheduler-prio -> scheduler-priority
- improve formatting of "show threads" output
- add description to "startup.conf"
- bail out of priority is set without rr or fifo policy

Change-Id: Idf897f7603d989d6c2d0093eea89c5d1653eaa8c
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoFix missing output in generated CLI/config 69/3169/2
Chris Luke [Mon, 26 Sep 2016 22:51:56 +0000 (15:51 -0700)]
Fix missing output in generated CLI/config

The templates were looking for the name of the CLI_COMMAND
and CONFIG_FUNCTION structures in the srong place.

Change-Id: I709d6716216173ba6a7ed41a260728238f96d2db
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agoFIX sysctl configuration directory 56/3156/3
Miroslav Miklus [Tue, 27 Sep 2016 11:23:09 +0000 (13:23 +0200)]
FIX sysctl configuration directory

man sysctl.d:
...
Packages should install their configuration files in /usr/lib/. Files in
/etc/ are reserved for the local administrator, who may use this logic to
override the configuration files installed by vendor packages. All configuration
files are sorted by their filename in lexicographic order, regardless of which
of the directories they reside in. If multiple files specify the same option,
the entry in the file with the lexicographically latest name will take
precedence. It is recommended to prefix all filenames with a two-digit number
and a dash, to simplify the ordering of the files.

If the administrator wants to disable a configuration file supplied by
the vendor, the recommended way is to place a symlink to /dev/null in the
configuration directory in /etc/, with the same filename as the vendor
configuration file.
...

Change-Id: I24b8b7fddf64ec287282ae195e07c9592c494ebe
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
7 years agoVPP-448 Fix LISP APIs using binary data 57/3157/5
Filip Tehlar [Tue, 27 Sep 2016 11:28:01 +0000 (13:28 +0200)]
VPP-448 Fix LISP APIs using binary data

* use zero length array in LISP API to avoid confusion
* add missing LISP data structure definitions in API documentation
* fix wrong memory allocation in VAT

Change-Id: I9b5e656a071fc24cb698c164db953c09b66deeeb
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoFix "show adj nbr" displaying IP4 address for IP6 neighbors 68/3168/1
John Lo [Tue, 27 Sep 2016 16:05:00 +0000 (12:05 -0400)]
Fix "show adj nbr" displaying IP4 address for IP6 neighbors

Change-Id: Ic453e68bbd3d5ae8d57b513da6781bb957fc84a4
Signed-off-by: John Lo <loj@cisco.com>
7 years agofix create sub-interface range cli 29/3129/2
Eyal Bari [Mon, 26 Sep 2016 06:24:09 +0000 (09:24 +0300)]
fix create sub-interface range cli

the create sub interface command was creating the interfaces with
the same outer_vlan value - causing an error

changed to use the interface id as outer_vlan in case of a range

Change-Id: I3808094d1c99a37adac61e3ece573a6687306461
Signed-off-by: Eyal Bari <ebari@cisco.com>
7 years agoVPP-425: Scheduler policy & priority configuration 02/3102/4
Pavel Kotucek [Fri, 23 Sep 2016 06:54:14 +0000 (08:54 +0200)]
VPP-425: Scheduler policy & priority configuration

Add ability to hadle scheduling policy and priority via config file.
CPU section contains new items to specify scheduling policy and
priority:

cpu {
scheduler-priority <num>
scheduler-policy [other | batch | idle | fifo | rr ]
}

Change-Id: Ie20765280e458e1d7deb4a8c66daaa69793f795e
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
7 years agoFix CLI for adding negative LISP fwd entries 50/3150/2
Florin Coras [Mon, 26 Sep 2016 15:59:44 +0000 (18:59 +0300)]
Fix CLI for adding negative LISP fwd entries

Change-Id: I9ee7b6ea2def16715f717f8483c86e0157628946
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoLISP Source/Dest control plane support, VPP-197 84/2884/9
Florin Coras [Wed, 14 Sep 2016 14:01:38 +0000 (16:01 +0200)]
LISP Source/Dest control plane support, VPP-197

Change-Id: If88e4161e0944b657e6183b7b44348f7f46ba0a8
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoFix import line for setup.py 32/3132/3
Peter Ginchev [Mon, 26 Sep 2016 07:46:17 +0000 (10:46 +0300)]
Fix import line for setup.py

Build fails in case python-setuptools is not installed.

Change-Id: I1611f3560db82a4a48c51a9f614a813a9a540698
Signed-off-by: Peter Ginchev <pginchev@cisco.com>
7 years agoFix for potential use of uninitialized variables 26/3126/2
Igor Mikhailov (imichail) [Sun, 25 Sep 2016 22:11:53 +0000 (15:11 -0700)]
Fix for potential use of uninitialized variables

The code allowed for the command 'set interface unnumbered'
to be processed without specifying any parameters,
thus the set logic of the command would have been using uninitialized
variables 'unnumbered_sw_if_index' and 'inherit_from_sw_if_index'.

Change-Id: I4de14fa1096527c5c48f74304db379f9953760a8
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
7 years agoUpdate CSIT tests 160919 -> 160925 40/3140/2
Jan [Mon, 26 Sep 2016 10:13:34 +0000 (12:13 +0200)]
Update CSIT tests 160919 -> 160925

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

Change-Id: I5daf02786185159cd2a156144f247d3b45369c33
Signed-off-by: Jan Gelety <jgelety@cisco.com>
7 years agoFix jvpp-core dependencies 31/3131/5
Marek Gradzki [Mon, 26 Sep 2016 07:04:49 +0000 (09:04 +0200)]
Fix jvpp-core dependencies

Change-Id: I242d590c9d2fa733cc1411fa5d96bb3944d5b5fe
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoPacket-generator related fib 2.0 fixes 22/3122/1
Dave Barach [Sun, 25 Sep 2016 13:16:53 +0000 (09:16 -0400)]
Packet-generator related fib 2.0 fixes

Fix dpo0->dpo1 typo in ip4_local source RPF check.

Pass source RPF check on drop adjacencies. Add a bit of defensive driving
in ip4_icmp_error(...).

Change-Id: I0e444886953f5500766f9b9662fad79fef44a260
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoRmove duplicate register of unformat_l2_input_next_node 01/3101/2
Hongjun Ni [Fri, 23 Sep 2016 14:28:40 +0000 (22:28 +0800)]
Rmove duplicate register of unformat_l2_input_next_node

Change-Id: I38dc7c37b0debcea9aa1a366b516e86505dd096e
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoFix source RPF check in ip4_local 17/3117/1
Dave Barach [Fri, 23 Sep 2016 16:05:21 +0000 (12:05 -0400)]
Fix source RPF check in ip4_local

We need to accept src ip addresses which hit receive and clean
adjacencies.

Change-Id: I8cf07f622058203665ed09280452ed8412984bd5
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix eventfd leakage issue in vhost-user mode 96/3096/3
Steve Shin [Thu, 22 Sep 2016 19:08:55 +0000 (12:08 -0700)]
Fix eventfd leakage issue in vhost-user mode

The leakage happens on the file descriptors for kickfd and vring's callfd.
Those file descriptors should be closed when vhost-interface is disconnected.

Change-Id: I12453b0c3eac037a1dc040a001465059b8f672c2
Signed-off-by: Steve Shin <jonshin@cisco.com>
7 years agoPython API: Preparation for RPM/DEB packaging. 18/2918/10
Ole Troan [Mon, 12 Sep 2016 20:00:32 +0000 (22:00 +0200)]
Python API: Preparation for RPM/DEB packaging.

Recheck.

Repackage the Python API binding to include all
necessary modules in a single Python package.

Change-Id: I5e35141d413bfb1aad650217e1ca07d85646c349
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoVPP-424 fix lldp_main declaration 74/3074/2
Klement Sekera [Thu, 22 Sep 2016 09:50:48 +0000 (11:50 +0200)]
VPP-424 fix lldp_main declaration

Change-Id: I1f30977f0b315fa72d73a29a8585b1711d5044d8
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoFix detection of packet output via BVI into a BD and SHG adjustment 98/3098/3
John Lo [Thu, 22 Sep 2016 22:24:13 +0000 (18:24 -0400)]
Fix detection of packet output via BVI into a BD and SHG adjustment

In BVI output node, set a signature value in packet buffer field
sw_if_index[VLIB_TX] so l2-input node can reliably check that
packet came into a BD through BVI so it can set the SHG of the
packet to 0 for a unicast packet.

Change-Id: I301aa2896677e11d0c964ca476dddcb5a8804fc2
Signed-off-by: John Lo <loj@cisco.com>
7 years agoEnable doc building on MacOS 99/3099/2
Chris Luke [Fri, 23 Sep 2016 00:52:26 +0000 (20:52 -0400)]
Enable doc building on MacOS

Simple tweak to the Makefiles to allow "make doxygen" to work
natively on Macs - assuming the appropriate things have been
installed first, which it tests for.

Change-Id: I1a3e72759d533270a0512de38595c3bc3f71dee0
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agol2_output: fix packet drop error reporting when mapping is in progress 93/3093/2
Damjan Marion [Thu, 22 Sep 2016 14:37:29 +0000 (16:37 +0200)]
l2_output: fix packet drop error reporting when mapping is in progress

Change-Id: I64aa4c28e87e82a742313e9b89409c957fa62101
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix lisp-cp table_id lookup for punted packets 94/3094/2
Florin Coras [Thu, 22 Sep 2016 16:02:17 +0000 (18:02 +0200)]
Fix lisp-cp table_id lookup for punted packets

Change-Id: Ibe6f8c6fadb2e467353bafebffde04bc6eb72af3
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoVPP-189: fix coverity issue in api_format.c 41/3041/3
Florin Coras [Wed, 21 Sep 2016 14:38:19 +0000 (16:38 +0200)]
VPP-189: fix coverity issue in api_format.c

Change-Id: I8cf3bb27bc699be3b8de781ea84db4c7fb3c7553
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agovhost-user: branchless SSE4.2 implementation of map_guest_mem() 74/2974/5
Damjan Marion [Tue, 20 Sep 2016 09:25:27 +0000 (11:25 +0200)]
vhost-user: branchless SSE4.2 implementation of map_guest_mem()

Change-Id: I64349830c1f7534a8d090572e9473c51c0818e51
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-426: Rename parameter in LISP remote mapping VAT command 92/3092/2
Filip Tehlar [Thu, 22 Sep 2016 13:30:01 +0000 (15:30 +0200)]
VPP-426: Rename parameter in LISP remote mapping VAT command

Change-Id: Ie52243bd1654e3d0663b09bd1f21e8c15e93f07d
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agovhost-user: remove dependency on dpdk code 05/3005/2
Damjan Marion [Tue, 20 Sep 2016 21:21:02 +0000 (23:21 +0200)]
vhost-user: remove dependency on dpdk code

Change-Id: I48908e0fa010570aefc43dd552ee81ee69fc2796
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoRefactor pre-Doxy siphon scripts; VPP-396 61/2861/6
Chris Luke [Mon, 12 Sep 2016 12:55:13 +0000 (08:55 -0400)]
Refactor pre-Doxy siphon scripts; VPP-396

- Modularize the code to make the Siphon process easier to
  maintain.
- Move much of the output rendering into Jinja2 templates.
- Add syscfg siphon type for startup config documentation.
- Add sample syscfg documentation.
- Add clicfg and syscfg preamble docs, adapted from their wiki pages.
- Fix sorting of CLI items across multiple directories.

Change-Id: Ib8288fe005adfea68ceed75a38ff8eba25d3cc79
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agovpp python api - fix vla pack generation 60/2960/2
Gabriel Ganne [Mon, 19 Sep 2016 12:05:15 +0000 (14:05 +0200)]
vpp python api - fix vla pack generation

This fixes commit 1732fc1ab851c454a74efda47a383f48691d545a.

Change-Id: I3d9f1384c20d2ca22eaf2aae553455789b934b6e
Signed-off-by: Gabriel Ganne <gabriel.ganne@qosmos.com>
7 years agoA Protocol Independent Hierarchical FIB (VPP-352) 02/2502/17
Neale Ranns [Thu, 25 Aug 2016 14:29:12 +0000 (15:29 +0100)]
A Protocol Independent Hierarchical FIB (VPP-352)

Main Enhancements:
 - Protocol Independent FIB API
 - Hierarchical FIB entries. Dynamic recursive route resolution.
 - Extranet Support.
 - Integration of IP and MPLS forwarding.
 - Separation of FIB and Adjacency databases.
 - Data-Plane Object forwarding model.

Change-Id: I52dc815c0d0aa8b493e3cf6b978568f3cc82296c
Signed-off-by: Neale Ranns <nranns@cisco.com>
7 years agoMove doxytags file to html output directory 39/3039/2
Chris Luke [Wed, 21 Sep 2016 14:10:13 +0000 (10:10 -0400)]
Move doxytags file to html output directory

So that downstream projects can make use of the generated
Doxygen tags file, move it into the html directory that is
transferred to Nexus.

Change-Id: I04dc4777c9ea62f429f783f66ef4e2ecb2923131
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agoVPP-414: Fixed IPSec transport mode in esp_encrypt.c 34/3034/2
Matus Fabian [Wed, 21 Sep 2016 12:13:01 +0000 (05:13 -0700)]
VPP-414: Fixed IPSec transport mode in esp_encrypt.c

Change-Id: I27accb0c87d6bf2fbbe90d8d1bc074697299e639
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agoCopy the 16.09 release notes to master 37/3037/1
Chris Luke [Wed, 21 Sep 2016 13:35:01 +0000 (09:35 -0400)]
Copy the 16.09 release notes to master

- Copy the 16.09 release notes to master
- Add some notes for 16.06 (from the press release)
- Add some structure around notes for each release
- Add skeleton for next release

Change-Id: Id5a5d8bf02fce1bbaed303e6c6e4f8908c7e7d75
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agodpdk: fix wrong tx ring size calculations 47/2947/2
Damjan Marion [Mon, 19 Sep 2016 11:44:37 +0000 (13:44 +0200)]
dpdk: fix wrong tx ring size calculations

At many places code was using constant ring size od 4096
which was defined in macro DPDK_TX_RING_SIZE.

As we support differnet ring size and default value s now
1024, we need to remove DPDK_TX_RING_SIZE and use
value stored in device structure.

For that reason dpdk_device_t.nb_tx_desc is moved to
first cacheline.

Change-Id: I2c2ac11f0f5e8ae779d34f9a9104eaf2921ec34c
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodpdk: move number of sub-interfaces to 2nd cacheline, introduce flag 46/2946/4
Damjan Marion [Mon, 19 Sep 2016 11:31:49 +0000 (13:31 +0200)]
dpdk: move number of sub-interfaces to 2nd cacheline, introduce flag

This saves 2 bytes from the 1st cacheline.

Change-Id: I691a3a0ee07ec2db4ae85b96b451ef53ad8c9458
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodpdk: use flags for identifying interface types 45/2945/4
Damjan Marion [Mon, 19 Sep 2016 11:18:09 +0000 (13:18 +0200)]
dpdk: use flags for identifying interface types

This will allow us to handle some more complex situations
like in case when hqos needs to be enabled only for some PMDs.

Change-Id: I5421a8d4cf29b8394b9e956cc4e39737dd07dbbb
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoUse SSE instructions for matching tagged frames by ethertype 38/2938/4
Damjan Marion [Mon, 19 Sep 2016 09:32:03 +0000 (11:32 +0200)]
Use SSE instructions for matching tagged frames by ethertype

This change improves performance in l2 scenarios for about 1-2%.

Change-Id: Ie35ed8ad70a3b95dd78c0d158c485a10dabaf0eb
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-419 add thread-safety to LLDP feature 92/2992/2
Klement Sekera [Tue, 20 Sep 2016 13:45:58 +0000 (15:45 +0200)]
VPP-419 add thread-safety to LLDP feature

Change-Id: I3b1153a64674c2caef71c968739ecca6512e9929
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agofd closed twice 63/2963/2
Eyal Bari [Mon, 19 Sep 2016 15:47:39 +0000 (18:47 +0300)]
fd closed twice

fd close()ed after call to unix_file_del of same fd

Change-Id: Ia8bf77b72b6cea7c70e004199ce11a33b6260720
Signed-off-by: Eyal Bari <ebari@cisco.com>