vpp.git
6 years agoACL-plugin add "replace" semantics for adding a new MacIP acl 40/8340/4
Pavel Kotucek [Thu, 7 Sep 2017 06:17:31 +0000 (08:17 +0200)]
ACL-plugin add "replace" semantics for adding a new MacIP acl

Change-Id: Ia5c869b2d8b8ad012b9e89fb6720c9c32d9ee065
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
6 years agoreplace uint32_t with u32 84/8384/2
Neale Ranns [Mon, 11 Sep 2017 17:34:33 +0000 (10:34 -0700)]
replace uint32_t with u32

Change-Id: I6cab79c266837a8731adcf78c9e093dfa6be0ead
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoarp/glean: fix hash computation 67/8367/2
Florin Coras [Fri, 8 Sep 2017 20:22:38 +0000 (16:22 -0400)]
arp/glean: fix hash computation

Change-Id: Ifef8a9328bb865f6ddb041bafe3699153f89755a
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoRecombine diags and minimum barrier open time changes (VPP-968) 22/8322/4
Colin Tregenza Dancer [Wed, 6 Sep 2017 19:23:24 +0000 (20:23 +0100)]
Recombine diags and minimum barrier open time changes (VPP-968)
Support logging to both syslog and elog
Also include DaveB is_mp_safe fix, which had been lost

Change-Id: If82f7969e2f43c63c3fed5b1a0c7434c90c1f380
Signed-off-by: Colin Tregenza Dancer <ctd@metaswitch.com>
6 years agomemif: mode ip is not settable from binary API 68/8368/2
Steven [Fri, 8 Sep 2017 22:40:32 +0000 (15:40 -0700)]
memif: mode ip is not settable from binary API

While mode ip is supported via the CLI for creating a memif interface,
it is not settable from the binary API due to missing code.

While at it, update the help usage to include the missing keyword secret.

Change-Id: Ia9c71f4017210a5e1733ce4992fbb566b7d20c1a
Signed-off-by: Steven <sluong@cisco.com>
6 years agoFIB table add/delete API 71/8371/2
Neale Ranns [Sun, 10 Sep 2017 11:39:11 +0000 (04:39 -0700)]
FIB table add/delete API

part 2;
  - this adds the code to create an IP and MPLS table via the API.
  - but the enforcement that the table must be created before it is used is still missing, this is so that CSIT can pass.

Change-Id: Id124d884ade6cb7da947225200e3bb193454c555
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoImproved arm64 chip detection 72/8372/2
Brian Brooks [Wed, 6 Sep 2017 18:19:48 +0000 (13:19 -0500)]
Improved arm64 chip detection

Use ARMv8 Main ID Register (exposed thru /proc/cpuinfo) to identify
the CPU implementor and part number. For further details, see the
ARMv8 ARM D7.2.66.

Change-Id: I2b0d0b165cda4ab9fc57c645af90e9e354b73f44
Signed-off-by: Brian Brooks <brian.brooks@arm.com>
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Ola Liljedahl <ola.liljedahl@arm.com>
Reviewed-by: Song Zhu <song.zhu@arm.com>
6 years agoNAT: fixed hairpinning for in2out translation as an output feature (VPP-976) 73/8373/1
Matus Fabian [Mon, 11 Sep 2017 05:17:47 +0000 (22:17 -0700)]
NAT: fixed hairpinning for in2out translation as an output feature (VPP-976)

Test whether the hairpinning flag is set only for packets from NAT inside interface.

Change-Id: I4a4fdd2084a76a70ce9dfe3e2b8332c02fa2eccd
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agomove unix_file_* code to vppinfra 66/8366/2
Damjan Marion [Fri, 8 Sep 2017 17:52:02 +0000 (19:52 +0200)]
move unix_file_* code to vppinfra

This will allow us to use this code in client libraries without vlib.

Change-Id: I8557b752496841ba588aa36b6082cbe2cd1867fe
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agophysmem: make fake allocation non-fatal if we cannot pick numa node 64/8364/2
Damjan Marion [Fri, 8 Sep 2017 17:21:00 +0000 (19:21 +0200)]
physmem: make fake allocation non-fatal if we cannot pick numa node

Change-Id: I563c043ed82e3ef199fc3d47931108f31cc01728
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agogitignore update for IDE 65/8365/2
Keith Burns (alagalah) [Fri, 8 Sep 2017 17:58:44 +0000 (10:58 -0700)]
gitignore update for IDE

Change-Id: I95096e8d507f9bcb0f808d0da0355655b474d29a
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoInitialize ip4_reass_lock of map_main to zero (VPP-975) 24/8324/2
dongjuan [Thu, 7 Sep 2017 06:58:56 +0000 (14:58 +0800)]
Initialize ip4_reass_lock of map_main to zero (VPP-975)

Change-Id: I0f58100a944e36f5b530101178303d4595b3207f
Signed-off-by: dongjuan <dong.juan1@zte.com.cn>
6 years agoadd apr-devel to rpm dependency list for centos-7 20/8320/2
Gabriel Ganne [Wed, 6 Sep 2017 08:44:07 +0000 (10:44 +0200)]
add apr-devel to rpm dependency list for centos-7

Error mesasge:
...
rpmbuild -bb \
  --define "_topdir /home/gannega/vpp" \
  --define "_version 17.10" \
  --define "_release rc0~269_g030ab48" \
  vpp.spec
error: Failed build dependencies:
        apr-devel is needed by vpp-17.10-rc0~269_g030ab48.x86_64

Change-Id: I7c09b65dcc9e57cae3da396c0165b8a4c85a8c2b
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agovlib: move linux-specific code to vlib/linux 60/8360/3
Damjan Marion [Fri, 8 Sep 2017 10:26:12 +0000 (12:26 +0200)]
vlib: move linux-specific code to vlib/linux

