3750 Commits

Author SHA1 Message Date
Ole Troan
1d977dceee IPIP: Fix coverity error.
Change-Id: Ia2b3350bf8e2c72eee3f33936ba16dd817c75c72
Signed-off-by: Ole Troan <ot@cisco.com>
2018-03-19 15:36:38 +00:00
Neale Ranns
2bc940272e Scapy upgrade to 2.4.0.rc5
- many of the patches fd.io applies in test/patches/2.3.3 are now upstreamed in 2.4
- 2.4 adds support for IGMPv3 which is my main motivation for the upgrade

Change-Id: If2c0a524e3cba320b4a5d8cd07817c6ea2bf0c5a
Signed-off-by: Neale Ranns <nranns@cisco.com>
2018-03-19 13:09:45 +00:00
Dmitry Vakhrushev
f38bef46a3 FIX: Fixed ip6_fib_dump api function response.
Change-Id: I26c5d61bc2f6188bcd4ecac4b5e9385821b0398b
Signed-off-by: Dmitry Vakhrushev <dmitry@netgate.com>
2018-03-19 11:17:48 +00:00
Neale Ranns
2ae2bc5380 Remove unnumbered configuration on interface delete
Change-Id: Iae5532c3d53e208831f3b2782242d9e59d367087
Signed-off-by: Neale Ranns <nranns@cisco.com>
2018-03-18 03:16:49 -07:00
Florin Coras
33d162909f cli: make q work again
After the addition of "qos" cli, "quit" command is not the only match
for "q". Therefore, add a separate "q" cli to avoid ambiguity.

Change-Id: I84f6ddce14ef7d5fa7089537cb62adfecea0e501
Signed-off-by: Florin Coras <fcoras@cisco.com>
2018-03-16 09:13:37 -07:00
Neale Ranns
039cbfe254 QoS recording and marking
Change-Id: Ie5a50def4ec1e4a3b3404a8b6ab9ec248bc16744
Signed-off-by: Neale Ranns <nranns@cisco.com>
2018-03-16 20:28:50 +00:00
Dave Barach
0d65d11053 Fix a long-latent bi=0 bug in vlib_buffer_add_data
Change vlib_buffer_add_data() so it interprets ~0 to mean please
allocate a new buffer, instead of 0. Fixed a couple of calls to pass
~0 instead of 0.

Zero has always been a valid buffer index, we never happened to
actually use it until recent buffer allocator changes.

The presenting symptom: ASSERT failure when running "make
TEST=test_mpls test-debug"

Change-Id: Ic909913c1d464b3434d6d47e0c58f978806854d5
Signed-off-by: Dave Barach <dave@barachs.net>
2018-03-16 20:28:13 +00:00
Juraj Sloboda
c03742346f IPv6 ND Router discovery control plane (VPP-1095)
Change-Id: I4b5b60e7c6f618bb935eab1e96a2e79bbb14f58f
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2018-03-16 20:07:51 +00:00
Klement Sekera
ff92efe107 stats: allow configuring poller delay
This introduces a startup config option for configuring stats poller delay.

Use `stats { interval <seconds> }` to configure the delay at startup.

The default value remains unchanged - 10 seconds.

Change-Id: If12cb1f7f6f1f8ecfa461561bc77847cdf260388
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2018-03-16 19:16:02 +00:00
Matus Fabian
ce8805c6a6 IPSec: fix IPv6 policy deleting
Change-Id: I9f487d6033edde09557709f94f97fc8a70246b09
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2018-03-16 16:14:01 +00:00
Neale Ranns
bce6b7bcf9 remove spurious print statements from DVR tests
Change-Id: I3b1c71b144b4760922a467086fcdb410cd225c57
Signed-off-by: Neale Ranns <nranns@cisco.com>
2018-03-16 05:08:24 -07:00
Damjan Marion
8c257205b8 Fix sample-plugin build on ubuntu 18.04
Change-Id: Ia10aadc7f969b20e8cd50989230a80e7e21cbff4
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-03-16 11:34:53 +00:00
Juraj Sloboda
4b9669dc11 IPv6 ND Router discovery data plane (VPP-1095)
Add API call to send Router Solicitation messages.
Save info from incoming Router Advertisement messages and notify listeners.

