Andrew Yourtchenko [Tue, 4 Apr 2017 20:38:33 +0000 (20:38 +0000)]
acl-plugin: fix pretty-printing in "api trace custom-dump" (VPP-683)
Change-Id: Id15b401223aabe7dacb7566c871ebefc17fbb1fc
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit
7fd3f513c7df198c45204eba0a3e9a3abe509593)
Milan Lenco [Wed, 5 Apr 2017 12:42:42 +0000 (14:42 +0200)]
Fix two more memif coverity issues
Change-Id: I935620798d6fe82b99b6bd564749e20a189b4ae3
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Sergio Gonzalez Monroy [Wed, 5 Apr 2017 14:12:38 +0000 (15:12 +0100)]
Fix name typo
Change-Id: Ic7128d4f8a13c021e0fd4731a717193d050431d2
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Filip Tehlar [Wed, 5 Apr 2017 08:06:03 +0000 (10:06 +0200)]
LISP: fix crash when GPE interface is re-added, VPP-685
Change-Id: Ib83baf6ddec4ac192f6b4123d9eb599fb370fd0c
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Filip Tehlar [Tue, 4 Apr 2017 13:26:54 +0000 (15:26 +0200)]
LISP: fix crash when adding a negative forwarding entry, VPP-681
Change-Id: I190696da5555c05074ee0eee32eb914bd16e38fb
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Ciara Loftus [Fri, 30 Sep 2016 14:47:03 +0000 (15:47 +0100)]
GRE over IPv6
Refactors the GRE node to work with both IPv4 and IPv6 transports.
Note that this changes the binary configuration API to support both
address families; each address uses the same memory for either
address type and a flag to indicate which is in use.
The CLI and VAT syntax remains unchanged; the code detects whether
an IPv4 or an IPv6 address was given.
Configuration examples:
IPv4 CLI: create gre tunnel src 192.168.1.1 dst 192.168.1.2
IPv6 CLI: create gre tunnel src 2620:124:9000::1 dst 2620:124:9000::2
IPv4 VAT: gre_add_del_tunnel src 192.168.1.1 dst 192.168.1.2
IPv6 VAT: gre_add_del_tunnel src 2620:124:9000::1 dst 2620:124:9000::2
Change-Id: Ica8ee775dc101047fb8cd41617ddc8fafc2741b0
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Damjan Marion [Mon, 3 Apr 2017 23:28:26 +0000 (01:28 +0200)]
Fix issue with gre protocol registration when running multithreaded
Change-Id: Ic5bd7da08f8a46b548d56516e4633f0b8badf2a1
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Mon, 3 Apr 2017 12:56:08 +0000 (14:56 +0200)]
Fix issue with udp port registration when running multithreaded
Change-Id: I16606757176649e61f0a51895329586311144766
Signed-off-by: Damjan Marion <damarion@cisco.com>
Eyal Bari [Tue, 4 Apr 2017 01:46:32 +0000 (04:46 +0300)]
BD/API:add bridge_domain_set_mac_age api
Change-Id: Ic2d33b31ba88f6d9602a22439865637d98cf4a33
Signed-off-by: Eyal Bari <ebari@cisco.com>
Dave Barach [Tue, 4 Apr 2017 12:00:23 +0000 (08:00 -0400)]
Clear pid-vector, to avoid spurious track selection
Change-Id: Ibc293aa1305126920c0b2c44df1f7a7d5ae9ea9d
Signed-off-by: Dave Barach <dave@barachs.net>
Damjan Marion [Tue, 28 Mar 2017 12:16:15 +0000 (14:16 +0200)]
vlib: make vlib_node_interrupt_pending(...) thread safe
Change-Id: I24577bd32ae23fbe8515cc8d960eab5448ce3b5c
Signed-off-by: Damjan Marion <damarion@cisco.com>
Eyal Bari [Tue, 4 Apr 2017 01:23:52 +0000 (04:23 +0300)]
VXLAN:fix api dump flipped src<->dst
Change-Id: I48bf6c46d78773669e76dc4749be3b1af80782f4
Signed-off-by: Eyal Bari <ebari@cisco.com>
Klement Sekera [Mon, 3 Apr 2017 06:10:08 +0000 (08:10 +0200)]
make test: relax BFD time intervals
Increased time intervals mean longer test runs, but also reduce
the chance of getting annoying (especially in gerrit) random failures.
Now that tests are split into `basic' and `all', the increased runtime
of BFD tests (of which majority doesn't run in basic case) doesn't
matter too much..
Change-Id: I4a15bb4facad634f123bc9cc6f45eddbf4976fd1
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Dave Barach [Mon, 3 Apr 2017 14:22:17 +0000 (10:22 -0400)]
g2: add multi-track time-slew controls
Create an elog_merge utility, extracted from test_elog.
Change-Id: Ide137b4858c88b3a2885583b7fbb15ddc4963af9
Signed-off-by: Dave Barach <dave@barachs.net>
Klement Sekera [Mon, 3 Apr 2017 04:21:46 +0000 (04:21 +0000)]
make test: tweak helper scripts
Change-Id: Iee6016757e45c832e8868f0bdcfd4192dd3380c8
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Milan Lenco [Fri, 31 Mar 2017 12:51:18 +0000 (14:51 +0200)]
Fix memif coverity issues
Change-Id: I844ec53b55ceaa1e00996f5cf8a018537ea8b481
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Jan Gelety [Mon, 3 Apr 2017 07:37:00 +0000 (09:37 +0200)]
Update CSIT tests 170313 -> 170403
- update of CSIT operational branch to be used for VPP-patch test
Change-Id: I4bf32bc12c7417f7c19b23287a2b2899eb8fb02d
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Damjan Marion [Mon, 3 Apr 2017 10:02:32 +0000 (12:02 +0200)]
vnet: remove vnet/rewrite.h from vnet.am
Change-Id: I2a1246061e57c4caae0a1a1b861c459d115860cd
Signed-off-by: Damjan Marion <damarion@cisco.com>
Jon Loeliger [Thu, 30 Mar 2017 13:39:33 +0000 (08:39 -0500)]
Add an API call to set interface MAC addresses.
Change-Id: I316862e1d33e5d10c058317cc4827304e55ceba4
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Neale Ranns [Mon, 20 Feb 2017 22:19:51 +0000 (14:19 -0800)]
Adjacency layout change and move to vnet/adj
Change-Id: I03195a86c69f84a301051c6b3ab64456bbf28645
Signed-off-by: Neale Ranns <nranns@cisco.com>
Florin Coras [Thu, 30 Mar 2017 09:54:28 +0000 (02:54 -0700)]
TCP cc/window management fixes and debugging
- added persist timer
- update rcv_las whenever sending an ack
- moved fifo size to its own cache line
- improved session and builtin client debugging
Change-Id: Ia649cf942cf0c061a713e8b67f0eb6974a6cd55b
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Klement Sekera [Mon, 13 Mar 2017 06:39:08 +0000 (06:39 +0000)]
make test: add scripts for easy test looping
Allows easy running of test(s) in a loop with configurable
action (e.g. git pull) run between test runs and possible
email notification on failure.
Usage:
test-loop.sh [-p <pre-exec-cmd>] [-m <email>] -- <make test options>
Example:
Run 'make test-debug' in a loop until a failure is encountered,
upon which an email is fired to ksekera@cisco.com. In between test
runs, update the workspace using via 'git pull' and if anything changed,
perform 'git clean' before running another 'make test-debug':
test/scripts/test-loop.sh -p test/scripts/git_pull_or_clean.sh \
-m ksekera@cisco.com -- test-debug
Change-Id: I114321c6c152d2c7e181e915fc8c51aab1ff3693
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Choonho Son [Wed, 29 Mar 2017 11:07:45 +0000 (20:07 +0900)]
CLI: create/delete bridge-domain
Added new CLI command
- create bridge-domain <bridge-domain-id>
- create bridge-domain <bridge-domain-id> del
Change-Id: I1a7d632c7daa3c37b7f424a184e8fabd489518e9
Signed-off-by: Choonho Son <choonho.son@gmail.com>
Eyal Bari [Sat, 1 Apr 2017 00:55:08 +0000 (03:55 +0300)]
ARP/ND/API:fix arp reg + nd no identical regs
fixed arp registration without allocating the event
added protection against identical ND registrations
Change-Id: I4e2db4913b35d895d8686ada1f0818920f276ad6
Signed-off-by: Eyal Bari <ebari@cisco.com>
Dave Barach [Sat, 1 Apr 2017 15:07:40 +0000 (11:07 -0400)]
Clean up event log merge code
Fix a decade-old ridiculous qsort function bug. Managed to subtract
floating-point numbers as if they were integers, leading to
manufactured time-paradoxes. That completely confuses g2, leading to
the summary disappearance of entire tracks' worth of data at high zoom
levels.
Add a manual alignment tweak parameter to elog_merge, users can
dial-out time paradoxes caused by NTP-grade clock synchronization.
The event-logger has a precision of O(100ns), whereas NTP
synchronization is O(1ms).
Change-Id: I69dedabaa314f69f9df74ec9ee66e21e6c87f703
Signed-off-by: Dave Barach <dave@barachs.net>
Neale Ranns [Tue, 28 Mar 2017 10:49:52 +0000 (03:49 -0700)]
MTRIE Optimisations 2
1) 16-8-8 stride. Reduce trie depth walk traded with increased memory in the top PLY.
2) separate the vector of protocol-independent (PI) fib_table_t with the vector of protocol dependent (PD) FIBs. PD FIBs are large structures, we don't want to burn the memory for ech PD type
3) Go straight to the PD FIB in the data-path thus avoiding an indirection through, e.g., a PLY pool.
Change-Id: I800d1ed0b2049040d5da95213f3ed6b12bdd78b7
Signed-off-by: Neale Ranns <nranns@cisco.com>
Eyal Bari [Thu, 30 Mar 2017 23:15:17 +0000 (02:15 +0300)]
ARP/API:protect against identical registrations
Change-Id: Ia3acf87d3e07a7d41c047869de504e1972334b55
Signed-off-by: Eyal Bari <ebari@cisco.com>
Damjan Marion [Thu, 30 Mar 2017 15:58:42 +0000 (17:58 +0200)]
dpdk: add support for Mellanox ConnectX-5 devices
Change-Id: I3ed2834a326eac50a7cb4faa592f42fd06325d5a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Thu, 16 Mar 2017 15:15:38 +0000 (16:15 +0100)]
vlib: extend foreach_vlib_main macro to assert if workers are not parked
Change-Id: I6ff7b65a400734a47bc0a7d03faf86ef1cf4f8c8
Signed-off-by: Damjan Marion <damarion@cisco.com>
Neale Ranns [Thu, 30 Mar 2017 22:24:18 +0000 (15:24 -0700)]
Add vnet/rewrite.am back into exported headers
Change-Id: I4dbd0dbd1e24bbf7c66fb9a2c055c8bc11d3817d
Signed-off-by: Neale Ranns <nranns@cisco.com>
Filip Tehlar [Thu, 30 Mar 2017 13:17:01 +0000 (15:17 +0200)]
LISP: Do not show P-ITR generated mapping
Change-Id: I1aa25ef11dc75002cb9b6aac0981af00026e57ce
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
John Lo [Wed, 29 Mar 2017 17:35:43 +0000 (13:35 -0400)]
Fix pid field endian in ARP/ND/DHCP event related API messages
Make sure pid field in these API messages is stored in network
order (it is also kept and used by VPP in network order).
Change-Id: Id5d08e7a45b7e49d4b840a337458d99414d0b949
Signed-off-by: John Lo <loj@cisco.com>
Dave Barach [Thu, 30 Mar 2017 13:33:01 +0000 (09:33 -0400)]
Fix more "symbol XXX found in none of the libs" warnings
Change-Id: I4467f26da5bdcfd76e5914e0124a83b659757947
Signed-off-by: Dave Barach <dave@barachs.net>
Andrew Yourtchenko [Wed, 29 Mar 2017 14:47:10 +0000 (16:47 +0200)]
acl-plugin: cleaner node bugfixes (VPP-675)
- use the counters in a private struct rather than node error counters
- ensure the timer for the non-idle connections is restarted
- fix the deletion of conn at the current tail the list
Change-Id: I632f63574d2ced95fb75c5e7fb588c78fb3cce1c
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit
097051a3bd1f63a177c0728f15375afd84a68918)
Damjan Marion [Mon, 27 Mar 2017 15:08:20 +0000 (17:08 +0200)]
vppinfra: add spinlock inline functions
Change-Id: I86089e9bb604adfc260a111685001be1c897ce53
Signed-off-by: Damjan Marion <damarion@cisco.com>
shwethab [Wed, 29 Mar 2017 11:36:37 +0000 (11:36 +0000)]
SR replicate mheap corruption fix VPP-672
Change-Id: If1c68fc63fa71fab198f2bf4f79bdd7a9841c2e8
Signed-off-by: shwethab <shwetha.bhandari@gmail.com>
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
Pablo Camarillo [Wed, 29 Mar 2017 14:54:40 +0000 (07:54 -0700)]
VPP-673 Fix L2 steering.
Change-Id: I1eab03525f234139ceefbc9b9895a35a03a56910
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
Andrew Yourtchenko [Fri, 24 Mar 2017 16:46:42 +0000 (17:46 +0100)]
VPP-669: ping: fix coverity check error 165075 + add ping testcase
Fix the bug and add the unit test to start with ping test coverage
Change-Id: Ibeacbed1f1660e677faa2dbb2ebe386216693e96
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Dave Barach [Wed, 29 Mar 2017 20:59:02 +0000 (16:59 -0400)]
Clean up more Debian packaging symbol warnings
Change-Id: I6081a38af3817f0957a2faf0e3e41afa4a74f3a4
Signed-off-by: Dave Barach <dave@barachs.net>
Eyal Bari [Thu, 30 Mar 2017 00:05:06 +0000 (03:05 +0300)]
BRIDGE-DOMAIN:enable arp term,mac/ip learning on local ints
we should not suppress arps on remote interface instead we should flood them to the local one
used shg != 0 to identify packets from remote interfaces and disable arp term l2 input feature for them
Change-Id: I701537c05df7451a25ccb5bfc9e2b03ea70cff20
Signed-off-by: Eyal Bari <ebari@cisco.com>
Neale Ranns [Wed, 22 Mar 2017 20:27:53 +0000 (13:27 -0700)]
IP lookup: remove used stack variables
Change-Id: I19b16d3e04a187ffe736fae868941957c70edf62
Signed-off-by: Neale Ranns <nranns@cisco.com>
Thomas F Herbert [Wed, 29 Mar 2017 14:40:16 +0000 (10:40 -0400)]
Fix for dependency problem with Fedora 25
Change-Id: I0e86f8eb6d62c6a109876b5bf35cc62ab617608e
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
Filip Tehlar [Wed, 29 Mar 2017 07:39:23 +0000 (09:39 +0200)]
LISP: fix IID in decap
Change-Id: I3f67d32d5d76069a27176deef6cba0c1a194b7ec
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Neale Ranns [Wed, 29 Mar 2017 16:34:10 +0000 (09:34 -0700)]
Coverity Error: logically dead code in IP unnumbered CLI
Change-Id: Id3398bd4b7a56c168aaab37942b92715e19d4025
Signed-off-by: Neale Ranns <nranns@cisco.com>
Dave Barach [Wed, 29 Mar 2017 15:17:45 +0000 (11:17 -0400)]
Remove spurious client linkages against libvlib.so
Change-Id: Ie77c8d57d0b0a153742d55ff0a8a9d72791d8b20
Signed-off-by: Dave Barach <dave@barachs.net>
Eyal Bari [Thu, 23 Mar 2017 07:53:51 +0000 (09:53 +0200)]
VXLAN:validate mcast encapsulation ip/mac
Change-Id: I399257e372f83f4d12dc7873617980af6e46a9bc
Signed-off-by: Eyal Bari <ebari@cisco.com>
Neale Ranns [Tue, 21 Feb 2017 04:29:41 +0000 (20:29 -0800)]
MAP - add the domain struct directly into the dat-path and avoid the indirectiob throught the map-DPO
Change-Id: Ifb72a1c1258440fdc4845aca8aecf2abd63526b1
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Thu, 23 Mar 2017 13:46:01 +0000 (06:46 -0700)]
Mtrie optimisations
1 - make the default route non-special, i.e. like any other less specific route. Consequently, all buckets have a valid valid index of either a leaf or a ply. Checks for special indeices in the data-path can thus be removed.
2 - since all leaves are now 'real' i.e. they represent a real load-balance object, to tell if a ply slot is 'empty' requeirs chekcing that the prefix length of the leaf occupying the slot is slot than the minium value for that ply.
3 - when removing a leaf find the cover first, then recurse down the ply and replace the old leaf with the cover. This saves us a ply walk.
Change-Id: Idd523019e8bb1b6ef527b1f5279a5e24bcf18332
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Sun, 26 Mar 2017 17:56:33 +0000 (10:56 -0700)]
Sub-net broadcast addresses for IPv4
Change-Id: Ib2189d01e8bc61de57404159690fb70f89c47277
Signed-off-by: Neale Ranns <nranns@cisco.com>
Damjan Marion [Wed, 29 Mar 2017 08:50:43 +0000 (10:50 +0200)]
dpdk: fix --with-dpdk-mlx5-pmd link issue
Change-Id: I8edb927289c080929380bfbf2b760749b7984d4b
Signed-off-by: Damjan Marion <damarion@cisco.com>
Steven [Wed, 22 Mar 2017 19:05:19 +0000 (12:05 -0700)]
vhost: vhost-user component may become unusable with too many open files (VPP-668)
When the number of open files is reached in the system, vhost may
encounter a failure in socket call and return from vhost-user-process.
The return terminates all attempts of incoming socket connections
in the future, even if the condition is reconciled.
The fix is to not return from vhost-user-process, record the error in
the interface, spit out the error, and retry the connection every 3 seconds.
Change-Id: I806baedf13e8c9b73e7c7820c094240f39949950
Signed-off-by: Steven <sluong@cisco.com>
Pablo Camarillo [Thu, 16 Mar 2017 09:43:05 +0000 (10:43 +0100)]
Bugfixing and documentation for SRv6
- Fixed three coverity issues
- Linked SRv6 docs
- Moved sample plugin to examples folder
- Fixed bug with hash. Now everything is using mhash. Potentially in the future we want to do bihash.
Change-Id: Ie03a13c8fecb1e315e67d0596cbd23220779aaf2
Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
Dave Barach [Tue, 28 Mar 2017 16:31:33 +0000 (12:31 -0400)]
Unscrew builtin client
"test tcp client bytes 750000" deadlocks w/ Pr={1.0}
Change-Id: Ifa56b0de7812b9f27aa5bce2874b740c46ab30bd
Signed-off-by: Dave Barach <dbarach@cisco.com>
Martin Gálik [Mon, 27 Mar 2017 13:02:47 +0000 (06:02 -0700)]
NAT: Test refactoring to avoid redundant code for verification and creating packet streams in additional test cases
Change-Id: I2265f8acfa63a7ea920a7cb981819a14806a3d58
Signed-off-by: Martin Gálik <magalik@cisco.com>
Damjan Marion [Tue, 28 Mar 2017 13:11:20 +0000 (15:11 +0200)]
vlib: inline dispatch_node(...) (again)
Worker main loop is now shared code with main thread
main loop so no need to export functions anymore.
Change-Id: I99ee2eee981c1b88ca31d20eabeb6c21d030a34d
Signed-off-by: Damjan Marion <damarion@cisco.com>
Damjan Marion [Thu, 23 Mar 2017 09:48:47 +0000 (10:48 +0100)]
Comment out dpdk section in startup.conf
It is empty anyway and it is causing problems if dpdk plugin is not
loaded.
Change-Id: I7b49afec39c78cbaf0c57b50621fb3e6848e3469
Signed-off-by: Damjan Marion <damarion@cisco.com>
Jim Gibson [Mon, 27 Mar 2017 19:46:12 +0000 (19:46 +0000)]
af_packet driver needs to check VLIB_BUFFER_NEXT_PRESENT flag is set
when walking vlib_buffer_t next_buffer chain on transmit.
On buffer allocation:
- next_buffer is not and may contain a stale invalid value that
should be ignored if not overwritten by a valid value.
- VLIB_BUFFER_NEXT_PRESENT flag is cleared and only set
if a valid value is written to next_buffer.
Change-Id: I9b0ccdc54f4f7456f8328ce7c4a0d52d0fba8caa
Signed-off-by: Jim Gibson <gibson+fdio@cisco.com>
John Lo [Sat, 25 Mar 2017 00:11:15 +0000 (20:11 -0400)]
Implement MAC Flush for BD or Interface from the L2FIB
Allow non-static MACs in the L2FIB which is associated with an
interface or a bridge domain (BD) be flushed. MAC flush are
initiated automatically when an interface is removed from a BD
or when a BD is deleted. MAC flush can also be invoked manually
via the following CLI:
l2fib mac-flush interface <if-name>
l2fib mac-flush bridge-domain <bd-id>
Change-Id: Ie33243622834810a765f48ebcd22bdb8e8fc87a4
Signed-off-by: John Lo <loj@cisco.com>
Florin Coras [Mon, 13 Mar 2017 10:49:51 +0000 (03:49 -0700)]
TCP/session improvements
- Added svm fifo flag for tracking fifo dequeue events (replaces event
length). Updated all code to switch to the new scheme.
- More session debugging
- Fix peek index wrap
- Add a trivial socket test client
- Fast retransmit/cc fixes
- tx and rx SACK fixes and unit testing
- SRTT computation fix
- remove dupack/ack burst filters
- improve ack rx
- improved segment rx
- builtin client test code
Change-Id: Ic4eb2d5ca446eb2260ccd3ccbcdaa73c64e7f4e1
Signed-off-by: Florin Coras <fcoras@cisco.com>
Signed-off-by: Dave Barach <dbarach@cisco.com>
AkshayaNadahalli [Mon, 27 Mar 2017 17:21:05 +0000 (17:21 +0000)]
Fix output feature processing (VPP-670)
Addressed comments.
Change-Id: Ic7d863ea4126f5046986b661db45d26bcce2068f
Signed-off-by: AkshayaNadahalli <anadahal@cisco.com>
Ole Troan [Mon, 20 Mar 2017 20:38:37 +0000 (21:38 +0100)]
Python API: Fixup of debian package after cFFI changes.
Change-Id: I4c2a1a818f28d4c6cf52af45f3b7dbfa41d77ccb
Signed-off-by: Ole Troan <ot@cisco.com>
Klement Sekera [Fri, 24 Mar 2017 03:29:06 +0000 (04:29 +0100)]
make test: properly propagate exit status
Change-Id: Ie9f48a0d5e0a9cd08eb8f07d49149eee40f04131
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Neale Ranns [Wed, 15 Mar 2017 11:22:25 +0000 (04:22 -0700)]
Mcast rewrite no memcpy
use a 32bit mask in the adjacency to AND with the IP address and OR into the rewrite.
Change-Id: I80b0f246c18fd74f3e43c5d49e25833412f34665
Signed-off-by: Neale Ranns <nranns@cisco.com>
Thomas F Herbert [Mon, 20 Mar 2017 23:19:51 +0000 (19:19 -0400)]
Check for missing deps on bootstrap target for Centos and Fedora.
Change-Id: I823a066417fb6205d1e6b0fdf1de17b054f6d312
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
AkshayaNadahalli [Mon, 27 Mar 2017 09:17:41 +0000 (14:47 +0530)]
Fix output feature processing (VPP-670)
Change-Id: Ia9bab28fb5341712a7d984bb343074ca22d05aab
Signed-off-by: AkshayaNadahalli <anadahal@cisco.com>
Ole Troan [Sat, 25 Mar 2017 18:25:05 +0000 (19:25 +0100)]
Python-API: debian packaging now depends on python-all (for pybuild)
Change-Id: I6b1dd6bdf03fa506c4b114d15800d9fe03e36395
Signed-off-by: Ole Troan <ot@cisco.com>
Dave Barach [Sun, 26 Mar 2017 23:36:18 +0000 (19:36 -0400)]
Rename "show interfaces" -> "show interface"
To line up with "show interface placement," recently added. Otherwise,
"show int" refers only to "show interface placement," which tends to
annoy the cash customers...
Change-Id: Iea9e3681aeb051e2b0e1ecbf06706d98af9a3abf
Signed-off-by: Dave Barach <dave@barachs.net>
Dave Barach [Sat, 25 Mar 2017 12:20:22 +0000 (08:20 -0400)]
g2, c2cpel, and cpeldump: scale to 8M event log files
Change-Id: I7d7748c9c44132d033a9aff1687112ffcb44c460
Signed-off-by: Dave Barach <dbarach@cisco.com>
Klement Sekera [Fri, 24 Mar 2017 04:47:15 +0000 (05:47 +0100)]
make test: fix broken plugin paths
Change-Id: I25a6882ec503fc5bb3694411fbdc2eb1f1e1fafc
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Ole Troan [Wed, 22 Mar 2017 20:33:10 +0000 (21:33 +0100)]
Update master revision to 17.07
Change-Id: Ieb0a5e70bc3db951e577e6ef52a4adaac9b42271
Signed-off-by: Ole Troan <ot@cisco.com>
Damjan Marion [Wed, 22 Mar 2017 09:18:13 +0000 (10:18 +0100)]
Add memif - packet memory interface for intra-host communication
Change-Id: I94c06b07a39f07ceba87bf3e7fcfc70e43231e8a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Co-Authored-By: Milan Lenco <Milan.Lenco@pantheon.tech>
John Lo [Wed, 22 Mar 2017 17:27:27 +0000 (13:27 -0400)]
Update MAC address kept for Bonded Interface and its Slaves
Change-Id: I9f7f9f840c3c1aad5e8c9a4fa1ba7a58a85cfd9e
Signed-off-by: John Lo <loj@cisco.com>
Filip Tehlar [Wed, 22 Mar 2017 08:02:33 +0000 (09:02 +0100)]
LISP: improve DP speed
Change-Id: I5bd0721b70dfc240fa9225df3704774f6b0ede81
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Damjan Marion [Wed, 22 Mar 2017 10:08:39 +0000 (11:08 +0100)]
vlib: add description field in plugin registration
Change-Id: I88b322a5d602f3d6d3310e971479180a89430e0e
Signed-off-by: Damjan Marion <damarion@cisco.com>
Andrew Yourtchenko [Wed, 22 Mar 2017 09:51:14 +0000 (10:51 +0100)]
ping: allow the user to send bursts of N packets instead of single packet
Change-Id: I3c1d3a2db56487473123e6fec2b076a063473313
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Klement Sekera [Tue, 21 Mar 2017 07:27:18 +0000 (08:27 +0100)]
make test: run all tests in test-cov target
Change-Id: I7040c1ecc8b6e5e883420c1c81aa8b70e56263e5
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Klement Sekera [Tue, 21 Mar 2017 07:21:25 +0000 (08:21 +0100)]
make test: support out-of-tree plugins
usage:
env EXTERN_PLUGINS=/path/to/plugins make test
Change-Id: I8eece726dfafeff1cffd921c1e18cd3eb7eb64ed
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Klement Sekera [Thu, 16 Mar 2017 08:14:59 +0000 (09:14 +0100)]
make test: support out-of-tree tests
env EXTERN_TESTS="/path/to/extra/tests" make test
causes to run the default test set and tests collected from
test_*.py files under subtree specified in EXTERN_TESTS.
Change-Id: I58c5471dd6010730278a5b47d4318737d920bc28
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Sergio Gonzalez Monroy [Tue, 7 Mar 2017 14:39:29 +0000 (14:39 +0000)]
dpdk: fix plugin linking with sw crypto libraries
Change-Id: I3e3bf786ab3c7672ff2cc7acd221421072e3ac8b
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Steven [Thu, 16 Mar 2017 04:18:55 +0000 (21:18 -0700)]
vhost: support interrupt mode
vhost currently supports only polling mode. This patch is to add
interrupt mode. When the interface is configured for interrupt
mode, our input node does not get called unless there is a packet
in the vring.
If a particular CPU has one interface configured for polling mode
and another in interrupt, the input node is set to polling for
that CPU.
This diffs also includes two crashes in vlib's dispatch_node. One is
included in https://gerrit.fd.io/r/#/c/5516. The other crash is in
the ASSERT. The ASSERT can become true when the caller of
dispatch_node is in a loop. The first call converted the node
to polling. The second call thereafter will hit the ASSERT.
Change-Id: If17b6d48b20d7d8605c6a161459828637173cd32
Signed-off-by: Steven <sluong@cisco.com>
Martin [Tue, 14 Mar 2017 09:25:45 +0000 (02:25 -0700)]
SNAT: added actual delete to snat_det_map
Change-Id: I8187b43129b80fadd90ea493afb922064f79abbe
Signed-off-by: Martin <magalik@cisco.com>
Marek Gradzki [Tue, 21 Mar 2017 10:51:54 +0000 (11:51 +0100)]
policer: fix byte ordering in policer_details msg
Change-Id: Id53131e8cd32bfd35739a7bd7cdbadf3a9f4d941
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Vengada [Tue, 21 Mar 2017 08:04:46 +0000 (01:04 -0700)]
Initial draft of VPP changes to cleanup iOAM export.
This is needed for iOAM export for NSH.
Change-Id: I702934b2cde8b1c07ec5c299d5fcd98dce94c62c
Signed-off-by: Vengada <venggovi@cisco.com>
Andrew Yourtchenko [Tue, 21 Mar 2017 09:31:55 +0000 (10:31 +0100)]
ACL plugin 1.2
L3 path support, L2+L3 unified processing node, skip IPv6 EH support.
Change-Id: Iac37a466ba1c035e5c2997b03c0743bfec5c9a08
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Filip Tehlar [Thu, 9 Mar 2017 15:48:39 +0000 (16:48 +0100)]
LISP statistics
Change-Id: I399cac46d279e020ba33459ef759d9d29d3ac716
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Gabriel Ganne [Mon, 20 Mar 2017 14:13:02 +0000 (15:13 +0100)]
armv8 - fix os_cpu_clock_frequency for armv8
System timer of ARMv8 runs at a different frequency than the CPU's.
The frequency is fixed, typically in the range 1-50MHz. It can be
read at CNTFRQ special register.
Change-Id: I6a21a6a9e2df783559df0caec63d5525c2258227
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Damjan Marion [Mon, 20 Mar 2017 15:34:15 +0000 (16:34 +0100)]
vnet: add device-input threadplacement infra
This change adds two new debug CLI command:
- "show interface placmenet" to display which
thread (main or worker) is responsible for processing
interface rx queue
vpp# show interface placement
Thread 0 (vpp_main):
node af-packet-input:
host-vpp1 queue 0
Thread 1 (vpp_wk_0):
node af-packet-input:
host-virbr0 queue 0
Thread 2 (vpp_wk_1):
node af-packet-input:
host-vpp2 queue 0
host-lxcbr0 queue 0
- "set interface placmenet" to assign thread (main or worker)
which process specific interface rx queue
vpp# set interface placement host-vpp1 queue 0 main
Change-Id: Id4dd00cf2b05e10fae2125ac7cb4411b446c5e9c
Signed-off-by: Damjan Marion <damarion@cisco.com>
John Lo [Fri, 17 Mar 2017 22:05:35 +0000 (18:05 -0400)]
Fix bonded interface name to use instance number starting from 0
With DPDK 17.02, bonded interface device_index does not start
from 0 and may vary depends on the existence of other interfaces.
Implement instance number for bonded interface so the interface
name can make use of instance number starting from 0.
Change-Id: Ia8eb7bd530446faa02ee7c7d1f6abdc22ac60b62
Signed-off-by: John Lo <loj@cisco.com>
Neale Ranns [Sat, 18 Mar 2017 09:57:38 +0000 (02:57 -0700)]
Check change in unnumbered setting before updating IP enabled state
Change-Id: I6424a083ec889961ba4d0cd1df8348f20436be14
Signed-off-by: Neale Ranns <nranns@cisco.com>
Damjan Marion [Fri, 17 Mar 2017 22:58:32 +0000 (23:58 +0100)]
features: remove remaining .end_node
Change-Id: If882adb9c937f57223c524ed87453f3053f616ed
Signed-off-by: Damjan Marion <damarion@cisco.com>
Ole Troan [Thu, 9 Mar 2017 20:10:45 +0000 (21:10 +0100)]
PNEUM: Fix Coverity error (missing unlock).
Change-Id: I53433e89d06fbc95e160887517acafc1544e81b5
Signed-off-by: Ole Troan <ot@cisco.com>
Alexander Popovsky (apopovsk) [Fri, 17 Mar 2017 19:08:16 +0000 (12:08 -0700)]
Fix bonded ethernet PMD name for DPDK 17.02
In DPDK 17.02 bonded PMD name is changed from rte_bond_pmd
to net_bonding.
Change-Id: I1a57a16b0ae68b5fa56a561a4f75981112228572
Signed-off-by: Alexander Popovsky (apopovsk) <apopovsk@cisco.com>
Neale Ranns [Wed, 15 Mar 2017 19:41:17 +0000 (15:41 -0400)]
64 bit per-thread counters
after:
TenGigabitEthernet5/0/1-output active 107522
17375708 0 7.22e0 161.60
TenGigabitEthernet5/0/1-tx active 107522
17375708 0 6.93e1 161.60
ip4-input-no-checksum active 107522
17375708 0 2.52e1 161.60
ip4-lookup active 107522
17375708 0 3.10e1 161.60
ip4-rewrite active 107522
17375708 0 2.52e1 161.60
before
TenGigabitEthernet5/0/1-output active 433575
110995200 0 6.95e0 256.00
TenGigabitEthernet5/0/1-tx active 433575
110995200 0 7.14e1 256.00
ip4-input-no-checksum active 433575
110995200 0 2.66e1 256.00
ip4-lookup active 433575
110995200 0 3.29e1 256.00
ip4-rewrite active 433575
110995200 0 2.59e1 256.00
Change-Id: I46405bd22189f48a39f06e3443bb7e13f410b539
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Thu, 16 Mar 2017 19:49:09 +0000 (15:49 -0400)]
Fix IP feature ordering.
Drop comes before lookup when enabled. is_first_or_last is not required when setting a feature, the anchor is added in find_config_with_features().
Don't make the PG interfaces automatically L3 enabled, this way we can have tests that check the L3 protocol disbaled behaviour.
Change-Id: Icef22a920b27ff9cec6ab2da6b05f05c532cb60f
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Thu, 16 Mar 2017 11:34:55 +0000 (07:34 -0400)]
MPLS performance improvments.
1 - Quad loop lookup and label imposition.
2 - optimise imposition for the 1 label case
3 - input gets TTL from header directly (no byte swap)
Change-Id: I59204c9e5d134b0df75d7afa43e360f946d1ffe7
Signed-off-by: Neale Ranns <nranns@cisco.com>
Neale Ranns [Sat, 11 Mar 2017 13:55:21 +0000 (05:55 -0800)]
Attached hosts
allow this config to function:
set int ip address loop0 169.254.1.1/32 (the default GW address for attached hosts)
set int unnumbered af_packet0 use loop0 ('enable' IP on the host interface)
ip route add 192.168.1.1/32 via af_packet0 (where to find the host)
repeat for each host and host interface.
Inter-host communication is throught the /32 routes.
To allow this:
1 - attached host routes have the ATTACHED flag set, so the ARP code accepts then as legitimate sources
2 - unnumbered interfaces inherit the source address from the IP interface
Change-Id: Ib66c5f0e848c528f79372813adc3a0c11b50717f
Signed-off-by: Neale Ranns <nranns@cisco.com>
Ole Troan [Fri, 17 Mar 2017 08:54:51 +0000 (09:54 +0100)]
Python API: Fix RPM packaging (again).
Change-Id: I5c510cde1227a131ddda58d090cd5dbf112ce1fb
Signed-off-by: Ole Troan <ot@cisco.com>
Steven [Fri, 24 Feb 2017 18:03:22 +0000 (10:03 -0800)]
vlib: fix potential crash in dispatch_node ELOG_DATA call
dispatch_node may be invoked from vlib main or worker threads. The call to
ELOG_DATA in dispatch_node passes the parameter &vm->elog_main. It works fine
when dispatch_node is invoked from the main thread. It does bad thing when it
is invoked from the worker thread.
While we are at it, make two additional enhancements to the same area.
1. Use ELOG_TRACK_DATA instead of ELOG_DATA to enhance g2 viewer presentation.
2. Since ELOG_DATA is in the data path, it could get very chatty. Make the call
to ELOG_TRACK_DATA conditional compile.
Change-Id: I80ca0eea10bc1e5d0d5549f9844dd9a34dbb65a2
Signed-off-by: Steven <sluong@cisco.com>
Neale Ranns [Wed, 15 Mar 2017 16:34:25 +0000 (12:34 -0400)]
Cache a 'has-features' flag on the adjacency for faster access. Reclaim the node_index memeber from the rewrite for space - this is only used for formtting
before:
ip4-rewrite * * * * 2.66e1 256.00
after:
ip4-rewrite * * * * 2.40e1 256.00
Change-Id: Ic397150727cad38811564777419ad6bd26b8a3a6
Signed-off-by: Neale Ranns <nranns@wasa-ucs-11.cisco.com>
Neale Ranns [Thu, 16 Mar 2017 20:12:57 +0000 (16:12 -0400)]
Use the feature anchor in the MPLS input arc - it performs much better
Change-Id: I3d64ddb248478accd4d9b3124f018c9aab63a60f
Signed-off-by: Neale Ranns <nranns@cisco.com>