aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
AgeCommit message (Collapse)AuthorFilesLines
2016-04-21Removing dpdk socket-mem from startup.confDamjan Marion1-4/+0
We allocate 512M of memory on each available cpu socket by default so this is not needed anymore in startup.conf Change-Id: Ib28b25df8d6722777a006aaddd1d56f21ab7b58a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-20Python-API: Inital commit of Python bindings for the VPP API.Ole Troan1-9/+9
See: https://wiki.fd.io/view/VPP/Python_API Change-Id: If135fc32208c7031787e1935b399d930e0e1ea1f Signed-off-by: Ole Troan <ot@cisco.com>
2016-04-18Add support for AArch32Christophe Fontaine2-9/+9
gcc version 4.9.2 (Raspbian 4.9.2-10) Tested on Linux raspberrypi 4.4.6-v7+ #875 SMP Tue Apr 12 16:33:02 BST 2016 armv7l GNU/Linux CPUs may be little or big endian, detect with gcc flags, not the processor architecture Add a new flag $(PLATFORM)_uses_openssl which allows to disable the link with openssl lib. vlib/vlib/threads.c: startup.conf must: - specify the heapsize as we don't have hugepages on raspbian cpu { main-core 3 } heapsize 64M Corrects in various files the assumption uword == u64 and replaces 'u64' cast with 'pointer_to_uword' and 'uword_to_pointer' where appropriate. 256 CPUs may create an OOM when testing with small memory footprint ( heapsize 64M ), allows the number of VLIB_MAX_CPUS to be set in platforms/*.mk vppinfra/vppinfra/longjmp.S: ARM - copy r1 (1st parameter of the setjmp call) to r0 (return value) vppinfra/vppinfra/time.h: On ARMv7 in AArch32 mode, we can access to a 64bit register to retreive the cycles count. gcc on rpi only declare ARM_ARCH 6. Override this info, and check if it is possible to use 'mrrc'. /!\ the time function will NOT work without allowing the user mode access to the PMU. You may download the source of the kmod here: https://github.com/christophefontaine/arm_rdtsc Change-Id: I8142606436d9671a184133b935398427f08a8bd2 Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
2016-04-15Remove historical netconf message switch APIsDave Barach2-101/+0
The scheme is unused, and never to be used again; it was a bad idea in the first place. Change-Id: I1479a1fa9191e0374e00f7326545d216c3a11e32 Signed-off-by: Dave Barach <dave@barachs.net>
2016-04-15Add LISP APIAndrej Kozemcak2-1/+694
SET API: lisp_add_del_locator_set lisp_add_del_locator lisp_add_del_local_eid lisp_gpe_add_del_fwd_entry lisp_add_del_map_resolver lisp_gpe_add_del_iface SHOW API: lisp_locator_set_dump lisp_local_eid_table_dump lisp_gpe_tunnel_dump lisp_map_resolver_dump Change-Id: Ie7f521e7e64ad2736b8417852b38454bfdef3728 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
2016-04-12Add a configurable "significant error" metricDave Barach1-7/+120
Change-Id: Idda59272a029ffcbc029f9bb167508d7bd5e6e21 Signed-off-by: Dave Barach <dave@barachs.net>
2016-04-09Add IKEv2 APIsMatus Fabian2-3/+271
Change-Id: I5936b05aa927b67c707b5858ffee45fc7a5d2043 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-04-07Enhance CLI/API Support for Bonded InterfaceJohn Lo1-0/+5
For interfaces which are slave links to a bounded interface, do not allow sub-interface creation nor interface state to be changed. Change "show interface" to display interface state as "bond-slave" for slave links to a bonded interface. Change "show hardware" to support a "bond" keyword and display slave links to a bonded interface. Change-Id: I4db3cae6985bcb1489ab16a07c72c5ee9b2f2dd3 Signed-off-by: John Lo <loj@cisco.com>
2016-04-01Add option to link DPDK dynamicallyDamjan Marion3-2/+34
Change-Id: Ie2b47f9020c8260b199d141103318a0261e16832 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-29Move classify_table_index under the unionDamjan Marion1-2/+2
Fields needed only by specific adj type should be shared. Change-Id: I59ee15a29d2f5f527f46910a1a63866b291734c7 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-29Adjacency allocatorDave Barach1-0/+5
Change-Id: Ieacbfa4dbbfd13b38eaa2d37f618f212cef4e492 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-25iOAM trace configuration APIsShwetha2-1/+142
Change-Id: I6d31f0ddb812d148ad065e27775440d09f402def Signed-off-by: Shwetha <shwethab@cisco.com>
2016-03-20vnet classifier debug CLI enhancementsDave Barach1-0/+1
Extensible next-index and opaque unformat function scheme. Added next-index-by-node-name and sw_if_index->opaque functions. Allow dynamic graph arcs to be added to ip4/6-inacl. Change-Id: Ie434335399a0708772eb82563a154df19c63b622 Signed-off-by: Dave Barach <dave@barachs.net>
2016-03-17Bring back p1.c so plugins can see DPDK symbolsTodd Foggoa1-0/+2
Change-Id: Ia450c9bc6d00fbd054d41a462366f826121d781d Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-03-17Reincarnate call to unix_physmem_init() for non-dpdk useDamjan Marion1-0/+3
Change-Id: Iaa3da32060e78bbc505ee84a2a6393f899aa110e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-07Add sw_interface_clear_stats API callPavel Kotucek3-2/+94
Change-Id: I0731357744ddcb890efaebd81aac5370449a90e3 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2016-03-07build: fix call to mkdirJean-Mickael Guerin1-1/+1
Seen during build: /bin/bash: line 1: @mkdir: command not found Remove the extra prefix '@', this line is part of a single operation actually. Change-Id: I5fc265ae7c2dda01c61b369803d3c30a42a91f70 Signed-off-by: Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
2016-03-04Add CPU detection functionsDamjan Marion2-8/+17
Change-Id: Id7ea0410d6a789000c747c36a7e50076e31dc29a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-03Refuse to start if binary requires unavailable CPU extensionsDamjan Marion1-0/+29
Change-Id: I4d0d152b6f5d4ba566398fcccaa6a1f96625f864 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-26Update PowerPC (qppc) platform to build with Ubuntu cross-toolsDamjan Marion1-26/+0
Standard Ubuntu PowerPC toolchain can be installed with: apt-get install crossbuild-essential-powerpc And code can be built with: make PLATFORM=qppc TAG=qppc ... Change-Id: I247355fc89fd61aedb8693156e84c454ca86eb75 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-26Add support for native vpp_lite (non-dpdk) platformDamjan Marion1-1/+1
Change-Id: Icaa71957f67b923bc9795baa78c7495055615672 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-24Link the vpp application against libvnet.so, not libvnet.aDave Barach2-97/+7
Turn of srp, mainly as an example of how to restructure a featurette for selective disablement. Change-Id: Id3364c58a8711b103939f4434adfa67177380f67 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-22Added MTU information to sw_interface_dumpPavel2-0/+5
Change-Id: Ie69837fd6903b715cb7b840b67c869a9b12c84a7 Signed-off-by: Pavel <pavel.kotucek@pantheon.tech>
2016-02-19Add custom mac address option to vhost interfaces.Pierre Pfister2-1/+6
Generating a new MAC address everytime vpp reboots can quickly become cumbersome (e.g. in test scenarios). This commit allows vhost mac addresses to be configured manually. Change-Id: Ic6d16a2d14cdf8e49dc29041bbafde39d9fc8370 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-02-19Serialize and upload the data plane node graphDave Barach2-1/+56
Include node names and graph arcs. Prep work for uploading node runtime data, so the latter can be reported in a comprehensible manner. Change-Id: I215b1f8cff244200c37c7e088f1f22229dc97eb6 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-19Per-interface, per-address-family fast packet filterDave Barach4-2/+142
Change-Id: I122aa8edfb16a433a8ccdfb72ee8463c48c56d6d Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-16Show DPDK EAL cmdline args in 'show version verbose'Damjan Marion1-5/+10
Change-Id: I88a8038a36e7e5060f354cd66a2532ef8c996b67 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-13Remove duplicate vlib_call_init_function() for tuntap initOleg A. Arkhangelsky1-2/+0
Change-Id: Ie642d15d2843f02a01448afe91aa7311e6131047 Signed-off-by: Oleg A. Arkhangelsky <sysoleg@yandex.ru>
2016-02-10Replace AC_PROG_LIBTOOL with LT_INITDave Barach2-2/+0
Change-Id: I642c4b8e83dd07708658a10ad46e9fd2c28a7f1f Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-08Cisco Discovery Protocol, initial working attemptDave Barach1-0/+6
There are multiple enhancement opportunities... Change-Id: I976772dc3802f8284e8c6457c001d68184831e25 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-02Set the thread name for the stats thread if a thread name prefix is given.Todd Foggoa1-0/+5
Change-Id: Ie66d29bfbf6d106e9c49fb4f3738b26798c3a63c Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-02-02Zero the interface template before using it.Todd Foggoa1-0/+1
Change-Id: Ib6ce325202657684adaa17c82f64c70298dae339 Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-01-29Rationalize metric names.Dave Barach1-6/+6
Change-Id: I3144e58f635ef94224387e8729bf8db6aa77a106 Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-22Enable shared-VM namespace supportDave Barach2-1/+24
Required prep work for gracefully supporting "... dpdk { proc-type secondary }" - multiple processes sharing a physical host, VM, container, etc. Change-Id: Ic3eb72f4093e26d7c86dde3b8799264f1d0c218b Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-22aarch64 CPU arch / ThunderX platform initial supportDave Barach5-25/+85
Change-Id: Ia2edd3cee2c25c26c7c47a9023744b97226434c7 Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-21PowerPC64-be arch support. Qemu ("qppc") platform support.Dave Barach1-0/+5
Change-Id: Ib0a05f9d1b08bacef09f6d7c101391737031ee0d Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-20Rename vpe binary name to avoid collision with latexDamjan Marion4-13/+13
Change-Id: I34a46b9ebbc0e36486fbef528b34ea1c3be2e8be Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-19Revert "Reenable debug cli telnet listener"Ed Warnicke1-1/+0
Please leave the telnet disabled in the packages, as its is not secure on a server deployment and we *should* be secure out of the box. This reverts commit 9c76c1fc68aaf1140b8d5b8b32fc7552f6381ed3. https://gerrit.fd.io/r/#/c/102/ Change-Id: I0187375441b4a6dd508424d687f380bbfc485259 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-01-07Reenable debug cli telnet listenerDave Barach1-0/+1
Change-Id: I23cbe43c4c7fd45ae92b50dd4ef30d89b3067b04 Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-17Add vpe-api message to get vxlan tunnel details.Dave Wallace3-1/+80
Change-Id: I3bfb84dfcb08c6ff5cb473f3ce05b91b222182a1 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2015-12-16Merge "Add DPDK version in "show version verbose" output"Dave Barach1-0/+2
2015-12-16Disable telnet to in default package configEd Warnicke1-1/+0
Change-Id: I1c9ab4454571d7945b7fa3864e08d17cb9f3b5fc Signed-off-by: Ed Warnicke <eaw@cisco.com>
2015-12-16Add DPDK version in "show version verbose" outputDamjan Marion1-0/+2
Change-Id: I14693b81ecc0358683fd4dbfea41d0afc479ad51 Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-15Remove autotools generated productsDave Barach10-40296/+0
Change-Id: I7f23b8b8e5136cb56768bac3a7473e6df5ee4993 Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-15Merge "replacing all vec_sort() invocations to vec_sort_with_function()"Dave Wallace1-1/+10
2015-12-15load vpp startup config from fileMatus Fabian1-0/+59
Change-Id: I55c636059cda706a47758ad89e5518e959c85263 Signed-off-by: Matus Fabian <matfabia@cisco.com> Acked-by: Damjan Marion <damarion@cisco.com>
2015-12-15replacing all vec_sort() invocations to vec_sort_with_function()Matus Fabian1-1/+10
Change-Id: I05895827ed52be292112484cee7d0a2591b67335 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2015-12-14Merge "Move rpc handler where it belongs, related cleanup"Ed Warnicke1-10/+3
2015-12-14Move rpc handler where it belongs, related cleanupDave Barach1-10/+3
Change-Id: I393df100558a85fe676f4a4c8c9b546fa549ecc9 Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-14add compiler information to "show version" cliDamjan Marion1-0/+16
Change-Id: If95b45c87f6d2f1d6dad9fdaee9430129b2f4962 Signed-off-by: Damjan Marion <damarion@cisco.com>