Change-Id: Ie518b5492231e03291bd4c4280be4727bfecab46
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
2018-03-16 10:37:18 +00:00
Florin Coras
e1b819efac session: allow local host binds
Change-Id: I906bbc5bc75279f210093fb9276db9e35ee44c1f
Signed-off-by: Florin Coras <fcoras@cisco.com>
2018-03-16 02:20:09 +00:00
Damjan Marion
55f99675e5 remove bootstrap from top-level Makefile
Change-Id: I9f2a1ba9153ff57958b230a1ba2afeb9df50fd45
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-03-15 22:14:55 +01:00
Keith Burns (alagalah)
60ae80fb1c Update session local address is_ip4 on bind when not global
Change-Id: I73ddca5a86e83c9f547778828bb49d2bd4675eaf
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2018-03-15 18:13:37 +00:00
Dave Wallace
816833f0e9 make test: Add VCL iperf3 tests
Change-Id: I101a44aa4913bee8d9a1aa37822e8e7e61c7aa1d
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2018-03-15 15:12:12 +00:00
Florin Coras
58d36f02b4 tls: add openssl engine
Change-Id: I6c215858d2c9c620787632b570950b15274c0df2
Signed-off-by: Florin Coras <fcoras@cisco.com>
2018-03-15 15:04:11 +00:00
Ole Troan
46c1c11ba0 IPIP: Linter on test_*.py
Change-Id: Icd491e382a2da0e5d55a673458605bc37e39b669
Signed-off-by: Ole Troan <ot@cisco.com>
2018-03-15 14:59:08 +00:00
Vijayabhaskar Katamreddy
b9ca61be1a Add a helper function to fetch vlib node index for already stacked dpos
Change-Id: Ie07c6f3723312ce88046570dcbe591b72724657b
Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
2018-03-15 13:16:39 +00:00
Damjan Marion
92b44ea50a use system provided ccache links
Change-Id: I0860bbd0cf368fc3638b861504ebf642ee9d3807
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-03-15 02:09:05 +01:00
Jon Loeliger
1fcbd72809 IPIP: Also publish the ipip.api.h file.
Change-Id: I0b1237db541b752393483496ea19dec55799454e
Signed-off-by: Jon Loeliger <jdl@netgate.com>
2018-03-14 20:16:47 +00:00
Damjan Marion
9d7a7ba366 fix 'make build'
Change-Id: I4ec24ffd39f83d9c2d4115e7a06a5eb84a08aae8
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-03-14 20:58:39 +01:00
Klement Sekera
05742265d4 make test: early core detection, code cleanup
Change-Id: I503d69f902f1c8d3107fb3f2b9f31b0083ebb747
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2018-03-14 19:14:54 +00:00
Dave Barach
5a72e425f9 Clean up vpp build bootstrap step
Net of rewriting vppapigen in python-ply, there's no need to compile
vppinfra.

Install a copy of vppapigen in .../build-root/tools/bin, so
the sample plugin build will work. Rationalize suffix-rules.mk.

Add clang, clang++ links to .../build-root/ccache-bin.

Change-Id: Ib4017848b7767b6054238ea544ee5319667c3659
Signed-off-by: Dave Barach <dave@barachs.net>
2018-03-14 19:06:16 +00:00
Billy McFall
1ac36d7421 VPP-1197: SELinux: 'create tap' (vhost-net backend TAP) fails when
SELinux is enable

Update the SELinux Policy to allow management of the new vhost-net
backend TAP interface.

Change-Id: I2d0633a7fce2ee2a4d6e0008ab13599647c14f42
Signed-off-by: Billy McFall <bmcfall@redhat.com>
2018-03-14 18:43:39 +00:00
Damjan Marion
d1274cb207 vlib: internal buffer manager rework
- buffer_main is no longer part of vlib_main_t
 - pool of free lists is still part of vlib_main_t
 - mheap is not used anymore for buffer allocation
 - simple bitmap bassed buffer alloc scheme is introduced