Change-Id: Id79d2c2be7a98e15416a537c890a8f2dd6d4464d
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoPUNT: Missing include for readv() 55/8355/3
Marco Varlese [Fri, 8 Sep 2017 08:40:34 +0000 (10:40 +0200)]
PUNT: Missing include for readv()

The missing header include was generating a compile-time error;
src/vnet/ip/punt.c:460:10: error: implicit declaration of function 'readv'

Change-Id: I3f74294e7824ea3602b8d416c86fdada1aac1906
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agomemif: fix coverity warnings as of 9/7 44/8344/5
Steven [Thu, 7 Sep 2017 16:20:56 +0000 (09:20 -0700)]
memif: fix coverity warnings as of 9/7

1. coverity complains about "buffer not null terminated" for strncpy because we
pass the size of the destination to the call which is equal to the true size
of the destination. We subtract 1 for the size to accommodate the null like all
other places are already doing it.

2. Add a check to tx_queues in memif_interface_tx_inline to avoid "divide by zero".

3. To avoid null pointer dereference in memif_create_if, change the goto done
rather than goto error and spit a more meaningful error rather than silent about it.

4. Shuffle a line to avoid "check after use" in vl_api_memif_delete_t_handler.

Change-Id: Icba7ecd5362c012a48ac35795d31aab356617420
Signed-off-by: Steven <sluong@cisco.com>
6 years agoACL-plugin MACIP ACLs tests 41/8341/2
Pavel Kotucek [Thu, 7 Sep 2017 12:44:52 +0000 (14:44 +0200)]
ACL-plugin MACIP ACLs tests

Change-Id: Ie40c837358454cfe9475cb2c14fdf20b24fa6602
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
6 years agoacl-plugin: add hitcount to applied hash-acl entries 39/8339/2
Andrew Yourtchenko [Thu, 7 Sep 2017 11:49:07 +0000 (13:49 +0200)]
acl-plugin: add hitcount to applied hash-acl entries

Add a counter incremented upon the ACL check,
so it is easier to see which kind of traffic
is being checked by the policy, add the corresponding
output to the debug CLI "show acl-plugin tables" command.

Change-Id: Id811dddf204e63eeceabfcc509e3e9c5aae1dbc8
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoFix socket_test.sh vagrant based multi-host tests. 16/8316/4
Dave Wallace [Wed, 6 Sep 2017 05:59:43 +0000 (01:59 -0400)]
Fix socket_test.sh vagrant based multi-host tests.

Change-Id: I8ef75a0c702098030c6814c127d3443820122327
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoFixes for issues reported by Coverity (VPP-972) 38/8338/5
Chris Luke [Thu, 7 Sep 2017 11:40:13 +0000 (07:40 -0400)]
Fixes for issues reported by Coverity (VPP-972)

Change-Id: I25238debb7081b4467aec4620dfdef33fbef3295
Signed-off-by: Chris Luke <chrisy@flirble.org>
6 years agoAllow individual stats API and introduce stats.api 18/7918/26
Keith Burns (alagalah) [Sun, 6 Aug 2017 15:26:29 +0000 (08:26 -0700)]
Allow individual stats API and introduce stats.api
- want_interface_simple_stats
- want_interface_combined_stats
- want_ip4|6_fib|nbr_stats

Change-Id: I4e97461def508958b3e429c3fe8859b36fef2d18
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agovlib physmem rework 33/8333/2
Damjan Marion [Thu, 20 Jul 2017 16:10:35 +0000 (18:10 +0200)]
vlib physmem rework

This patch adds supprot support for multiple numa-aware physmem regions.

Change-Id: I5c69a6f4da33c8ee21bdb8604d52fd2886f2327e
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoLISP: add neighbor discovery and CP protocol separation APIs 99/8299/3
Filip Tehlar [Mon, 4 Sep 2017 16:54:33 +0000 (18:54 +0200)]
LISP: add neighbor discovery and CP protocol separation APIs

Change-Id: Ia2fc4621f0e199b0d02ac4d2104b54bdb49c14dd
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoLISP: Add APIs for enable/disable xTR/P-ITR/P-ETR modes 19/8319/2
Filip Tehlar [Wed, 6 Sep 2017 08:07:39 +0000 (10:07 +0200)]
LISP: Add APIs for enable/disable xTR/P-ITR/P-ETR modes

Change-Id: Ieeb3b7eaabb568180320fe54d3eae2d26f3e4704
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoThe missing variable (added with this patch) was causing the build on AARCH64 92/8292/2
Marco Varlese [Sun, 3 Sep 2017 17:04:46 +0000 (19:04 +0200)]
The missing variable (added with this patch) was causing the build on AARCH64
platforms to default to lib (instead of lib64) when not explicitely defining
the --libdir through the configure script.

This patch fixes that.

Change-Id: Ia4c152e0f40acab7f098885d672ff9385f57b0fe
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoDevices: Set interface rx-mode may cause SIGSEGV with nonexistent queue 47/7847/4
Steven [Sun, 30 Jul 2017 17:29:26 +0000 (10:29 -0700)]
Devices: Set interface rx-mode may cause SIGSEGV with nonexistent queue

When I type in set interface rx-mode with a nonexistent queue, I got a crash with the following
traceback. It looks like the vm is NULL when vlib_node_get_runtime is called.

DBGvpp# sh int rx
Thread 0 (vpp_main):
  node dpdk-input:
    TenGigabitEthernet5/0/0 queue 0 (polling)
    TenGigabitEthernet5/0/1 queue 0 (polling)
    TenGigabitEthernet7/0/0 queue 0 (polling)
    TenGigabitEthernet7/0/1 queue 0 (polling)
  node vhost-user-input:
    VirtualEthernet0/0/2 queue 0 (adaptive)
