summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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-13Increase number of dpdk lcores to 256Damjan Marion1-0/+1
Change-Id: Ia0e228d02fd9f180ed9ca468074ab38d575e415e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-12Fix ARP show exception when not ARP entries as found.Keith Wiles1-8/+11
The fix tests if the ARP table exist before attempting to interate over the entries. Change-Id: I22cad5ba3a01c3fba1feac33745a29ff1f7f8fe1 Signed-off-by: Keith Wiles <keith.wiles@intel.com>
2016-02-12Performance tools, initial check-inDave Barach32-0/+11385
Change-Id: I9fb4f4babecbe02d171f38c4d089634e90141937 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-11Pull in some additional symbols that may be needed by plugins.Josh Gahm1-0/+4
Ensure that some additional rte_* symbols (from the dpdk library) and pulled into the vpp image so that they will be available to plugins. Also, provide vlib's dpdk configuration function so that plugins that need to make dpdk calls during initialization/configuration may ensure that dpdk itself is initialized first. Change-Id: Iff8b518c6fc23e9e2f24a85944e5b246c80e5f67 Signed-off-by: Josh Gahm <jgahm@cisco.com>
2016-02-11Use vppinfra bitmap for dpdk coremaskDamjan Marion2-7/+29
Change-Id: Iec5ebadf120f742f43a681c4d394aa97ad2ae1e1 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-10Remove strcasecmp(3) declarationRobert Varga1-1/+1
This should be coming from string.h. Change-Id: Id88bb1d2a4681a9dcf6db9c7de2580a5219869d1 Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-10GetStringUTFChars() may failRobert Varga1-25/+41
GetStringUTFChars() can fail, returning NULL. Make sure we do not trip over it. Change-Id: I2d6b9c72c353c2423042fd035087f0d57fdc08ca Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-10newIntArray() may failRobert Varga1-1/+4
Allocation of the integer array may fail, guard against NPE. Change-Id: I3e860153597638392c9b669a6ad586fd2e03a64d Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-10Compile with -Werror, so Jenkins will catch warningsDave Barach2-5/+5
Change-Id: I9255c75b6c6cbc638cdcc411632a924cb06f28c0 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-10Indent vppjni.c to be consistentRobert Varga1-775/+755
Pure cleanup of indentation and brace placement, so the file ends up being consisteny. Change-Id: Idd2f20deda486d16b455f3e13cacbc2f3baa50f1 Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-10Replace AC_PROG_LIBTOOL with LT_INITDave Barach11-12/+10
Change-Id: I642c4b8e83dd07708658a10ad46e9fd2c28a7f1f Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-10Add Top-Level Wrapper MakefileDamjan Marion1-0/+141
Change-Id: Ie3431986ddb42db8d331fcb3d34250a6ec9d9a02 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-10Vhost multi-q supportShesha Sreenivasamurthy5-115/+415
Remove multi-q support patch for DPDK-2.1.0 Change-Id: I685f3886b3883803210221682fa80353670a6970 Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
2016-02-10Clean up gcc-5.2 warningsDave Barach17-108/+75
Change-Id: I7b0aa42a61607d4d30fe3627032d3837b2838982 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-09Modify hand-coded JNI function names to match refactoring ofDave Wallace1-19/+19
vppConn.java in commit #169 Change-Id: Id9feaebdce199f239741a10d31bf7aa473a62806 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2016-02-09Make cleanup_rx_thread staticRobert Varga1-1/+1
The symbol is not referenced outside of the source file, hide it from the world. Change-Id: Id5db73efff0767657ebc5a0b25dcccd2b85e354d Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-09Disable EAL message spew which can easily fill /var/logDave Barach1-0/+26
Change-Id: I63da892d1c4148a54ea33c172986c854932beb01 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-09Mark internal implementation functions as hiddenRobert Varga1-5/+5
Adding hidden attribute results in compilation failure if the symbol is not found when linking the .so. It should also lead to better performance, as it side-steps GOT. Change-Id: I7b6f39e663ca2b3e432669a3e2b36d7395f555b6 Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-09SFF NSH support VXLAN GPEKeith Burns (alagalah)1-15/+115
Change-Id: I23dae9e13f6c2ec7b3326710a40f28984ff6fe1f Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-02-09Fixup symbol names in vpp-japiRobert Varga1-4/+4
There is skew between symbol names of vppjni_env.[ch], causing the library to fail to load. This patch fixes that up. Change-Id: I972e6d0ce72fd05ee3518e7161e20946ff3426ca Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-08Set vnet_buffer(b0)->sw_if_index[VLIB_TX]Dave Barach1-0/+3
Change-Id: I3274c8d426113c71fbb900978b94caef85eabae1 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-08Cisco Discovery Protocol, initial working attemptDave Barach9-1/+1495
There are multiple enhancement opportunities... Change-Id: I976772dc3802f8284e8c6457c001d68184831e25 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-05Clean up per-thread elog track nomenclature.Dave Barach1-3/+5
Change-Id: I4b65b29f9291b3fd47e05576d9a0789af8912982 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-05DPDK patch: Add missing init of packet_type field.Todd Foggoa1-0/+70
This can cause packets to be mishandled in systems with more than one type of driver in use. Change-Id: I73ae91ff5d7a22fa542c3b39f6ccfe50437ec71b Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-02-05DPDK patch: Allow applications to override rte_delay_us()Todd Foggoa1-0/+43
Some applications may wish to define their own implentation of usec delay other than the existing blocking one. The default behavior remains unchanged. Change-Id: I699b2ed460763492502d22b7e8532514e0886ecd Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-02-05DPDK patch: Fix a crash in igb_uio driver when the device is removed.Todd Foggoa1-0/+33
Change-Id: I101166ebda1c06e20a3c89cd38786ce44b7ab5d5 Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-01-27CLI: If an error happens on the socket being polled, then the CLIOle Troan1-0/+2
does not close the socket. Resulting in the main thread being stuck in a tight infinite loop polling on the erronous socket. Change-Id: I630b84b97c059acce117d56e41cd201131db4cab Signed-off-by: Ole Troan <ot@cisco.com>
2016-02-04Remove redundant apt-get install of dkms and debhelper.Dave Wallace1-3/+0
Change-Id: Id2caea331f86a71f26990e1ae11288826157e737 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2016-02-04Change non-default route ethernet interfaces state to down so VPP will use them.Dave Wallace1-0/+12
Change-Id: Icdb1a8d35a97e01d5e1be13fdc89ce3f9ec62e1a Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2016-02-04dpdk_buffer.c: Honor clone_count even when there isn't a freelist handlerKevin Paul Herbert1-4/+7
The DPDK glue did not support cloned packets which do not have a freelist handler. Add support for this case. Change-Id: I8f17cd4952df97989d90d3f3e39792bc3739705c Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-02-04ip[46].h: Remove tcp referenceKevin Paul Herbert2-8/+0
This is not used. Remove it. Change-Id: I63f705db6bc10137d6e28977aa75e60f4e13cfe8 Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-02-03p1.c: Remove log() symbolKevin Paul Herbert1-1/+0
This symbol is defined in the math library, and is a compiler built-in. Plug-ins that need it should link with -lm. Change-Id: I967c87ccea0e762b68ca59cfaa460f3d6e534a59 Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-02-03Need to include symbolic links in the lib package: libXXX.so, libXXX.so.0Dave Barach1-2/+4
Otherwise, autotools can't find libXXX, -lXXX doesn't work, etc. Change-Id: I9c4c43f795ca872475f65bc0e4494674eaa00576 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-03Switched vagrant for ~/git/vpp to /vppEd Warnicke3-7/+25
build-root/vagrant/Vagrantfile was always mounting the vpp into /vpp Now rather than cloning it and building, we just use it as mounted. In order to let folks know what happened, a README.moved is copied into the ~/git/vpp so folks know what happened. In addition to make it easier for folks to do commits from withing the vagrant, we install git-review, and copy in the users .gitconfig and .gnupg directory. A couple of notes about this. VMWare goes much much faster in all cases. Virtualbox is a bit slower in the very first run (without ccache). One of the benefits of using the mounted /vpp though is that after your first vagrant up, you always have access to the .ccache, as it lives outside the vagrant, and so in steady state everything is faster. Change-Id: I2cd2c28181b3d7e664240dfe2249b5be3f1b9241 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-02-02Enabled CCACHE_DIR to be set by ENV VariableEd Warnicke1-1/+3
Change-Id: I0098f995b1f75bbad5c448d5a0d8facc43e6f5cb Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-02-02Add pciutils to the CentOS vagrant bootstrap; needed to install vpp rpmsDave Barach1-0/+3
Change-Id: Ia0cbf88a509392c1bd75fb242985da07c8356739 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-02Enable ganglia module integration buildDave Barach3-2/+10
Change-Id: Ia49e9f246e8318ba74195c3397472fb0c102389b Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-02Tracing enhancements.Bud Grise3-5/+221
Limit buffer tracing to 50 in order to limit large output, unless the user over rides the max "sh trace max <number>". Add trace filtering, to be able to only trace packets that were processed by a specific node or exclude packets processed by a node. Example, only include packets processed by error-drop: # trace filter include error-drop 1 # trace add dpdk-input 1000000 <wait for packets, to come in> # show trace Change-Id: I5d9e15d2268ea55e6ef87b2b8756049c49b2791b Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-02-02Use per-thread vlib_mainShesha Sreenivasamurthy2-7/+11
Change-Id: I8bee9f6661878a74a0375944ac01c9cb3a0acfbf Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
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-02-02Change default dpdk version to 2.2Damjan Marion1-1/+1
Change-Id: Iea686ed26d37539d60e52ac1205517512091edab Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-01p1.c: Add symbols useful to IP protocol modulesKevin Paul Herbert1-1/+11
Add some symbols which are useful for clients of the IP layer. Change-Id: I26599a67bb9f89c883ac4ea6e630111dfac5e2c5 Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-02-01remove igb_uio static pci id table patch, use new_id for all NICsDamjan Marion2-68/+5
Change-Id: I1db64d62c19c28b50f58f9d0b009e3e89e331f71 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-01Changed key of NSH VXLAN tunnel.Keith Burns (alagalah)1-1/+1
- simple patch before extending CLI for next encap tunnel lookup Change-Id: I56060185599252a1ae83cc162963b5fd5bc1b324 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-02-01Free the temporary vectorRobert Varga1-0/+2
vec_add1() seems to be allocating memory which we do not free. Correct that. Change-Id: I25dca1871121cdd11a218ff2289a3c51b42e843b Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-01Do not copy data twice in swInterfaceDump()Robert Varga1-4/+2
Instead of performing getting the elements, memcpy()ing them and the releasing, use GetByteArrayRegion(). Change-Id: I20ef181df214ac4fdcaff5a64b89ef4f879078f8 Signed-off-by: Robert Varga <nite@hq.sk>
2016-02-01Add a vpp-dpdk-dev package, enable plugins to use dpdk APIs directlyDave Barach5-8/+34
Change-Id: I69db06a0b5d5d556c2fd570ea0056bb59d7bc3d6 Signed-off-by: Dave Barach <dave@barachs.net>
2016-02-01Refactor vpp-japiRobert Varga9-88/+252
vlib does not allow concurrent connections, hence make sure the Java API does not allow the user to instantiate them. Also hide native methods from direct user invocation behind defensive methods also detect if a particular connection has been terminated. Disconnect is hidden befind standard close() method, as specified by AutoCloseable. Change-Id: Ib5079200ae4216cad84358a2174a41e90271a30b Signed-off-by: Robert Varga <nite@hq.sk>