Change-Id: I3e1e6d00e2c8122293ed0a741245eb841315a1ff
Signed-off-by: Damjan Marion <damarion@cisco.com>
2018-03-14 16:38:06 +00:00
Szymon Sliwa
1f15facc74 Prevent calling rte_eth_xstats_get not initialized dev
DPDK API forbids calling rte_eth_xstats_get on a port
which has not been setup up yet.

Citing the DPDK docs (reformated):

"
The functions exported by the application Ethernet API to setup a device
designated by its port identifier must be invoked in the following order:

rte_eth_dev_configure()
rte_eth_tx_queue_setup()
rte_eth_rx_queue_setup()
rte_eth_dev_start()
Then, the network application can invoke, in any order, the functions
exported by the Ethernet API to get the MAC address of a given device,
to get the speed and the status of a device physical link, to
receive/transmit [burst of] packets, and so on.
"

original can be found here:
http://dpdk.org/doc/api/rte__ethdev_8h.html#a36ba70a5a6fce2c2c1f774828ba78f8d

Change-Id: I91854b8b0dd12dd028b4b36665cca49f16eac24c
Signed-off-by: Szymon Sliwa <szs@semihalf.com>
2018-03-14 14:45:34 +00:00
Ole Troan
298c69510f IPIP: Add IP{v4,v6} over IP{v4,v6} configured tunnel support.
Change-Id: I166301c9e2388bae5f70ec0179d663a2703e27f5
Signed-off-by: Ole Troan <ot@cisco.com>
2018-03-14 14:06:02 +00:00
Dave Wallace
1c5ddbb22b socket_test.sh: Don't hard code debug image with gdb.
Change-Id: Idd6c175b9102c74621c027136ab4550821a23ecc
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2018-03-14 13:34:32 +00:00
Klement Sekera
833e76151f make test: handle multiple failures in one case
Change-Id: I5451ddec4bfdede12653415f90bf991e81494033
Signed-off-by: Klement Sekera <ksekera@cisco.com>
2018-03-14 13:33:45 +00:00
Dave Wallace
63f1859de1 VCL: Handle epoll HUP events in sock_test_server
Change-Id: I7b13319228c498a565f8556b73628e7ff3b106c4
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2018-03-14 13:33:25 +00:00
Francois Clad
f4e58086a7 srv6-plugins: fixing documentation
Change-Id: I72439df585e56b3cbb7051f056fc35cddf0c864b
Signed-off-by: Francois Clad <fclad@cisco.com>
2018-03-14 13:32:15 +00:00
Francois Clad
4abc5c37af srv6: minor CLI modifications
'sr steer [...] via sr policy [...]' -> 'sr steer [...] via [...]'
'show sr steering policies' -> 'show sr steering-policies'
'clear sr localsid counters' -> 'clear sr localsid-counters'

Change-Id: I0efbf38753a4bd0b7fba8cd08250e136e8e55199
Signed-off-by: Francois Clad <fclad@cisco.com>
2018-03-14 13:32:05 +00:00
John Lo
e23c99ec00 Improve l2_macs_events API to provide MAC move information
Change mac_entry layout in l2_macs_event API message so the MAC
entry can be either add, delete or move where the sw_if_index of
an existing MAC entry changed. Also added a 8-bit flags field
in mac_entry for any future expansion.

Change-Id: I3bf9e1cf2556f2938202025a5d0772c2ce2fc99f
Signed-off-by: John Lo <loj@cisco.com>
2018-03-14 12:07:48 +00:00
Mohsin Kazmi
04def7418b VOM: acl: Add support for acl ethertype unbind and dump
Change-Id: I667b9ccabe54c8f9cff5b1a2e63864965f5064f5
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
2018-03-14 09:09:01 +00:00
Chaoyu Jin
afb1930191 At AF_PACKET socket create, do intf bind before rx ring cfg to avoid receiving pkts from other interfaces
Change-Id: Ie40ee9129edaac717e716b469f4d10f3c29a4932
Signed-off-by: Chaoyu Jin <chjin@cisco.com>
2018-03-14 07:49:39 +00:00
Dave Wallace
49c13c7193 VCL: Fix race condition in event thread function
Change-Id: I8586faee0b3a40932cd711b60cebe1a23ff82a56
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2018-03-13 19:42:02 -04:00
Marco Varlese
3e9b4656a2 SCTP: data retransmission & snd_space fix
This patch addresses two things:
1) The data retransmission which needs to be taken care of when the
SCTP_TIMER_T3_RXTX;
2) The correct calculation of the amount of data transmittable
considered: the local window, the peer window and any data inflight.