DBGvpp# set interface rx-mode VirtualEthernet0/0/2  queue 1 polling

Thread 1 "vpp_main" received signal SIGSEGV, Segmentation fault.
0x00007ffff6d4e0bc in vlib_node_get_runtime (vm=0x0, node_index=125)
    at /home/sluong/vpp/build-data/../src/vlib/node_funcs.h:92
92   vlib_node_t *n = vec_elt (nm->nodes, node_index);
(gdb) where
    at /home/sluong/vpp/build-data/../src/vlib/node_funcs.h:92
    at /home/sluong/vpp/build-data/../src/vlib/node_funcs.h:112
    vnm=0x6f0fa0 <vnet_main>, hw_if_index=7, queue_id=1, mode=0x7fffb62099e8)
    at /home/sluong/vpp/build-data/../src/vnet/devices/devices.c:307
    hw_if_index=7, queue_id=1, mode=VNET_HW_INTERFACE_RX_MODE_POLLING)
    at /home/sluong/vpp/build-data/../src/vnet/interface_cli.c:1192
    vm=0x7ffff7b9d440 <vlib_global_main>, input=0x7fffb6209ef0,
    cmd=0x7fffb61d5d14)
    at /home/sluong/vpp/build-data/../src/vnet/interface_cli.c:1288
    vm=0x7ffff7b9d440 <vlib_global_main>,
    cm=0x7ffff7b9d630 <vlib_global_main+496>, input=0x7fffb6209ef0,
    parent_command_index=18)
    at /home/sluong/vpp/build-data/../src/vlib/cli.c:588
    vm=0x7ffff7b9d440 <vlib_global_main>,
    cm=0x7ffff7b9d630 <vlib_global_main+496>, input=0x7fffb6209ef0,
    parent_command_index=12)

The fix is to add a check for vec_len(hw->input_node_thread_index_by_queue)
and vec_len (hw->rx_mode_by_queue) to reject the command if the queue_id is
out of bound. While at it, I notice inputting queue_id=-1 is being interpreted
as all queues. An easy fix is to not overload the queue_id variable with -1 to
mean something else.

Change-Id: Id70ec3e7d06ccc67635e6d28ef53420bdac4a988
Signed-off-by: Steven <sluong@cisco.com>
6 years agotest: factor out "L4_Conn" into a class within util.py (VPP-931) 37/8337/2
Andrew Yourtchenko [Thu, 7 Sep 2017 11:22:24 +0000 (13:22 +0200)]
test: factor out "L4_Conn" into a class within util.py (VPP-931)

It seems a useful abstraction for the purposes of writing
fine-grained tests, to be able to create a "connection" object
which would be bound to two VPP interfaces, and hold some
information about the state, allowing to send the packets
back and forth with minimal amount of arguments.

Change-Id: Idb83b6b82b38bded5b7e1756a41bb2df4cd58e3a
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoNAT: fixed bug in snat_get_worker_out2in_cb (VPP-832) 34/8334/3
Matus Fabian [Thu, 7 Sep 2017 10:50:49 +0000 (03:50 -0700)]
NAT: fixed bug in snat_get_worker_out2in_cb (VPP-832)

Change-Id: Id9c977634a1259865e3403ba0d90aecaca85207d
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoUpdate CSIT tests 170814 -> 170906 17/8317/2
Jan Gelety [Wed, 6 Sep 2017 07:24:44 +0000 (09:24 +0200)]
Update CSIT tests 170814 -> 170906

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

Change-Id: I23c6b5cb9bab6e295ff145531eabc2d51df49a94
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agoacl-plugin: match index set to first portrange element if non-first portrange matches... 28/8328/3
Andrew Yourtchenko [Thu, 10 Aug 2017 15:02:58 +0000 (17:02 +0200)]
acl-plugin: match index set to first portrange element if non-first portrange matches on the same hash key (VPP-937)

Multiple portranges that land on the same hash key will always report the match
on the first portrange - even when the subsequent portranges have matched.
Test escape, so make a corresponding test case and fix the code so it passes.

(the commit on stable/1707 has erroneously mentioned VPP-938 jira ticket)

Change-Id: Idbeb8a122252ead2468f5f9dbaf72cf0e8bb78f1
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit fb088f0a201270e949469c915c529d75ad13353e)
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoPunt socket: Fix coverity error for pathname length mismatch between API and sun_path. 25/8325/2
Ole Troan [Thu, 7 Sep 2017 08:04:41 +0000 (10:04 +0200)]
Punt socket: Fix coverity error for pathname length mismatch between API and sun_path.

Change-Id: I69d67707540e075afe7bad0a70e57d9d80b1bc8e
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoAdd fd/socket name to clib_socket_* error msgs. 23/8323/3
Dave Wallace [Wed, 6 Sep 2017 20:45:04 +0000 (16:45 -0400)]
Add fd/socket name to clib_socket_* error msgs.

Change-Id: Ifcc9df04e7b224dfc9e9be53a30df5bbccbe05b4
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoFix session connect_* api message handling. 15/8315/6
Dave Wallace [Wed, 6 Sep 2017 05:20:02 +0000 (01:20 -0400)]
Fix session connect_* api message handling.

Change-Id: If7fd125989c90240de12953658d10007b9eb4f07
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoSupport for bridge domain free text tag 01/8301/5
Jerome Tollet [Tue, 5 Sep 2017 11:13:22 +0000 (12:13 +0100)]
Support for bridge domain free text tag

Change-Id: I9a75fdafd0c1d87b6f071fda5b77ff5f6b79deb7
Signed-off-by: Jerome Tollet <jtollet@cisco.com>
6 years agomake test: disable L2BD Multi-instance test 5 13/8313/4
Florin Coras [Tue, 5 Sep 2017 23:15:49 +0000 (16:15 -0700)]
make test: disable L2BD Multi-instance test 5

