aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2016-04-04Fix vppctl for multivppEd Warnicke1-3/+19
Change-Id: If028aca042dbba653cc0f51a0149b36bed5c7853 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-02Fix DPDK check in udp.hFlorin Coras1-2/+2
Change-Id: I4734b248f512e223703d234d28542257af1a8074 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-02LISP GPE: initial CP commit and DP improvementsFlorin Coras19-705/+5136
Control Plane ------------- In essence, this introduces basic support for map-request/reply processing, the logic to generate and consume such messages, including SMRs, a control-plane backend, consisting of an eid-table, locator and locator-set tables, and CLI to interact with it. Naturally, we can now serialize/deserialize LISP specific types: addresses, locators, mappings, messages. An important caveat is that IPv6 support is not complete, both for EIDs and RLOCs. Functionally, the DP forwards all packets it can't handle to the CP (lisp_cp_lookup node) which takes care of obtaining a mapping for the packet's destination from a pre-configured map-resolver using the LISP protocol. The CP then caches this information and programs the DP such that all new packets with the same destination (or within the covering prefix) are encapsulated to one of the locators retrieved in the mapping. Ingress traffic-engineering is not yet supported. Data Plane ---------- First of all, to enable punting to the CP, when LISP GPE is turned on a default route that points to lisp_cp_lookup is now inserted. The DP also exposes an API the CP can use to program forwarding for a given mapping. This mainly consists in allocating a tunnel and programming the FIB such that all packets destined to the mapping's prefix are forwarded to a lisp-gpe encapsulating node. Another important change done for lisp forwarding is that both source and destination IP addresses are considered when encapsulating a packet. To this end, a new FIB/mtrie is introduced as a second stage, src lookup, post dst lookup. The latter is still done in the IP FIB but for source-dest entries, in the dest adjacency the lookup_next_index points to a lisp lookup node and the rewrite_header.sw_if_index points to the src FIB. This is read by the lisp lookup node which then walks the src mtrie, finds the associated adjacency, marks the buffer with the index and forwards the packet to the appropriate next node (typically, lisp-gpe-encap). Change-Id: Ibdf52fdc1f89311854621403ccdd66f90e2522fd Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-01Add options to link with external DPDK treeDamjan Marion6-3/+37
By uncommenting following lines in the build-data/platforms/vpp.mk VPP links nicely with packaged DPDK 2.2 distributed with Ubuntu 16.04 LTS. vpp_uses_external_dpdk = yes vpp_dpdk_inc_dir = /usr/include/dpdk vpp_dpdk_lib_dir = /usr/lib vpp_dpdk_shared_lib = yes Change-Id: Id5b7d95bac6aa60341933b92e86d949a9abf1a5d Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-01Add option to link DPDK dynamicallyDamjan Marion5-79/+117
Change-Id: Ie2b47f9020c8260b199d141103318a0261e16832 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-01Add support for installing ipv4 routes via unresolved next hopDamjan Marion6-159/+393
Change-Id: I71f3ba0c8192fe0ac3b5b81fb1275b64ec02876a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-31Enable af_packet interfaces in the API test appsDamjan Marion2-0/+12
Change-Id: Ic1247a712614df2762c95142122ff122076fd0ab Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-30Remove historical tags, fix the debug tagDave Barach1-22/+4
Change-Id: I013784aeef5ae6b5ba4a30c7759e9daff3c2c576 Signed-off-by: Dave Barach <dave@barachs.net>
2016-03-29Add DPDK 16.04-rc2 supportDamjan Marion3-4/+8
Can be used by specifying DPDK_VERSION=16.04-rc2 in the make command line Change-Id: I657b44d7ca22f1ef57756e7703088020fab12bc6 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-29Update ENIC driver patches for DPDK 2.2.0John Lo12-74/+573
This includes all patches in ENIC driver which are up-streamed to DPDK to improve RX performance, fix buffer/error handling and interoperation with link bonding PMD library. Change-Id: Id4c71a350d5234834951f9261c69db5476ba396b Signed-off-by: John Lo <loj@cisco.com>
2016-03-29Support per-interface packet rx redirectionDave Barach2-1/+5
Change-Id: I8bb6124efa5665053620b48d11c8160472103c29 Signed-off-by: Dave Barach <dave@barachs.net>
2016-03-29Add abbility to specify dpdk tarball download base urlDamjan Marion1-1/+2
Change-Id: Ieceb0b1f4ab69609961d8946f627dd9311963da5 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-29Fix to centos vagrant fileEd Warnicke1-2/+2
Change-Id: I5ceae4354c029cb92527b2eeb1a71b76dc2b0311 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-03-29Move classify_table_index under the unionDamjan Marion7-13/+18
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 Barach9-601/+350
Change-Id: Ieacbfa4dbbfd13b38eaa2d37f618f212cef4e492 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-29Fix epl-release in make install-dep for rpmEd Warnicke1-1/+1
Change-Id: I01a7421dc58ee6683eb84482bb92dd6a519a21e8 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-03-29Increment MRU if hardware supports CRC strippingJurek Matuszewski1-3/+27
Change-Id: I46bd007c3c75e5fb872c1beba557e6140fa8d715 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
2016-03-29Allow vlans to be programmed on 40GE VF interfacesTodd Foggoa (tfoggoa)1-2/+4
Change-Id: Ia3a1bf7cb482f0aa98628b23d88de01cf60c46a9 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
2016-03-29Mark some show commands as mp safeTodd Foggoa (tfoggoa)1-1/+4
Change-Id: I92cd378370feeddf27832acde06f186fbdf64908 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
2016-03-28event logger skeletons, improve debug CLIDave Barach9-6/+317
Change-Id: Ieb2e4043fc7bc3b4a5436a7a6aa35f573d8d4506 Signed-off-by: Dave Barach <dave@barachs.net>
2016-03-26Improve main-loop event-logsDave Barach4-15/+42
Change-Id: I984debeffe0dce36c9e7ab963f25d862cc7550cc Signed-off-by: Dave Barach <dave@barachs.net>
2016-03-25iOAM trace configuration APIsShwetha5-9/+283
Change-Id: I6d31f0ddb812d148ad065e27775440d09f402def Signed-off-by: Shwetha <shwethab@cisco.com>
2016-03-25Use rte_mempool private data for storing vlib_buffer_tDamjan Marion18-112/+126
Change-Id: If3fc88a35bc0b736376113a39667caea42802ea1 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-25Fix distclean to correctly handle CentosEd Warnicke1-1/+2
Change-Id: I3f930306e9f384011687d2ce88052639df0d966b Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-03-25Fix vagrant centos flavor to work with top level make fileEd Warnicke2-55/+31
Change-Id: I89044ed27130a036536ed33aba847034ed15ad7d Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-03-25vpp-api-test and sample-plugin should depend on dpdk conditionallyDamjan Marion2-12/+13
Change-Id: Ie26340141fdbd3256e305ab37f4baa817081bf46 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-25Add build-root/*.rpm to .gitignoreEd Warnicke2-1/+11
Change-Id: I88398b5e538271efa4657851bf53c9b76a56b432 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-03-25Remove unnecesary clib_bitmap_set from af_packet input nodeDamjan Marion1-1/+0
Change-Id: I856fefd52efdfc0a3b8be8bafa3f3106267dfcf1 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-24l2-rw: Packet rewrite feature for L2 bridgesPierre Pfister5-1/+690
This patch defines a new l2input feature: l2-rw It makes use of vnet_classify in order to match packets and applies mask/value changes depending on the matched classify entry. Change-Id: Ia98c128931e59195bf3ecb66721e155ff9049a2e Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-03-24Reduce number of parallel gcc invocations from 4 to 2 per cpuDamjan Marion1-1/+1
Some build hosts can run out of memory during compilation. This should reduce memory demand without affecting build time. Change-Id: I11bd2884a1f8885a8a332bbbf0a63324a3079c3b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-23Fix L2 flood packet replication interaction with VXLAN-tunnelJohn Lo1-17/+16
The check for input sw_if_index against output sw_if_index is not correct for the interface on the replication order after VXLAN tunnel because the encap code overwrite packet sw_if_index[VLIB_RX] with that of the VXLAN tunnel sw_if_index. The check should be done using sw_if_index[VLIB_RX] saved in the packet context. Change-Id: I175717221409977e80576e84dfe5362d1f6aed2f Signed-off-by: John Lo <loj@cisco.com>
2016-03-23Add dpdk vmxnet3 driver patch and init.c change to allow jumbo packetsJohn Lo2-17/+171
Change-Id: I9d7f8b9a0543d885ed10908b859d52a80bf89f56 Signed-off-by: John Lo <loj@cisco.com>
2016-03-22tapcli: Receive vector of packets and memory leak fixPierre Pfister2-148/+183
tapcli interfaces were creating single-packet frames. It now calls readv until the frame is full, or readv returns error EAGAIN. This is usefull when a significant amount of traffic flows through tap interfaces. This patch also fixes a memory leak by correctly initializing b->clone_count to zero. Change-Id: I15e435ba76d542be2f263274e76297425cd10243 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-03-21Unbreak build on gcc-5Damjan Marion1-1/+1
Change-Id: I0dc5f48ade786b60b34441c30f3de5b9f373d714 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-03-20vnet classifier debug CLI enhancementsDave Barach6-10/+235
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>