Change-Id: I2d03a6cb43e4e7770c4910f8547c66e1026aeace
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2018-03-13 23:01:52 +00:00
Neale Ranns
8145842bf2 Common form of fib-path reproting in dumps
Change-Id: I8f6fdbbeef2ac7e9fe5d87490ae5cba6e9a0b294
Signed-off-by: Neale Ranns <nranns@cisco.com>
2018-03-13 16:48:23 +00:00
Neale Ranns
eca834ed51 FIB: DVR paths are not considered L3 attached
Change-Id: Ie473dca3264b480b007d2eb500aaa557b889c7c1
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
2018-03-13 16:23:20 +00:00
Jakub Grajciar
1941871e26 libmemif: ubuntu 18.04 build fix
Change-Id: I6624cacd625eea6a9b8214f67d14ec162e2c0195
Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
2018-03-13 16:13:46 +01:00
Dave Barach
3464c86065 Rationalize plugin symbol error reporting
Change-Id: I64f2b2007f30fc1c6bd2990ba0d7ccbcd43cdb38
Signed-off-by: Dave Barach <dave@barachs.net>
2018-03-13 01:35:23 +00:00
Marco Varlese
6e4d4a3684 SCTP: cumulative SACK fix
A bug was found affecting the cumulative sending of SACK messages.
Because the next0 was never assigned to the next_output the SACK message
was never leaving the peer.
Further, two new flags have been added to distinguish when a peer is
AWAITING a SACK message (e.g. DATA is inflight and waiting to be
acknowledged).

Change-Id: Ibb5a98f7e5fed15cdc76710b74195cac031d59ed
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
2018-03-13 00:36:53 +00:00
Jon Loeliger
179ab361b7 SPAN: Add 'is_l2" flag to DETAILS response messages.
Change-Id: I375bb0e663bc082d98a29fb101c653557ddc8f55
Signed-off-by: Jon Loeliger <jdl@netgate.com>
2018-03-12 21:33:25 +00:00
Dave Barach
611d918f80 Remove md5.[ch] from vppinfra
Removed the sole use of it from ip6_neighbor.c

Change-Id: Ie53cb3b6a3a41ec0917ec2042e5006d0cfaefc01
Signed-off-by: Dave Barach <dave@barachs.net>
2018-03-12 15:57:10 -04:00
Dave Barach
8d0f2f0031 License text cleanup
Change-Id: I105375c653b1a1dce8f0f71005b281ff137c6f42
Signed-off-by: Dave Barach <dave@barachs.net>
2018-03-12 15:08:44 +00:00
Matus Fabian
3c2a416c42 NAT44: fix nat_not_translate_output_feature in dual loop (VPP-1194)
Change-Id: Icb858414145db0e5fef495e155903b3b935e50ba
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2018-03-12 03:42:15 -07:00
Matus Fabian
2aad876be8 NAT44: fix nat_not_translate_output_feature for ICMP (VPP-1191)
Change-Id: I1552e1418b704fdf1f1fa2c0174313b9b82a37a3
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2018-03-12 10:21:42 +00:00
Andrew Yourtchenko
2ca200501e vnet: l2-classify: prefetch (n+2, n+3) rather than (n+1, n+2) inside dual loop code
The dual loop within the L2 classifier processes the (n, n+1) packets,
the prefetching was trying to prefetch (n+1, n+2) - thus half of the
prefetches were not used - because the next iteration needs (n+2, n+3).

Change-Id: I827d20845dbdd0dcdcf463ee25661a7921428992
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
2018-03-11 19:29:27 +00:00