Change-Id: Iba44aec60a74ada5add41ecf00b25dc44f3ad3a3
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoSet uid/gid on ssvm segment file. 78/8278/4
Dave Wallace [Thu, 31 Aug 2017 19:54:11 +0000 (15:54 -0400)]
Set uid/gid on ssvm segment file.

Change-Id: I482bb9654f4dfe240bace5c2b61056cfd04cf018
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoImprove "show segment-manager segments" 88/8288/4
Dave Barach [Fri, 1 Sep 2017 23:12:11 +0000 (19:12 -0400)]
Improve "show segment-manager segments"

Clean up private-segment fifo preallocation

Change-Id: I53c630ed81d48f2832a204992d73635536926983
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoFixes for issues raised by Coverity (VPP-972) 04/8304/4
Chris Luke [Tue, 5 Sep 2017 15:59:55 +0000 (11:59 -0400)]
Fixes for issues raised by Coverity (VPP-972)

Change-Id: I4b1f27b95d67d48b7a13750ff8754c344ed7afa7
Signed-off-by: Chris Luke <chrisy@flirble.org>
6 years agoNAT: Destination NAT44 with load-balancing (VPP-954) 96/8296/2
Matus Fabian [Mon, 4 Sep 2017 09:17:18 +0000 (02:17 -0700)]
NAT: Destination NAT44 with load-balancing (VPP-954)

added load-balancing static mappings with unequal load support

Change-Id: Ie505e41f24d46f812b94dd28bdafe3dc170a6060
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agodpdk/ipsec: fix setup when using master core only 02/8302/3
Sergio Gonzalez Monroy [Tue, 5 Sep 2017 12:47:21 +0000 (13:47 +0100)]
dpdk/ipsec: fix setup when using master core only

Change-Id: I62b7aa896dfe218358f11a5197b1228a3dd67152
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
6 years agoAdd pidfile cmdline option 33/7833/7
Pierre Pfister [Fri, 28 Jul 2017 02:57:34 +0000 (22:57 -0400)]
Add pidfile cmdline option

Change-Id: Ibaa61b624eb6683b1be6901a7b29f5f73aad27b2
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
6 years agoRefork worker thread data structures in parallel (VPP-970) 98/8298/2
Colin Tregenza Dancer [Mon, 4 Sep 2017 14:27:49 +0000 (15:27 +0100)]
Refork worker thread data structures in parallel (VPP-970)

Change the rebuilding of worker thread clone datastructures
to run in parallel on the workers, instead of serially
on main.

Change-Id: Ib76bcfbef1e51f2399972090f4057be7aaa84e08
Signed-off-by: Colin Tregenza Dancer <ctd@metaswitch.com>
6 years agoPUNT socket: External control plane processes connected via UNIX domain sockets. 21/6721/15
Ole Troan [Tue, 16 May 2017 12:59:29 +0000 (14:59 +0200)]
PUNT socket: External control plane processes connected via UNIX domain sockets.

An external (to VPP) process can register (over the VPP binary API) to
receive control plane packets over a UNIX domain socket. The packets are
prepended with a packet descriptor containing meta-data (if_index of
interface, etc).

Currently only UDP is supported.

The socket supports sending of packets/frames as well.
The sent packet is prepended with a descriptor, telling VPP to
route the packet (via ip4-lookup, ip6-lookup) or as an pre-formed
Ethernet frame that is sent directly to interface-output.

The intended use case for this is for an external DHCP client or
a RIP implementation.

New configuration option:

punt { socket <socket path> }

To register use the punt_socket API message.

TODO:
  - Add support for pre-routing. I.e send L3 packet to given
    TX interface, but do ARP/ND (ip[46]-rewrite)
  - Add test scripts
  - Support for abstract names (starting with \0)
  - Add rate limiting (COP)
  - Support for other protocols, e.g. IPv6 ND

Change-Id: I4a0afc8020deebb3d9d74686dde694ee5bcb8d0f
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoLISP: re-fetch mapping before it expires 48/8048/4
Filip Tehlar [Mon, 14 Aug 2017 17:15:36 +0000 (19:15 +0200)]
LISP: re-fetch mapping before it expires

Change-Id: I0581a1bddad55d8d573c546ec84b0b2760abab3d
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoImprove L2FIB PDR/NDR performance (VPP-963) 89/8289/2
John Lo [Sat, 2 Sep 2017 12:27:36 +0000 (08:27 -0400)]
Improve L2FIB PDR/NDR performance (VPP-963)

1. Limit MAC entry update per l2-learn call to reduce update burst
   when wall clock advance to the the next minute so all MAC time
   stamps are behind current time needing update.
2. Optimize l2-learn node fast path code sequence.
3. Invalidate cache_key when update MAC entry.
4. Change L2 learn hit counter to L2 learn hit-update counter.
5. Increase L2FIB table memory size to 512MB to fit 4M entries
6. Set MAC learn limit at 4M entries

Change-Id: I3075ee8fb59645a56850126bac2e3e6d341cef4d
Signed-off-by: John Lo <loj@cisco.com>
6 years agoThe build system still builds the DPDK plugin when the option 83/8283/2
Marco Varlese [Fri, 1 Sep 2017 12:47:53 +0000 (14:47 +0200)]
The build system still builds the DPDK plugin when the option
vpp_uses_dpdk is set to "no" in build-data/platforms/vpp.mk causing the
build to fail.

This patch addresses that issue.

Change-Id: Icc1aaa508e730c9b8715119e1259e4c82f974048
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoAdd fixed-size, preallocated pool support 37/8237/9
Dave Barach [Tue, 29 Aug 2017 15:43:37 +0000 (11:43 -0400)]
Add fixed-size, preallocated pool support

