summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-04-20Move "ethernet" debug cli commands to "set interface"Damjan Marion4-127/+78
Following two commands are changed: ethernet mtu -> set interface mtu ethernet promiscuous -> set inteface promiscuous Change-Id: I5037e021933156c06044fb723a05ad330f8162b7 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-20Add TAG=vpp_gcov which compiles vpp to produce .gcda filesDave Barach1-0/+5
Change-Id: Ib6a0940e08f9e0983f3ec70f9e8488c2185ca4da Signed-off-by: Dave Barach <dave@barachs.net>
2016-04-19VPP-6: set epoll wait-time to zero when binary API messages are waitingDave Barach3-4/+9
Change-Id: I629ef98ecd3b729d2564b3a1ba8c6039f854f86c Signed-off-by: Dave Barach <dave@barachs.net>
2016-04-18Add API to get the dpdk interface stats delta.Sean Hope4-22/+85
Internally change the clearing and displaying of the dpdk stats to be based on deltas. Change-Id: I76605ac67492a374ff5522ff44d4a0190cf94e18 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
2016-04-18Add support for AArch32Christophe Fontaine31-66/+142
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-17dpdk socket-mem handling optimizationsDamjan Marion3-68/+82
- introduces default socket-mem size of 512 MB per socket - default socket-mem value is applied to all discovered CPU sockets - fixes bug when < 1024 socket-mem parameter is specified - for socket-mem < 1024 code prefers 2 MB pages - improves handling of manualy specified socket-mem values Change-Id: I9ef848108d7dd1228fbd82a5be49eb5277a93683 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-16Using classifier/ACL from now on. Changes pertaining to that.rangan1-21/+52
Change-Id: I682b9a361c7308d6d0abb9d7d0320215f0d91e50 Signed-off-by: rangan <rangan@cisco.com>
2016-04-16ENIC driver patch to fix rx miss or drop countersJohn Lo3-0/+87
Change-Id: Ic05d182a5659417e91b85c0ae20b6822a5445945 Signed-off-by: John Lo <loj@cisco.com>
2016-04-15af_packet: clear bitmap entries when processing inputPeter Lei1-0/+1
Need to clear the bitmap entry when processing each input file descriptor. This becomes an issue on interface deletion. A crash occurs due to assertion in a debug image https://gerrit.fd.io/r/#/c/615/ - removed the code when this was set again, but the bitmap needs to be cleared Change-Id: I7cccb9bf8b9b2eb5a7f60ecda7530784a9512116 Signed-off-by: Peter Lei <peterlei@cisco.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-15Took care of code review comments. Extended the fix to other files.rangan2-0/+4
Change-Id: I24e688884cd5896b317efb53e1d193f7d363715a Signed-off-by: rangan <rangan@cisco.com>
2016-04-15Add LISP APIAndrej Kozemcak7-22/+1726
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-14Fix dependency install on Ubuntu 16.04Damjan Marion1-1/+1
Change-Id: I2a915a64c65ee78658ee782c0f16963024b8b2eb Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-14Rework of DPDK PCI device uio driver binding processDamjan Marion8-410/+1284
This is complete rework of DPDK PCI initialization. It drops previous scheme where lspci/route/awk/sed are used and instead sysfs is solely used for discovering Ethernet PCI devices. Criteria for blacklisting device is changed from exsiting routing table entry to simple interface state obtained by SIOCGIFFLAGS ioctl(). It checks for IFF_UP flag, so as long as interface is declared up and even when carrier is down interface will be blacklisted. Change-Id: I59961ddcf1c19c728934e7fe746f343983741bf1 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-14Init rte_mbuf length fields in af_packet driverDamjan Marion1-0/+5
Change-Id: I30cdad9585c1457c0d8ceecb3e5110ad40740021 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-14Change ARP and IP6-ND nodes to use interface-output node for outputJohn Lo6-94/+28
The current mechanism for setting up arp-input and ip6-discover-neighbor output nodes for interfaces using their interface link up/down callback function is inefficient and has potential timing issue, as observed for bonded interface. Now both nodes will setup output interface sw_if_index in the the sw_if_index[VLIB_TX] field of current packet buffer and then use the interface-ouput node to tx the packet. One side effect is that vlib_node_add_next_with_slot() needs to be modified to allow the same output node-id to be put at the specified slot, even if another slot contain that same node-id already exist. This requirement is caused by BVI support where all loopback interfaces set up as BVIs will have the same output node-id being l2-input while, for output-interface node, the output slot must match the hw_if_index of the interface. Change-Id: I18bd1d4fe9bea047018796f7b8a4d4c20ee31d6e Signed-off-by: John Lo <loj@cisco.com>
2016-04-14Fix vppinfra unit testsFlorin Coras3-5/+10
"make check" in build-root/build-$tag-$arch/vppinfra should now work on a machine with 3G of spare memory Change-Id: Ie6a22e8496b56b93aa90fdc81e3e0c10dc7514fb Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-14Move autogenerated vnet files to config folderFlorin Coras1-0/+2
This cleans up vnet folder however it doesn't clean the existing autogenerated files. I'm not aware of any automated solution to achieve this without involving git. Change-Id: Ib29869e08e1d3bd87b7b54bc414f88bd9c632372 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-14Opaque index is not populated when ACL is configured. Fixed it.rangan1-1/+6
This is inline with ip6_classify.c Change-Id: Ib6e1f6fa3e4669e0a94e4ae2da48eacb240d192b Signed-off-by: rangan <rangan@cisco.com>
2016-04-13VHOST counters reversedShesha Sreenivasamurthy2-7/+10
VHOST counters are reversed. RX packet count are shown as TX and vise-versa in "show hardware" statistics. Change-Id: Ie1d41f1f0845edf495cdf34ca65466fc307940c6 Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
2016-04-13Create macro for next_nodes used in lookup family of nodesDamjan Marion6-168/+44
This should help when adding new adjacency types Change-Id: I1832c6b7a80b6bc69ed83423a60511b7932f336f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-12Added a LICENSE fileEd Warnicke1-0/+202
Change-Id: Iba5dbd74baf18e07a986d30ee67fcff334f5f206 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-12Porting 2 dpdk patches to dpdk 16.04 patchesTodd Foggoa2-0/+106
Change-Id: If298d0ba4941b3c8ccec3b407080661b4a06ac5b Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-04-12Creating a new CLI to create loopback interfaces to make the interfaceAlpesh Patel1-0/+6
creation cli consistent Change-Id: I72f074bb8c771511cb5203af6905adccefbb4197 Signed-off-by: Alpesh Patel <apatel9191@hotmail.com>
2016-04-12IP6 FIB: Micro optimization in lookupPierre Pfister1-4/+9
The mask is increasingly small. This saves a few cycles and becomes significant when there are many prefix lengths. Change-Id: Ibd0c9331f675697bb4e90e8ad617994f83edec9c Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-04-12Add support for DPDK 16.04 release, rebase some of 2.2.0 patchesDamjan Marion7-1/+318
Change-Id: I08292ba39dc6012c2edbcdaed0b02a8ebe07aec4 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-12Add unit test infrastructure for LISP protocolFilip Tehlar13-36/+649
Change-Id: I802700ad832de1dc6f4a1981e8985aa6e926c8ad Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-04-12Add counter for the number of barrier syncs performed.Bud Grise2-0/+3
Change-Id: I42b26c8f95c17577006f13e3419b8ccc9ef7c4f3 Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-04-12Add a configurable "significant error" metricDave Barach5-16/+163
Change-Id: Idda59272a029ffcbc029f9bb167508d7bd5e6e21 Signed-off-by: Dave Barach <dave@barachs.net>
2016-04-11vagrant: libvirt configuration.Jeff Shaw1-2/+6
Configure the proxy, vcpu, and memory parameters for the libvirt provider. Change-Id: Id662e60f76b4b424d3a5d98929a44ef2587ef258 Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
2016-04-11Add a counter for unknown IPv6 hop-by-hop options.Yoann Desmouceaux1-2/+9
Change-Id: I3db82b71ae5e32e0f2230662497a05e57ddb6755 Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
2016-04-11Fix possible infinite loop in IPv6 hop-by-hop header parsingYoann Desmouceaux1-0/+6
Unknown hop-by-hop options are currently not processed, which triggers an infinite loop due to the pointer not advancing further in the header. Change-Id: Idf9176090e042b17aac1baa25a6cb4beb8c199d8 Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
2016-04-11Propagate the VLIB_FRAME_NO_FREE_AFTER_DISPATCH flag to cloned next_framesBud Grise1-0/+6
Without this, frames can be double-freed to nodes like "error-punt", leading to buffer leaks and other problems. Change-Id: Ie28a4f504254ee439f720dbaac7f12206cea753b Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-04-11Add vnet_rename_interface APISean Hope2-0/+41
Change-Id: I9a8e1ed310aa9a72644540856426c77f61f4b4bb Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-04-11Bump DPDK 16.04 to RC4Damjan Marion2-1/+31
Change-Id: Ia9affeee54e860b6039d7ee0f411bd022b1dc76c Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-11Add configure option to enable building unit testsDamjan Marion4-2/+19
Same template should be used for other libs... Change-Id: Icc771cb6b243d215f30fb51c0dbc028e497a74c6 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-11Add option to delete af_packet (host) interfacesPeter Lei3-0/+90
Change-Id: Iab76951758ae9b9a99d679a223941a4b8c683078 Signed-off-by: Alpesh S. Patel <apatel9191@hotmail.com> Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-08fix uninitialized vars warnings with -OsBenoît Ganne3-5/+5
Change-Id: I15a16ba9751b6b612bac61a160b5da394ed2e15c Signed-off-by: Benoît Ganne <bganne@kalrayinc.com>
2016-04-09Migrate bootstrap.ubuntu.sh to using top level MakefileEd Warnicke1-57/+12
This script moves to using the top level Makefile in vagrant. The reason for not merging yet is to make sure that we don't put the training at risk. The patch should be fine (its been tested), but better safe than sorry. Change-Id: Ic57cfe1f26867c820784e5511d418e68f24b5fcd Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-09Add IKEv2 APIsMatus Fabian3-3/+635
Change-Id: I5936b05aa927b67c707b5858ffee45fc7a5d2043 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-04-08Add Rx and Tx statistics within nsh-vxlan-gpe nodeHongjun Ni3-26/+171
PatchSet2: Modify the code according to review comments. PatchSet3: modify sw_if_index1 in encap.c. Change-Id: Ic4d3ee19a0ba0fa10568e570a79a3cb85cfbc9ab Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-07Change encap-fib-id and decap-fib-id within create_nsh_vxlan_gpe_tunnel_commandHongjun Ni1-1/+1
Change-Id: Ied5275fcea21ae2e0b346931f9e2f520a73afd67 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-07Add key.pad=0 within vnet_nsh_vxlan_gpe_add_del_tunnelHongjun Ni1-0/+1
Change-Id: Ieed704ed0c3d747afc9836671f2ea9cc396ee09d Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-07Change key.src=a->dst.as_u32 within vnet_nsh_vxlan_gpe_add_del_tunnelHongjun Ni1-1/+1
Change-Id: Ica062e532d116cc1806d73f2fa85db89402928a4 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-07Enhance CLI/API Support for Bonded InterfaceJohn Lo7-31/+111
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-07Classify node should pay attention to dynamically-added arcsDave Barach1-2/+2
Change-Id: I65bc03dbb5fedfc75f4ce7153eae116fe599730c Signed-off-by: Dave Barach <dbarach@cisco.com>
2016-04-06Do not listen unless configured with cli-listen.Ed Warnicke1-4/+5
I noticed while mucking about with lsof that vpp was listening on port 5000. telnet 0 5000 revealed that it was listening for the cli on that port. Digging into the code, it turns out that if you do not configure cli-listen (Example: unix { cli-listen localhost:5002 } ) Then vpp is listening on the first available port starting at port 5000 anyway. This is a simple patch to *not* listen unless configured to do so. Change-Id: Id7f6f4d69e0a1642d2767849a90b21f38f21ecaa Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-06Fix ip4 udp encap length typeFlorin Coras1-2/+2
Change-Id: If666cda99a5fd92e904898ced40bcf2b5ac2d3a5 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-06Fix DPDK patch files so git am works smoothlyTodd Foggoa14-99/+199
Change-Id: Ic2a6e6f1ceea81f2e34f3db370682569327b44ad Signed-off-by: Todd Foggoa <tfoggoa@cisco.com>
2016-04-05host-interface admin down/up does not bring the interface upAlpesh Patel1-1/+9
Change-Id: I4c9ae5d88e885ccbc85b64cadc052563529c762d Signed-off-by: Alpesh Patel <apatel9191@hotmail.com>