Damjan Marion [Mon, 3 Sep 2018 10:30:36 +0000 (12:30 +0200)]
Compile vppinfra on macOS
Add missing calls to clib_mem_init to vppinfra test codes.
Change-Id: I53ffc6fc287d1a378065bb86c18b6e995ecdb775
Signed-off-by: Damjan Marion <damarion@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Matus Fabian [Mon, 3 Sep 2018 12:02:23 +0000 (05:02 -0700)]
NAT44: client-IP based session affinity for load-balancing (VPP-1297)
Enable client-IP based session affinity per LB NAT rule with specific timeout.
Change-Id: I9aade152e330218d21dfda99cc5e984d769ab806
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Klement Sekera [Mon, 3 Sep 2018 10:35:27 +0000 (12:35 +0200)]
vapi: init clib mem heap on connect if needed
Change-Id: Id45a3a37dd77771289622314406dccf50b64f04d
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Ole Troan [Thu, 30 Aug 2018 22:29:48 +0000 (00:29 +0200)]
STATS: Python binding to access VPP statistics and counters.
from vpp_papi.vpp_stats import VPPStats
s = VPPStats(socketname='/var/run/stats.sock')
c = s.ls('/if/rx')
counters = s.dump(c)
print(s.set_error_str())
Change-Id: I203ebe60b0c9ee5742aadc737c0f29051757959d
Signed-off-by: Ole Troan <ot@cisco.com>
Damjan Marion [Fri, 24 Aug 2018 11:37:45 +0000 (13:37 +0200)]
Switch to cmake
Change-Id: I982b69390c55b5ffbd744f355efc0aaf425b360c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sun, 2 Sep 2018 09:16:00 +0000 (11:16 +0200)]
cmake: cache line size detection
Change-Id: I9a0df8d15deefdf31cfead56c96433cd7220b802
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sat, 1 Sep 2018 13:17:02 +0000 (15:17 +0200)]
cmake: respect TERM
Change-Id: I8e2dd1902f57ee173dd266743b46f5602548a4c1
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sat, 1 Sep 2018 18:06:10 +0000 (20:06 +0200)]
cmake: pass linker flags, use devtoolset on centos 7
Change-Id: I8439fd070dc47a080e2df859c9f9ac67d8a08f04
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Fri, 31 Aug 2018 15:38:57 +0000 (17:38 +0200)]
cmake: detect vpp version, set soversion, pretty config print
Change-Id: I5d0777421debe6c3e4b93d62ad6790912063a9e6
Signed-off-by: Damjan Marion <damarion@cisco.com>
Hongjun Ni [Thu, 28 Jun 2018 12:14:19 +0000 (20:14 +0800)]
Support lb on both vip and per-port-vip case
Previously, a service is specified by vip.
This patch extend that a service is specified
by both vip and per-port-vip cases.
Change-Id: Icbfd1f972c6bafde7d85c6abb498576bd9ba250d
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Neale Ranns [Fri, 31 Aug 2018 10:30:16 +0000 (06:30 -0400)]
IPx address query functions take a const pointer
Change-Id: I45b0c48e89cb1ea556c795f6163a8346f2e2e0da
Signed-off-by: Neale Ranns <nranns@cisco.com>
Dave Barach [Fri, 31 Aug 2018 13:32:34 +0000 (09:32 -0400)]
Fix typo
Change-Id: Iadf4ce27f56400b669b80f2e718b6d4330c949a5
Signed-off-by: Dave Barach <dbarach@cisco.com>
Neale Ranns [Fri, 31 Aug 2018 07:45:19 +0000 (00:45 -0700)]
Docs: update MPLS FIB section with text from the wiki
Change-Id: I9d903db89facc916fb5dd23d564417230e1c76e0
Signed-off-by: Neale Ranns <nranns@cisco.com>
Vanessa Rene Valderrama [Wed, 15 Aug 2018 20:16:23 +0000 (15:16 -0500)]
Add INFO.yaml file
Add INFO.yaml to list:
- Project description
- Properties
- Issue Tracking
- Contacts
- PTL information
- Meeting information
- Committer information
Change-Id: Ifed54c1cc648dc3dc7e276c63d87144812197505
Signed-off-by: Vanessa Rene Valderrama <vvalderrama@linuxfoundation.org>
Neale Ranns [Fri, 31 Aug 2018 07:11:19 +0000 (00:11 -0700)]
FIB path CLI fix for lookup-table IDs
Change-Id: I8c127d472e0010036061a8a076599d1ff85abab5
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Wed, 29 Aug 2018 13:37:18 +0000 (06:37 -0700)]
Introduce a mac_address_t on the API and in VPP
Change-Id: I05d6c2cb5d34de469eb050e4ee10dc6b954c986d
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
shubing guo [Thu, 30 Aug 2018 03:09:49 +0000 (11:09 +0800)]
VPP-1407: Fix the wrong length of udp header for buffer chains
Change-Id: I1669faeac15dfb69e335a1e96b6da118dc1892c1
Signed-off-by: shubing guo <guo.shubing@zte.com.cn>
shubing guo [Thu, 30 Aug 2018 05:29:49 +0000 (13:29 +0800)]
VPP-1408: Fix bug that wrong tx fifo drop in buffer chains flow of dgram mode
-- Not drop session dgram hdr when to drop processed udp message from tx fifo
Change-Id: Id5ce5780817041bca05011f7b9b53e97a6d78da4
Signed-off-by: shubing guo <guo.shubing@zte.com.cn>
Florin Coras [Tue, 28 Aug 2018 18:32:04 +0000 (11:32 -0700)]
vcl: add support for multi-worker apps
Add basic support for app registration of multiple workers. LDP does not
work with multi-worker apps.
Change-Id: I3fc421a2a591a077b275827463f874b261415a63
Signed-off-by: Florin Coras <fcoras@cisco.com>
Damjan Marion [Thu, 30 Aug 2018 20:56:59 +0000 (22:56 +0200)]
cmake: add missing header
Change-Id: Ie1aa5c34fa3a4f9940741b8ae55b93e021ced404
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Thu, 30 Aug 2018 20:56:10 +0000 (22:56 +0200)]
cmake: fix vppapigen install permissons
Change-Id: I0f49842d3e6690d0965bd310321495a2dc4c2350
Signed-off-by: Damjan Marion <damarion@cisco.com>
Scitt Keeler [Thu, 30 Aug 2018 17:09:34 +0000 (13:09 -0400)]
docs: Add features by release section
Change-Id: Ibcae8c8ecdf8a3c2d7bcf96bf7cd5b741e2fad22
Signed-off-by: Scitt Keeler <skeeler@cisco.com>
Dave Barach [Wed, 29 Aug 2018 12:50:40 +0000 (08:50 -0400)]
Crude stat segment lock recovery
Make sure that vpp_get_stats main heap does not address-collide with
the stats segment, which lands "somewhere" in the vpp address space.
Add mising MAP_ANONYMOUS flag in clib_mem_vm_map
Change-Id: I8a671d174eefd8dd24771ad2ed9f1250e2c7a9f8
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Ole Troan <ot@cisco.com>
Damjan Marion [Thu, 30 Aug 2018 18:27:32 +0000 (20:27 +0200)]
cmake: missing dependencies
Change-Id: Iae03deb10d437286989dd3d45f8cc9690d463100
Signed-off-by: Damjan Marion <damarion@cisco.com>
Neale Ranns [Wed, 29 Aug 2018 17:23:58 +0000 (10:23 -0700)]
Refactor the ARP throttle into a common type so it can be reused
Change-Id: Ic7f7af983d5b6d756748023aa0c650f53e9285cf
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Berenger Foucher [Thu, 30 Aug 2018 14:33:53 +0000 (16:33 +0200)]
Add SHA2 support to IKEv2 implementation
The following patch adds a stronger cryptographic suite to IKEv2 implementation.
The following algorithms can now be used for integrity checking in IKEv2 implementation (responder and initiator):
- hmac-sha2-256-128
- hmac-sha2-384-192
- hmac-sha2-512-256
The default integrity checking method was set to hmac-sha2-256-128.
The default PRF function was set sha2-256.
Change-Id: Ia82b4cbbf3067b19b8487040dbefbaf4c9319548
Signed-off-by: Berenger Foucher <berenger.foucher@stagiaires.ssi.gouv.fr>
Neale Ranns [Thu, 30 Aug 2018 13:12:27 +0000 (06:12 -0700)]
SR-MPLS: fixes and tests
- the FIB path takes a vector of type fib_mpls_label_t not u32 so the untype safe vec_add did not work
- write som eSR-MPLS tests
- allow an MPLS tunnel to resolve through a SR BSID
Change-Id: I2a18b9a9bf43584100ac269c4ebc286c9e3b3ea5
Signed-off-by: Neale Ranns <nranns@cisco.com>
Marco Varlese [Thu, 30 Aug 2018 12:57:05 +0000 (14:57 +0200)]
SUSE: fix spec to generate RPMs
Change-Id: I36ec5136d0f100c8277a19f89c8f6c9640e0614e
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
jdenisco [Wed, 29 Aug 2018 17:19:43 +0000 (13:19 -0400)]
docs: FIB 2.0 start
Change-Id: I87cd2eae133c9f5b9f7764a0f7a41bcc28523e4c
Signed-off-by: jdenisco <jdenisco@cisco.com>
juraj.linkes [Thu, 30 Aug 2018 08:51:45 +0000 (10:51 +0200)]
Fix hanging test runner when child process dies
When fixing the test summary after a test run doesn't finish properly I
introduced a bug where child process which died would leave the whole
run hanging. This patch fixed the bug while still having the correct
test summary.
Change-Id: I206b1a7dab4032d24cbc50667b8dd0bdcebb67a6
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Jakub Grajciar [Mon, 20 Aug 2018 12:26:32 +0000 (14:26 +0200)]
libmemif: external region support
region 0: descriptors
region 1: buffers (external)
Change-Id: Ia728967817b4c78bc00f8eed44606d0c5bc386b0
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Damjan Marion [Wed, 29 Aug 2018 20:20:45 +0000 (22:20 +0200)]
cmake: a bit of packaging work
Change-Id: I40332c2348c4aab873d726532f2ac3c4abde7ec9
Signed-off-by: Damjan Marion <damarion@cisco.com>
Lijian Zhang [Tue, 28 Aug 2018 02:18:24 +0000 (10:18 +0800)]
Fix array bound failure in api_sr_localsid_add_del
When compiling VPP with GCC-8.2.0, it gives below error messages.
src/vat/api_format.c: In function ‘api_sr_localsid_add_del’:
src/vat/api_format.c:10839:7: error: ‘memcpy’ forming offset [5, 16] is out of the bounds [0, 4] of object ‘nh_addr4’ with type ‘ip4_address_t’ {aka ‘union <anonymous>’} [-Werror=array-bounds]
clib_memcpy (mp->nh_addr6, &nh_addr4, sizeof (mp->nh_addr6));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/vat/api_format.c:10809:17: note: ‘nh_addr4’ declared here
ip4_address_t nh_addr4;
^~~~~~~~
Change-Id: I9065a3407d53c1f91974b32381972c4edb45144c
Signed-off-by: Lijian Zhang <Lijian.Zhang@arm.com>
juraj.linkes [Tue, 28 Aug 2018 16:45:18 +0000 (18:45 +0200)]
Fix the default step when using STEP=1 while testing
Change-Id: I6b2950dfd0d9023b20e24845b3bce20cf4ba66df
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Jakub Grajciar [Mon, 27 Aug 2018 08:50:50 +0000 (10:50 +0200)]
avf: RSS support
Change-Id: I59b8f08789f0704d6768258348e938da67e5b15b
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Neale Ranns [Wed, 29 Aug 2018 10:05:17 +0000 (03:05 -0700)]
SR-mpls: do not pass empty label stack to fib
Change-Id: Ib1601d01a54296e72be3bbfa057fce965549b02b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Dave Barach [Wed, 25 Jul 2018 12:30:27 +0000 (08:30 -0400)]
Address bfd rpc scale issues
Remove the expensive RPC call for every received packet and replace it with
lock-protected direct calls. Reinstate RPC for the less frequent
notification traffic.
Adjust the wakeup event sending logic to minimize the number of events
sent, by measuring the time it takes from sending the event to processing
it, and subsequently not sending the event if the pending wake-up time
is within 2x or the event propagation delay.
Eventually: remove oingo / oingoes.
Change-Id: I0b3d33c5d029527b54867a97ab07f35f346aaa3d
Signed-off-by: Dave Barach <dave@barachs.net>
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Signed-off-by: Steve Shin <jonshin@cisco.com>
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Ping Yu [Tue, 28 Aug 2018 22:56:27 +0000 (18:56 -0400)]
Fix race condition in tls half open ctx get/put
Change-Id: I603094215162bfe7d41bbff1b9fe8ab974aa3fab
Signed-off-by: Ping Yu <ping.yu@intel.com>
Neale Ranns [Wed, 29 Aug 2018 09:09:47 +0000 (02:09 -0700)]
Consolidate table->index conversion in fib-path CLI processing
Change-Id: I221cebddc45efbfdec428b7df2af96e2aedff2dd
Signed-off-by: Neale Ranns <nranns@cisco.com>
Hongjun Ni [Tue, 28 Aug 2018 21:39:52 +0000 (05:39 +0800)]
Add NSH Plugin Maintainers
Change-Id: I420a563b5eb06f243833da9e8fb7c8a449ad3cc2
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Matthew Smith [Tue, 28 Aug 2018 18:42:09 +0000 (13:42 -0500)]
patch mlx PMDs for VPP w/ DPDK 18.05 or newer
Memory allocation changed in DPDK 18.05. The mlx4 and mlx5
PMDs did not support using externally allocated memory.
The patch for mlx5 was generated by Mellanox. That patch was
modified to apply to the mlx4 PMD and tested on Microsoft
Azure.
Change-Id: I92116b1d71a3896d5bf7b1f10c40c898d72540d6
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Ole Troan [Thu, 23 Aug 2018 11:00:53 +0000 (13:00 +0200)]
STATS: stat_client updates.
New stat segment client library: vpp-api/client/stat_client.h
New stat segment query app: vpp_get_stats [ls | dump | poll ] <pattern ...>
Prometheus integration through: vpp_prometheus_export <pattern>
Change-Id: I6f370cf599e9fcf066f22965a62d3a8acd529994
Signed-off-by: Ole Troan <ot@cisco.com>
Damjan Marion [Tue, 28 Aug 2018 17:40:30 +0000 (19:40 +0200)]
avf: deal willth tx ring full properly
Change-Id: I0b38e129ee01d212463253e5526bfc2d60fd88af
Signed-off-by: Damjan Marion <damarion@cisco.com>
Brian Brooks [Tue, 28 Aug 2018 19:14:03 +0000 (14:14 -0500)]
cmake: fix marvell plugin build
Change-Id: I4ff1a6ed4e42381ed68a62362ba05e940b615da2
Signed-off-by: Brian Brooks <brian.brooks@arm.com>
Klement Sekera [Tue, 28 Aug 2018 15:23:18 +0000 (17:23 +0200)]
VAPI: bugfixes
Change-Id: I20cfbae8b704ca68fd8dda9c811dc282ce723871
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Dave Barach [Fri, 24 Aug 2018 21:21:14 +0000 (17:21 -0400)]
32/64 shmem bihash interoperability
Move the binary api segment above 4gb
Change-Id: I40e8aa7a97722a32397f5a538b5ff8344c50d408
Signed-off-by: Dave Barach <dave@barachs.net>
Damjan Marion [Tue, 28 Aug 2018 13:39:22 +0000 (15:39 +0200)]
avf: add missing rx_redirect_to_node handler
Change-Id: If7fdcdef9a9e12fdf4b7af3c95e06602e39f1e10
Signed-off-by: Damjan Marion <damarion@cisco.com>
Mohsin Kazmi [Tue, 28 Aug 2018 09:58:20 +0000 (11:58 +0200)]
cmake: Add perftool to cmake build
Change-Id: I921e92473a9dedde5952172d19676d47ffc4b53d
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Damjan Marion [Sun, 26 Aug 2018 20:02:34 +0000 (22:02 +0200)]
cmake: add python api
Change-Id: I7e899929843eba13fbee97caea51621423778cbe
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 28 Aug 2018 11:20:44 +0000 (13:20 +0200)]
cmake: don't install some test executable
To be equal in what autotools do...
Change-Id: Ib9f1609f803622a364a08e2c73d6c0fae3d85f3f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 28 Aug 2018 11:35:58 +0000 (13:35 +0200)]
cmake: add g2 and elftool tools
Change-Id: I901c5a2c0ac81421a69b8ade9307c304aa38582b
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 28 Aug 2018 10:57:29 +0000 (12:57 +0200)]
cmake: install vppapigen
Change-Id: If5bf1708a07acde73ed34639eeed95babdcf1ccd
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Tue, 28 Aug 2018 10:33:52 +0000 (12:33 +0200)]
cmake: compile libs and plugins with -Wall
Change-Id: I1edf236295eeb934943d6ca2aed04241e9cde362
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Mon, 27 Aug 2018 20:43:23 +0000 (22:43 +0200)]
vlib: add 'show node' and 'set node function' CLI
Change-Id: I084d7c9e34329f10b5fe45e0b157c4defe0f2811
Signed-off-by: Damjan Marion <damarion@cisco.com>
Florin Coras [Mon, 27 Aug 2018 17:07:40 +0000 (10:07 -0700)]
tls: fix handling of failed connects
Change-Id: I48f32fdf1859420d2966dd8553f3a8f9a082e2ae
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Sat, 25 Aug 2018 00:04:27 +0000 (17:04 -0700)]
vcl: remove session locks
Support for multi-worker apps will be added in future patches. This also
disables vce.
Change-Id: I43b0ed2d5daa2b3d8f8a12fb18bd89dcdfa0619d
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Mon, 27 Aug 2018 16:52:18 +0000 (09:52 -0700)]
vcl/session: use mq for bind replies
Change-Id: Iac6e1c32cf99c5392a29f7366401b7fc39e463e3
Signed-off-by: Florin Coras <fcoras@cisco.com>
Hongjun Ni [Mon, 27 Aug 2018 12:27:43 +0000 (20:27 +0800)]
Port NSH plugin to VPP
Please refer to https://wiki.fd.io/view/NSH_SFC
Change-Id: Iba7e33e4dbb064c1527aaddbe8dce4b6b63a627a
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
Eyal Bari [Sun, 26 Aug 2018 12:20:07 +0000 (15:20 +0300)]
vxlan: decap use vlib_buffer_enqueue_to_next
Change-Id: I43832cdadda820772ba9052890bba59b24e70c6c
Signed-off-by: Eyal Bari <ebari@cisco.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
Neale Ranns [Mon, 27 Aug 2018 14:29:15 +0000 (07:29 -0700)]
Adjacency walks protected by 'walk in progress' flag
Change-Id: I3281f65f7dec792d56de48afb39efcc2fed8578b
Signed-off-by: Neale Ranns <nranns@cisco.com>
Matus Fabian [Mon, 27 Aug 2018 14:21:38 +0000 (07:21 -0700)]
NAT44: fix nat44_ed_not_translate_output_feature for multiple VRF (VPP-1404)
Change-Id: I44acc5aeff59dc25d18369e29618bbe39d30a1b3
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Klement Sekera [Fri, 24 Aug 2018 09:43:20 +0000 (11:43 +0200)]
VAPI: support enums & unions
Change-Id: I76ac7e4eeb6a300538d52a0e355d66937764a4d1
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Mohsin Kazmi [Thu, 23 Aug 2018 13:25:47 +0000 (15:25 +0200)]
VOM: Add support bridge domain arp entry dump
Change-Id: I5d563e1ebc3bd0a40e9347eaf0d00cad1f86a382
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Neale Ranns [Mon, 27 Aug 2018 12:45:07 +0000 (05:45 -0700)]
IGMP: enable command on cli
Change-Id: I1f741b66ab8e3ecbb5c0d248b72e52c56545d5f3
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Mon, 27 Aug 2018 14:57:16 +0000 (07:57 -0700)]
MPLS: allow 16 as a valid output label
Change-Id: I7e6045514d58010258889cadd220b7efcef7c1b9
Signed-off-by: Neale Ranns <nranns@cisco.com>
Mohsin Kazmi [Mon, 27 Aug 2018 14:11:59 +0000 (16:11 +0200)]
cmake: Fix plugins .h includes
Change-Id: I90600d000afb02e8969f3c01bcf9e4b5c10a7d39
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Mohsin Kazmi [Mon, 27 Aug 2018 11:17:09 +0000 (13:17 +0200)]
cmake: Fix VAPI .hpp generation
Change-Id: I2bec3b2511f00d017f9b3a727809631695222c1a
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
John DeNisco [Thu, 23 Aug 2018 18:04:22 +0000 (14:04 -0400)]
docs: Finish event logger, viewer and cleanup.
Change-Id: I3de038439bf0ab5755777c0f4930aec0514f5b63
Signed-off-by: John DeNisco <jdenisco@cisco.com>
Damjan Marion [Mon, 27 Aug 2018 13:59:30 +0000 (15:59 +0200)]
cmake: fix clang build and few minor fixes
Change-Id: If5b850c939f7a5383f9a7eff8ac41708c3428a90
Signed-off-by: Damjan Marion <damarion@cisco.com>
Neale Ranns [Mon, 27 Aug 2018 12:35:25 +0000 (08:35 -0400)]
CMake: fix install lib and iOMA missing symbol
Change-Id: I929a5c3779cb40c9fde64e88ebe5183a95faf6ff
Signed-off-by: Neale Ranns <nranns@cisco.com>
Damjan Marion [Sun, 26 Aug 2018 16:14:46 +0000 (18:14 +0200)]
cmake: add vapi build
Change-Id: Id939a0cbe35601478ad262f49bb0a1abdb62aa45
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Mon, 27 Aug 2018 09:48:55 +0000 (11:48 +0200)]
ioam: fix vat plugin issue introduced by last commit
Change-Id: I06c14544503b7a072e8c6437c4489c32798a1701
Signed-off-by: Damjan Marion <damarion@cisco.com>
Matus Fabian [Thu, 23 Aug 2018 07:33:35 +0000 (00:33 -0700)]
NAT44: add support for session timeout (VPP-1272)
NAT44 (vanilla/simple and endpoint-dependent mode) now lazily delete expired
sessions. When inserting to session lookup hash and bucket is full, expired
session is overwritten.
Change-Id: Ib1b34959f60f0ca4f5b13525b1d41dd2f992288d
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Damjan Marion [Mon, 27 Aug 2018 09:48:28 +0000 (11:48 +0200)]
cmake: add missing vat plugins
Change-Id: Ib61f0299c17c0f021408ab0a44c5b54f55f8a8ec
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Mon, 27 Aug 2018 09:40:58 +0000 (11:40 +0200)]
cmake: use lib64 for lib dir
While not sure if this is right or not, this is what autotools do
Change-Id: I01f22281302b1383b0e69c3f03e5c8f8a8961358
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sun, 26 Aug 2018 09:04:40 +0000 (11:04 +0200)]
cmake: add add_vpp_library and add_vpp_executable macros
Change-Id: I1382021a6f616571b4b3243ba8c8999239d10815
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sun, 26 Aug 2018 08:14:52 +0000 (10:14 +0200)]
cmake: move functions to src/cmake
Change-Id: Ibcb7105fa7e3c09efdce01bccd4de235fe33ea99
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sat, 25 Aug 2018 19:58:02 +0000 (21:58 +0200)]
cmake: handle api_test_plugins in add_vpp_plugin macro
Change-Id: I76a1711af0a920cce66e6dfb07d019ba505d55b7
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sat, 25 Aug 2018 19:45:25 +0000 (21:45 +0200)]
ioam: one api test plugin instead of five
Change-Id: I715dade7c81f2ba6a0a5297123f588563833c3fb
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Sat, 25 Aug 2018 09:33:29 +0000 (11:33 +0200)]
cmake: improve add_vpp_plugin macro
Change-Id: Iffd5c45ab242a919592a1f686f7f880936b68a1a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Fri, 24 Aug 2018 19:36:42 +0000 (21:36 +0200)]
cmake: add more headers to the install list
Change-Id: I3a0f48381232fcac1727034aa6d2504a8d1edb04
Signed-off-by: Damjan Marion <damarion@cisco.com>
juraj.linkes [Fri, 24 Aug 2018 14:16:28 +0000 (16:16 +0200)]
Fix logging to file and summary for crashed tests
Logging was not being logged to log.txt
Crashed tests were not reported properly when running tests in one
process
Change-Id: Ica2d703d88351cc8a94bad86764ae4376dc79590
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>
Pierre Pfister [Mon, 20 Aug 2018 12:21:07 +0000 (14:21 +0200)]
Add int cast to fit '.*' printf expectations
Sometimes, compiler would throw an error:
error: field precision specifier ‘.*’ expects argument of type
‘int’, but argument 5 has type ‘u64 {aka long unsigned int}’
This change adds the requested cast.
Change-Id: I43edeac0ee565a1fcee38b9d2942e49c8dd63116
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Florin Coras [Fri, 24 Aug 2018 19:59:56 +0000 (12:59 -0700)]
vcl: remove unused binary api handlers
Change-Id: Ifc36e3934574ba479f71157f797b2d0745b1d100
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Fri, 24 Aug 2018 20:58:49 +0000 (13:58 -0700)]
session: fix coverity warnings
Change-Id: I2a25bba675fc9c84e5d391533e92b9a041637405
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Mon, 13 Aug 2018 06:50:53 +0000 (23:50 -0700)]
session: add support for multiple app workers
Refactor session layer to support multiple workers per application.
Change-Id: Ie67354688d396449d14bbbb8c56050206e307cd8
Signed-off-by: Florin Coras <fcoras@cisco.com>
Dave Barach [Fri, 17 Aug 2018 22:29:07 +0000 (18:29 -0400)]
Clean up packet tracer, especially "clear trace"
There are multiple trace enablement schemes. It's easy to end up in
vlib_add_trace with tracing disabled insofar as the packet tracer is
concerned. When that happens, return the address of a per-system
dummy trace record.
Change-Id: I929391b8be4ed57e26e291afdc509a15f09a3160
Signed-off-by: Dave Barach <dave@barachs.net>
Neale Ranns [Fri, 24 Aug 2018 12:43:35 +0000 (05:43 -0700)]
MPLS tunnel: don't reuse hw-indices
this is the same behaviour as other tunnel types
Change-Id: I6439f692bc2bc18f12eea599e0e06b9eaa5eb128
Signed-off-by: Neale Ranns <nranns@cisco.com>
Mohsin Kazmi [Thu, 23 Aug 2018 16:28:11 +0000 (18:28 +0200)]
rx-placement: Add API call for interface rx-placement
Change-Id: I9228ce29e9d2fc862a2d076b4072bcdd728d6dd1
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Eyal Bari [Thu, 23 Aug 2018 09:16:41 +0000 (12:16 +0300)]
l2:bvi-dont aceess sup hw int for broadcasts
sup hw int is needed only for unicast validation
Change-Id: I5e5753c09d1c16fdb2435b4db5628a2379fe6f96
Signed-off-by: Eyal Bari <ebari@cisco.com>
Dave Barach [Thu, 23 Aug 2018 21:08:44 +0000 (17:08 -0400)]
Rename struct mallinfo -> struct dlmallinfo
Also: don't #include /usr/include/malloc.h in dlmalloc.h
Change-Id: Ic73ff8862cc8aba371488b912255e28dd96374ff
Signed-off-by: Dave Barach <dave@barachs.net>
Damjan Marion [Thu, 23 Aug 2018 20:21:33 +0000 (22:21 +0200)]
cmake: fix -DVPP_USE_DLMALLOC=OFF
Change-Id: Ib8dc37b1a39c92a0c7b22cebdf985c6afa8229d9
Signed-off-by: Damjan Marion <damarion@cisco.com>
Florin Coras [Thu, 23 Aug 2018 23:27:05 +0000 (16:27 -0700)]
tcp: fix cc recovery re-entry and persist timer pop
Change-Id: I89e8052f2d2c36dd3de5255c4ee570722dc58227
Signed-off-by: Florin Coras <fcoras@cisco.com>
Florin Coras [Fri, 24 Aug 2018 02:27:03 +0000 (19:27 -0700)]
session: fix retrieval of local sessions if app is detached
Change-Id: I0f5c1dc99610b65646c3b5cf8da7aea273371e4d
Signed-off-by: Florin Coras <fcoras@cisco.com>
Damjan Marion [Thu, 23 Aug 2018 19:58:05 +0000 (21:58 +0200)]
bihash: remove unused counters
Change-Id: I1f0aae16e4ace850d7d79b9c2c644a3e0d002636
Signed-off-by: Damjan Marion <damarion@cisco.com>
Dave Barach [Thu, 23 Aug 2018 15:23:00 +0000 (11:23 -0400)]
clib_mem_is_heap_object() needs to recognize sys_alloc segments
Preferably without mistaking -pie (address randomized) segment
addresses for heap objects.
Change-Id: Idca6b966f14b1caf6b4637843fe407dbc5017535
Signed-off-by: Dave Barach <dave@barachs.net>
Damjan Marion [Thu, 23 Aug 2018 15:57:20 +0000 (17:57 +0200)]
cmake: keep 'make test-debug' on autotools for now
Change-Id: Ia073a0e13da174d434f6562efe0833ee35ea40e2
Signed-off-by: Damjan Marion <damarion@cisco.com>
Marco Varlese [Thu, 23 Aug 2018 12:38:57 +0000 (14:38 +0200)]
sctp: https://jira.fd.io/browse/VPP-1396
Reducing the number of clients and mbytes transferred to make the test a
functional test rather than a stress one.
Change-Id: I715ab5db087b96c40da37d4221f3030b10519fd0
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Damjan Marion [Thu, 23 Aug 2018 07:49:46 +0000 (09:49 +0200)]
ip4: rework rewrite node to use vlib_buffer_enqueue_to_next()
- perf improvement is around 3 clock per packet
- it properly prefetches ip header and rewrite area
Credits to zhiyong.yang@intel.com for spotting that in some cases
rewrite area is not prefetched.
Change-Id: Ie02913de7bd7f42b7df2617fb5fa87c74ab53c23
Signed-off-by: Damjan Marion <damarion@cisco.com>
juraj.linkes [Mon, 16 Jul 2018 12:22:01 +0000 (14:22 +0200)]
CSIT-1139: Implement parallel test execution
The implementation of parallel test execution in VPP Test Framework.
- VPPTestCase test methods are grouped together
- tests are running in separate processes
- VPP instances spawned by tests are assigned to different cores
- output from these processes is redirected through pipes and printed
out testcase by testcase
- TEST_JOBS env var is used to specify the number of parallel processes
- improved test summary
- a bit of code cleanup
Change-Id: I9ca93904d9fe2c3daf980500c64a8611838ae28c
Signed-off-by: juraj.linkes <juraj.linkes@pantheon.tech>