Simply call pool_init_fixed(...) before using the pool. Note that
fixed, preallocated pools live in individually-mmap'ed address
segments, except for the free element bitmap. A large fixed pool can
exceed 4gb.

Fix tcp buffer allocator leak, remove broken assert

Change-Id: I4421082e12a77c41c6e20f7747f3150dcd01fc26
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoVPP-959: Python API require minimum CFFI version. 71/8271/2
Ole Troan [Thu, 31 Aug 2017 10:59:43 +0000 (12:59 +0200)]
VPP-959: Python API require minimum CFFI version.

Change-Id: I328689b7d4efe6017412de43630a5e9f3633dd71
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agodpdk/ipsec: update doc regarding startup.conf 73/8273/2
Sergio Gonzalez Monroy [Thu, 31 Aug 2017 14:12:00 +0000 (15:12 +0100)]
dpdk/ipsec: update doc regarding startup.conf

Change-Id: Ie449072ab1efec081235b508f1def60a1287ff5f
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
6 years agovhost: Disallow interrupt mode config if driver opts out interrupt support 44/7844/3
Steven [Sat, 29 Jul 2017 15:56:08 +0000 (08:56 -0700)]
vhost: Disallow interrupt mode config if driver opts out interrupt support

According to the spec, supporting interrupt mode from the driver is optional,
not a must. When interrupt mode is configured on the interface, we should
check to make sure that the driver didn't opt out for the kickfd support and
reject the configuration if it did.

Change-Id: I7d3dbaddde65458e1a6a802754a3768ae8685a0e
Signed-off-by: Steven <sluong@cisco.com>
6 years agoAdd explicit check for Fedora. 75/8275/1
Thomas F Herbert [Thu, 31 Aug 2017 14:22:57 +0000 (10:22 -0400)]
Add explicit check for Fedora.

Change-Id: I0a5aece190ccc82f0f840e3bc75e1d27433f5b47
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
6 years agoDo arithemtric comparison in Makefile without using bc 69/8269/2
Damjan Marion [Thu, 31 Aug 2017 09:33:34 +0000 (11:33 +0200)]
Do arithemtric comparison in Makefile without using bc

Change-Id: I245f56814ba3911b832e7450d42c58f235bc6dc2
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoRevert "add bc to dependency list" 68/8268/2
Damjan Marion [Thu, 31 Aug 2017 09:23:10 +0000 (11:23 +0200)]
Revert "add bc to dependency list"

Adding new dependency is not right solution to this problem.

This reverts commit e58c93b2764eb306d286531a2b920c6de080cb77.

Change-Id: I08f2af5cf9c26c4302b0dbaccebbb52f0614f80f
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoFix BIHASH_KVP_CACHE_SIZE == 0 case 70/8270/2
Dave Barach [Thu, 31 Aug 2017 09:58:22 +0000 (05:58 -0400)]
Fix BIHASH_KVP_CACHE_SIZE == 0 case

Setting the bucket-level LRU cache size to zero removes the
bucket-level LRU cache code.

Change-Id: Idf2e63d0d508675e957366515863766f79a3479c
Signed-off-by: Dave Barach <dbarach@cisco.com>
6 years agoNative arm64 build: dpdk/Makefile change 28/8228/5
Brian Brooks [Mon, 28 Aug 2017 18:05:26 +0000 (13:05 -0500)]
Native arm64 build: dpdk/Makefile change

With this change, the status of `make build':

  Huawei D02, Linux 4.4.0, gcc 5.4.1 - success
  AMD Seattle, Linux 4.4.6, gcc 5.3.1 - compiler ICEs
  Cavium ThunderX, Linux 4.4.49, gcc 5.4.0 - success

Before:

  Huawei D02, Linux 4.4.0, gcc 5.4.1 - fail
  AMD Seattle, Linux 4.4.6, gcc 5.3.1 - fail
  Cavium ThunderX, Linux 4.4.49, gcc 5.4.0 - success

Change-Id: I49db34a33f9ca0725c7511d4f796706892b5b2da
Signed-off-by: Brian Brooks <brian.brooks@arm.com>
6 years agoFix vent_data memory leak in function run_ping_ip46_address (VPP-966) 66/8266/3
dongjuan [Thu, 31 Aug 2017 06:57:54 +0000 (14:57 +0800)]
Fix vent_data memory leak in function run_ping_ip46_address (VPP-966)

Change-Id: I05d0c8310aa86480a3d283f45e115284c4b4ebd5
Signed-off-by: dongjuan <dong.juan1@zte.com.cn>
6 years agoSet runtime_path properly when running non-root 56/8256/3
Damjan Marion [Wed, 30 Aug 2017 15:12:25 +0000 (17:12 +0200)]
Set runtime_path properly when running non-root

non-root users should use /run/user/$PID/...

Change-Id: I1ca136df7a339eff193ed9c9a396d6965b192d0e
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoFree memory the 'rpaths' pointers, that may incur memory leaks(VPP-965). 65/8265/1
ShenJibiao [Thu, 31 Aug 2017 05:57:48 +0000 (13:57 +0800)]
Free memory the 'rpaths' pointers, that may incur memory leaks(VPP-965).

Change-Id: I2732c02b97f4602162638bbcf3ab46521c2782da
Signed-off-by: ShenJibiao <shen.jibiao@zte.com.cn>
6 years agoImprovements to socket_test.sh script 62/8262/2
Keith Burns (alagalah) [Wed, 30 Aug 2017 21:06:52 +0000 (14:06 -0700)]
Improvements to socket_test.sh script

Change-Id: I10c59dc32edb7336a56722b1de8cca1d0ae31c60
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoadd bc to dependency list 60/8260/1
Gabriel Ganne [Wed, 30 Aug 2017 17:44:56 +0000 (19:44 +0200)]
add bc to dependency list

replace $(echo "..." | bc) by `echo ... | bc` as they do not seem to
behave the same way.

Change-Id: Ib8f13f0c8213aaae89d65559427e01bc40f4e8d1
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agoThread safe internal buffer manager, take two 32/8232/4
Damjan Marion [Mon, 28 Aug 2017 22:15:35 +0000 (00:15 +0200)]
Thread safe internal buffer manager, take two

First attempt to make internal buffer manager thread safe was not
succesfull, so trying again. This time with more testing.

Change-Id: I01b8385a9c26d233934a3339255ea4bd31c865ac
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agotcp: re-enable persist timer if no data available to send 41/8241/2
Florin Coras [Tue, 29 Aug 2017 21:50:13 +0000 (14:50 -0700)]
tcp: re-enable persist timer if no data available to send

Additionally, flush rx fifos for closed sessions.

Change-Id: If2cc563fbda0451e7572650e98b15f0a694a0ff9
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoOffload prep calls needed for IP and UDP checksum offload pkts 45/8245/1
Dave Barach [Wed, 30 Aug 2017 12:14:03 +0000 (08:14 -0400)]
Offload prep calls needed for IP and UDP checksum offload pkts

Change-Id: I9b29bcff348bddfb49b1c38b1d409249e37bb075
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agovhost: Cache qsz_mask instead of qsz in vhost_user_vring_t 38/8238/3
Steven [Tue, 29 Aug 2017 16:23:26 +0000 (09:23 -0700)]
vhost: Cache qsz_mask instead of qsz in vhost_user_vring_t

In the data path, we grab qsz from vhost_user_vring_t to compute
qsz_mask and store it in a stack variable to use on many occasions.
We never use qsz for any meaningful purpose. It is more useful to
cache qsz_mask in vhost_user_vring_t to avoid the needless computation
in the data path.

Change-Id: Idf4d94a9754d5c75c899f1f4f59602275b9904a6
Signed-off-by: Steven <sluong@cisco.com>
6 years agoFix static mapping lookup issue for NAT plugin 31/8231/4
Hongjun Ni [Tue, 29 Aug 2017 16:55:59 +0000 (00:55 +0800)]
Fix static mapping lookup issue for NAT plugin

Change-Id: Ic99d1db5360f69126b23bb2b78f29d6404cbbae9
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoFix some issue of comment and help for nat feature 30/8230/3
Hongjun Ni [Tue, 29 Aug 2017 12:39:42 +0000 (20:39 +0800)]
Fix some issue of comment and help for nat feature

Change-Id: I9233e427b5f8874492fefb2bfe7c1ab329e366b2
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoAdd .pybuild to gitignore 40/8240/2
Keith Burns (alagalah) [Tue, 29 Aug 2017 18:16:32 +0000 (11:16 -0700)]
Add .pybuild to gitignore

Change-Id: I4467a30ec1beff67a0517619296f1a27589ff55b
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agosession: segment manager improvements 92/8092/9
Florin Coras [Thu, 17 Aug 2017 02:55:49 +0000 (19:55 -0700)]
session: segment manager improvements

- cleanup connects segment manager even if first
- fix segment manager allocation for listen sessions
- improve handling of process private segments (mheaps/main heap)
- added segment manager cli

Change-Id: Ic2ca97c3622ab2286d5fb5772aeb57680e64f769
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agosilence makefile warning on ubuntu 36/8236/1
Gabriel Ganne [Tue, 29 Aug 2017 09:29:38 +0000 (11:29 +0200)]
silence makefile warning on ubuntu

shell error on ubuntu when OS_VERSION_ID == 16.04:
/bin/sh: 1: [: Illegal number: 16.04

Change-Id: I8db55f751ad7fb677a6565cbbce93a9bc08060b7
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
6 years agoFix for bootstrap crash when VPP compiled with gcc-7 35/8235/3
Marco Varlese [Tue, 29 Aug 2017 12:04:06 +0000 (14:04 +0200)]
Fix for bootstrap crash when VPP compiled with gcc-7

See issue VPP-964

Change-Id: I2aed5abdc02e47e7bb5b0ce78cb6589a1ce7302f
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoFlowprobe: Fix flow start time and hash computation 51/7951/4
Pierre Pfister [Wed, 9 Aug 2017 08:42:06 +0000 (10:42 +0200)]
Flowprobe: Fix flow start time and hash computation

Upon hash collision, the flow start time was not reset.
The hash computation techniques (crc32 or xxhash) also both
had bugs which are now fixed.

Change-Id: I94d72997f34018d1699324264f7dded2a5cbd776
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
6 years agovhost: Remove operation mode in the API 26/8226/1
Steven [Mon, 28 Aug 2017 18:34:47 +0000 (11:34 -0700)]
vhost: Remove operation mode in the API

create/delete/modify vhost_user APIs no longer support the operation mode
(polling/interrupt/adaptive). They are now done via the generic interface.

Change-Id: I9e9bd503f9b56c953ecd2b271b3e2007da20c72a
Signed-off-by: Steven <sluong@cisco.com>
6 years agoAdd Build Requirements from Makefile to spec file. 17/8117/4
Thomas F Herbert [Thu, 3 Aug 2017 15:04:24 +0000 (11:04 -0400)]
Add Build Requirements from Makefile to spec file.

JIRA: VPP-498

Changes to build to help with downstream distro builds
for Fedora, Centos and RHEL distros.
Add nasm, automake, libtool, byacc, bison and flex.
Remove libconfuse and dependencies.
Remove epel-release rpm and dependencies.
Add conditionals to work around Python 2 packaging
inconsistency in Fed 25.
Add numactl to rpm requirements.

Change-Id: Ia39f8b931dc87e42df56414d38662eb33c7a4ca7
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
6 years agojvpp: adding debug usage into test documentation 71/8171/3
Matej Perina [Wed, 23 Aug 2017 10:48:46 +0000 (12:48 +0200)]
jvpp: adding debug usage into test documentation

added debug version commands to Readme files for example tests

Change-Id: Icc5d5cdd33efb6d7c7512c7a78e22d9dc3d31fdc
Signed-off-by: Matej Perina <mperina@cisco.com>
6 years agoTCP horizontal scaling 62/8162/3
Dave Barach [Tue, 22 Aug 2017 21:56:46 +0000 (17:56 -0400)]
TCP horizontal scaling

- Remove frame handoff support machinery. We haven't used it in a long
  time.
- Configuration support for the local endpoints bihash table
- Drop lookup failure packets in tcp46_syn_sent

Change-Id: Icd51e6785f74661c741e76fac23d21c4cc998d17
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agodpdk: bump to dpdk 17.08, remove support for dpdk 17.02 16/8216/3
Damjan Marion [Fri, 25 Aug 2017 17:10:57 +0000 (19:10 +0200)]
dpdk: bump to dpdk 17.08, remove support for dpdk 17.02

Change-Id: I674fb1212e48693939045523df085326a4dd1809
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agomake test: separate test discovery code 89/8089/3
Klement Sekera [Thu, 17 Aug 2017 05:38:42 +0000 (07:38 +0200)]
make test: separate test discovery code

Separating test discovery code to it's own script file has the
advantage of easily doing e.g. listing of all existing tests.

Change-Id: I80dc280263cc7e33e7e13cb0d48b39bf08ece24d
Signed-off-by: Klement Sekera <ksekera@cisco.com>
6 years agoacl-plugin: warning printed when acl_add_replace already applied ACLs (complete the... 14/8214/2
Andrew Yourtchenko [Fri, 18 Aug 2017 17:10:39 +0000 (19:10 +0200)]
acl-plugin: warning printed when acl_add_replace already applied ACLs (complete the fix for VPP-935)

The fix for VPP-935 missed the case that hash_acl_add() and hash_acl_delete() may be called
during the replacement of the existing applied ACL, as a result the "applied" logic needs
to be replicated for the hash acls separately, since it is a lower layer.

Change-Id: I7dcb2b120fcbdceb5e59acb5029f9eb77bd0f240
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit ce9714032d36d18abe72981552219dff871ff392)

6 years agotcp: retransmit and multi-buffer segment fixes and improvements 33/8133/10
Florin Coras [Sat, 19 Aug 2017 02:28:03 +0000 (19:28 -0700)]
tcp: retransmit and multi-buffer segment fixes and improvements

- set session state as closed on session manager delete
- enable retransmit as opposed to persist timer after persist timer completes
- properly discard buffer chain bytes when new data overlaps ooo
  segments
- don't use rxt bytes in snd space estimate used on tx path

Change-Id: Id9cab686e532e5fe70c775d5440260e8eb890a9f
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoFixed the SUSE dependency on libnuma 13/8213/2
Marco Varlese [Fri, 25 Aug 2017 15:00:51 +0000 (17:00 +0200)]
Fixed the SUSE dependency on libnuma

Change-Id: I0de13c7fac91c7fc2fcbc9e765ae37720a583aaf
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoUse Quad-loop to improve gtpu-encap performance 91/8191/4
Hongjun Ni [Thu, 24 Aug 2017 14:53:42 +0000 (22:53 +0800)]
Use Quad-loop to improve gtpu-encap performance

Change-Id: I440fae09e77502392af5cde45dd9c532afa5d976
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agojvpp: introducing callback api and future api tests for all plugins (VPP-591) 38/7638/21
Matej Perina [Tue, 18 Jul 2017 11:59:41 +0000 (13:59 +0200)]
jvpp: introducing callback api and future api tests for all plugins (VPP-591)

test can be run with:
make test TEST=test_jvpp

memory_shared.c:
declaring and assigning variable in if statement
makes it usage outside statement impossible. Looks like memory
space assigned to variable declared in statement is freed when
statement ends
svm.c:
- fixed case when root path can have a "/" at beggining
- added option for test to operate over shared memory space
with /vpe-api name and not create new one with name consisting of
root path and region name which would require root permisions

Change-Id: Iff1170dc6a5c1be134c152f2757c7ab9b919a8ed
Signed-off-by: Matej Perina <mperina@cisco.com>
6 years agodpdk: required changes for 17.08 42/8142/6
Sergio Gonzalez Monroy [Thu, 24 Aug 2017 13:09:17 +0000 (14:09 +0100)]
dpdk: required changes for 17.08

DPDK 17.08 breaks ethdev and cryptodev APIs.

Address those changes while keeping backwards compatibility for
DPDK 17.02 and 17.05.

Change-Id: Idd6ac264d0d047fe586c41d4c4ca74e8fc778a54
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
6 years agoFix crash when TCP client using VPP host stack connects first 00/8200/3
tjanciga [Thu, 24 Aug 2017 09:57:21 +0000 (11:57 +0200)]
Fix crash when TCP client using VPP host stack connects first

VPP is crashing without this fix if there is not any server
using VPP host stack and client attemts to connect.

Change-Id: I672977f78180bbc5ba9259116b2e165363463ccd
Signed-off-by: tjanciga <tomas.janciga@pantheon.tech>
6 years agovl_api_sw_interface_set_mtu_t_handler: fix assert in vnet_get_hw_interface 07/8207/1
Andrew Yourtchenko [Tue, 22 Aug 2017 11:10:01 +0000 (13:10 +0200)]
vl_api_sw_interface_set_mtu_t_handler: fix assert in vnet_get_hw_interface

The handler was calling the routines with sw_if_index instead of hw_if_index,
fix that by an extra call to vnet_get_sw_interface, and check that the interface
type is VNET_SW_INTERFACE_TYPE_HARDWARE before proceeding.

Change-Id: I4a6f65f44e250ecdb2b72d2693c9d7db5a52b966
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit 778df28c2a1520f58c293700c578bdd73e61cecf)

6 years agoMake VPP runtime directory configurable 90/7690/4
Damjan Marion [Thu, 20 Jul 2017 17:17:06 +0000 (19:17 +0200)]
Make VPP runtime directory configurable

New startup config command:

unix {
runtime-dir /run/vpp
}

Also, adds recursive mkdir funtion for use in deifferent places
like cli-config socket path and dpdk hugepage directory path.

Change-Id: I1446ceab9c220c25804e73a743a3ebb383450124
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoFix initialization bug in sock_test_client 65/8165/3
Dave Wallace [Wed, 23 Aug 2017 03:29:33 +0000 (23:29 -0400)]
Fix initialization bug in sock_test_client

Change-Id: Ieeae23a81f6f747b96c2a115bd8a62e8962428cd
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoNAT64: Fix error message typo (VPP-961) 99/8199/2
Matus Fabian [Thu, 24 Aug 2017 09:38:51 +0000 (02:38 -0700)]
NAT64: Fix error message typo (VPP-961)

Change-Id: Ieb81c5e157e342cbb532bd65f3b64059e5838691
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agojvpp: use (*env)->ExceptionClear before calling (*env)->ExceptionOccurred 92/8192/3
Marek Gradzki [Thu, 24 Aug 2017 06:57:43 +0000 (08:57 +0200)]
jvpp: use (*env)->ExceptionClear before calling (*env)->ExceptionOccurred

Change-Id: I6cca455ead986cb8a507c84957a97a40b733b16c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agoNAT64: Fix CLI typo (VPP-961) 90/8190/1
Matus Fabian [Thu, 24 Aug 2017 05:08:22 +0000 (22:08 -0700)]
NAT64: Fix CLI typo (VPP-961)

Change-Id: I99e2766a118754387c9f238fc1b46057ee8a23e7
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agotcp: add tcp.api.h to nobase include 88/8188/1
Florin Coras [Wed, 23 Aug 2017 18:24:02 +0000 (11:24 -0700)]
tcp: add tcp.api.h to nobase include

Change-Id: Idcd78a21f4f2b6c1223123b5cc50a470ccd57e83
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoRemove unused retval from gpe_native_fwd_rpath type definition 98/8098/3
Marek Gradzki [Fri, 18 Aug 2017 06:47:48 +0000 (08:47 +0200)]
Remove unused retval from gpe_native_fwd_rpath type definition

Change-Id: I89a10204454aeea07412289b153ba50d6a15498c
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
6 years agogpe: add l2 lb counters 66/8166/2
Florin Coras [Wed, 23 Aug 2017 07:51:42 +0000 (00:51 -0700)]
gpe: add l2 lb counters

Change-Id: I81b3fc6266ad02239b6f1a216adc283efdcf0dce
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoNAT: Rename snat plugin to nat (VPP-955) 46/8146/3
Matus Fabian [Mon, 21 Aug 2017 14:05:03 +0000 (07:05 -0700)]
NAT: Rename snat plugin to nat (VPP-955)

Change-Id: I30a7e3da7a4efc6038a91e27b48045d4b07e2764
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoFix vl_map_shmem() root_path dangling reference. 63/8163/4
Dave Wallace [Tue, 22 Aug 2017 22:32:34 +0000 (18:32 -0400)]
Fix vl_map_shmem() root_path dangling reference.

Change-Id: I90c9d8e151cacf50a99ce76b7a589079303196e8
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoEnabled gid vpp in startup.conf to allow non-root vppctl access 38/8138/2
Ed Warnicke [Mon, 21 Aug 2017 01:42:19 +0000 (18:42 -0700)]
Enabled gid vpp in startup.conf to allow non-root vppctl access

Change-Id: I1ca9736dbefc9c284f5176de176fcc3dd1bfcd82
Signed-off-by: Ed Warnicke <eaw@cisco.com>
6 years agoacl-plugin: Recreate the bihash_40_8.h in the proper place 37/7937/4
Andrew Yourtchenko [Tue, 8 Aug 2017 14:43:38 +0000 (16:43 +0200)]
acl-plugin: Recreate the bihash_40_8.h in the proper place

Change-Id: I30a3df53bc5fe5ab991a657918eb502bd2913440
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agodpdk: fix Cavium ThunderX support 57/8157/2
Damjan Marion [Tue, 22 Aug 2017 11:51:31 +0000 (13:51 +0200)]
dpdk: fix Cavium ThunderX support

Change-Id: Id5812448917ce52984d5a778d5b304c448a752e7
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoUpdate gitignore for DPDK files 61/8161/2
Keith Burns (alagalah) [Tue, 22 Aug 2017 13:55:31 +0000 (06:55 -0700)]
Update gitignore for DPDK files

Change-Id: I6c4e76d8a030ec5fafc8167873cc1471913a1e88
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
6 years agoIncrease default MAC learn limit and check it in learn-update path 59/8159/2
John Lo [Tue, 22 Aug 2017 13:16:50 +0000 (09:16 -0400)]
Increase default MAC learn limit and check it in learn-update path

1. Increase default MAC learn limit from 1M to 8M entries.
2. Check MAC learn limit in MAC learning update path.
3. Allow disable of want_l2_macs_events to set MAC learn limit
4. Other minor cleanups

Change-Id: I62438440937b5fa455e16f4a2e4d910277753395
Signed-off-by: John Lo <loj@cisco.com>