summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-12-01vppctl: clean exit cli when ctrl-d or ctrl-c enteredPadraig Connolly1-10/+20
Ctrl-D now exits vpp cli using do_EOF function Ctrl-C now exits cleanly without KeyboardInterrupt Error Change-Id: I09d103df57b9512e572eb66c17c548b9c1801589 Signed-off-by: Padraig Connolly <padraig.connolly@intel.com>
2016-12-01doc: doxygen documentation for vhost-user CLI Commmands (VPP-279)Billy McFall2-3/+246
Change-Id: I1f3cf7c786b0a86b56a1cd7d9650e446515f1504 Signed-off-by: Billy McFall <bmcfall@redhat.com>
2016-12-01Revert "Update CSIT tests 161120 -> 161128"Ed Warnicke1-1/+1
This revert is to probe to see if CSIT tests are being broken by this patch. This reverts gerrit https://gerrit.fd.io/r/#/c/3985/ This reverts commit f8c94313a3ec2e3dfdf7b308516cce315f69f548. Change-Id: I6e1a7285ab077823a5d0350b8eda6bb26609f70c Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-11-30Temporarily remove make testEd Warnicke1-1/+0
Change-Id: I2b8c3c99f1358c53721790f8c6aefa7123c4959d Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-11-30dpdk patch: virtio: tx with can_push when VERSION_1 is setPierre Pfister1-0/+38
This patch for dpdk 16.11 enables the use of shallow virtio descriptors when VERSION_1 is set. More info on DPDK patchwork: http://dpdk.org/dev/patchwork/patch/17340/ Change-Id: I28cde77ed5a3588921d00da50678debfe0338b08 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-30Enabling AES-GCM-128 with 16B ICV supportRadu Nicolau11-95/+332
Change-Id: Ib57b6f6b71ba14952ad77477a4df3ab33b36fef4 Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
2016-11-30VPP-530: adapt jvpp generation for VPP API splittingMarek Gradzki5-46/+65
Now jvpp uses *.json instead of *.py api representation. Multiple *.json files are supported. Change-Id: I89fa556c7d2a35d42833f2faaa28398ebd2ed012 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-11-30VXLAN multicast dst (remote) address supportEyal Bari20-216/+379
Added support for multicast vxlan tunnels which are used for bridge domain flooding instead of flooding the all unicast tunnels in the bridge domain. features added: * conditional flooding to some of the BD members - based on existance of multicast tunnel member * added local multicast adjacency - multicast packets are handled as the same as unicast - based on src (unicast) address * refactored some of vxlan tunnel creation code - to unify ip4/6 handling Change-Id: I60cca4124265a8dd4f6b2d6ea8701e52e7c1baa4 Signed-off-by: Eyal Bari <ebari@cisco.com>
2016-11-30Start spliting vpe.api into logically related piecesDave Barach18-215/+483
To reduce rebase / manual merge pain, among other things Change-Id: I3186df0479066916a2ca69c48759178b45ef035c Signed-off-by: Dave Barach <dave@barachs.net> Signed-off-by: Ole Troan <ot@cisco.com>
2016-11-29Improve test for unlocking LISP src FIBFlorin Coras1-9/+18
Check that either src FIB is empty or only default is present. In some situations we may overwrite/delete default. Change-Id: I4a90804cc30ea8e3aa24e36a07f8096b8d3e46bc Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-11-29span: fix wrong next1 feature index in dual loopPavel Kotucek1-3/+3
Change-Id: I84e822f46fd1a0b83865073e797ef3ac03280e72 Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
2016-11-29Have make verify check deb and rpm buildsEd Warnicke1-5/+11
Change-Id: I7fe3558118835240ecd155609821f9de2d609553 Signed-off-by: Ed Warnicke <hagbard@gmail.com>
2016-11-29Added make test to make verifyEd Warnicke1-3/+3
Change-Id: If5dcfc330a7df69b2c811ce5a8a48c2e0f968270 Signed-off-by: Ed Warnicke <hagbard@gmail.com>
2016-11-29Fix "TypeError: cannot concatenate 'str' and 'NoneType' objects"Ed Warnicke1-1/+1
Change-Id: I85a42785d43a676b65f26b6e2cd71c997fddcbb1 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-11-29Update CSIT tests 161120 -> 161128Jan1-1/+1
- update of CSIT operational branch to be used for VPP-patch test Change-Id: Ib0325dde7bd9f9769660d9c5c72f0fda5e752eaf Signed-off-by: Jan <jgelety@cisco.com>
2016-11-28Add support for using documentation siphons in multiple waysChris Luke19-32/+199
Experiental support for generating multiple output formats from the same siphoned data. Adds a contrived example to generate a plain list of all CLI commands (the "itemlist" format). Eventually we can consider moving the tempate procesisng into the Output class as well as a way to override how the data is traversed (ordered). Change-Id: I77629a74a8fa0c7e583993469dc50491f72f13e7 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-11-28GRE Tests update after postinit removalNeale Ranns2-2/+4
Change-Id: I33df256ca07c99149465c896c7063a3153021a5a Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-28snat: fix coverity issuesMatus Fabian3-2/+10
Change-Id: Icb8239c02af8758a9e4bf299726a89677f53451d Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-11-28Clean up the Lua API, make it luajit-only, no CAndrew Yourtchenko5-240/+28
This removes the libcough which was a temporary layer atop the libpneum to make it synchronous. Now Lua API only requres luajit, and has no dependencies on compiling any C. Also comment out a couple of debug print functions. Change-Id: I35fd1c8088c6fd1b10b9e4d903ad241ab32fd91a Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
2016-11-28make test: detect early vpp crashKlement Sekera2-16/+18
If VPP process dies right at start, do a quick detection instead of being stuck in the connect timeout (60s). Change-Id: I41675181635fb81a6a7d93fbf652480a16bf78a0 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2016-11-28snat: thread safe (VPP-443)Matus Fabian7-188/+1066
All traffic corresponding to a specific SANT user is handled by a CPU core. in2out: Non-translated packets worker lookup by src address and VRF hash in snat-in2out-worker-handoff node. out2in: Translated packets worker lookup by dst address and port number hash in snat-out2in-worker-handoff node. Change-Id: Ia092a605689539469841d382588f3f486a29a769 Signed-off-by: Matus Fabian <matfabia@cisco.com>
2016-11-28dpdk: add ipsec cryptodev supportSergio Gonzalez Monroy31-159/+2651
DPDK Cryptodev support and related IPsec ESP nodes using DPDK Cryptodev APIs. When DPDK Cryptodev support is enabled, the node graph is modified by adding and replacing some of the nodes. The following nodes are replaced: * esp-encrypt -> dpdk-esp-encrypt * esp-decrypt -> dpdk-esp-decrypt The following nodes are added: * dpdk-crypto-input : polling input node * dpdk-esp-encrypt-post : internal node * dpdk-esp-decrypt-post : internal node Change-Id: I6dca9a890abaf4fb2a4fffce3fd08ac013e4d701 Signed-off-by: Zhang, Roy Fan <roy.fan.zhang@intel.com> Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2016-11-27Unlock LISP source FIB if only default leftFlorin Coras1-2/+12
If when removing a source route the LISP source FIB contains only the default, remove the whole source FIB. Defaults are added when FIBs are created so no forwarding entry depends on them. Change-Id: I0dd5dc31d128d834ac3b92c962c4c68577aa7429 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-11-25l2: quad loop l2input, l2learn and l2output nodesDamjan Marion3-217/+265
Change-Id: I79f76bc9791d228e2ac2867a1b857bb03d9a5279 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-25l2: fix latency issue casued by unnecesary read of previous cachelineDamjan Marion1-1/+1
In majority of cases ethernet header sits at the beggining of cacheline. Reading (dst_mac - 2) into 64 bit register is much more expensive than doing simple bitwise shift, specially if previous cacheline is not prefetched. Change-Id: I35e53eae735098fb917a87c307e60a87e76e460f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24String (key,value) pair serializationDave Barach3-0/+162
Change-Id: I0e713b5ee82e246d4e5bca138683f3205e984561 Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-24vhost-user: add retry sequence in tx codeDamjan Marion1-176/+187
This change improves NDR rate with vhost-user interface for ~ 40%. Change-Id: Ibec0b7cd5a9c3a20c45f71e0081b9cb2db493cb8 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24vlib: remove old memcpy implementationDamjan Marion1-63/+1
Change-Id: I21f5abb00cf12da5c144da477badc38736be7a7d Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24vhost: CLI delete interface by namePierre Pfister1-4/+11
Adds interface name parsing to 'delete vhost' command so an interface name can be provided. Change-Id: Iacd50545a63548c13b9bb3c36a98e08f6ad74429 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-24vhost: Delete thread configuration when interface deletedPierre Pfister1-0/+2
It does not make sense to keep interface configuration when a vhost interface is deleted. This fix makes sure thread configuration is removed. Change-Id: I4b3b75d98c15b544c32928f79ef52b7622a86b75 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-24Remove postinit from make-test interfacesMatej Klotton4-44/+33
Change-Id: I1eb0f735c5d025e6096d5760eb01419a1c58530a Signed-off-by: Matej Klotton <mklotton@cisco.com>
2016-11-24vlib: merge buffers.c and dpdk_buffer.cDamjan Marion3-1379/+515
Majority of those two files are identical so makes sense to have only one. Change-Id: Id23eeb332cb23a11e54eecccefe08594e21a724e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24dpdk: remove old patchesDamjan Marion65-50996/+0
Change-Id: I31244207ca5420558c6ff00b2021126ff5628e08 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24ipsec: remove dependency on DPDK > 0Damjan Marion1-81/+0
ipsec code is not depenent on dpdk anymore. Change-Id: Iff3f960ca0f0435f66bcb575998d2fcea3377701 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-24l2: remove unused l3 packet type discovery in l2 pathDamjan Marion2-78/+1
This costs significant amount of cycles and it is not used by anybody. Change-Id: I42a0306aa7c254292621bdaa09b736421662d540 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-23dpdk: switch to 16.11Damjan Marion2-2/+1
Change-Id: Icf9de5b89e5c2cda763e52d528fb70091860a754 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-23dpdk: remove rte_mbuf modifications at many places in the codeDamjan Marion21-350/+23
It is sole responsibility of dpdk tx function to fill/update rte_mbuf prior to sending packet do PMD. Change-Id: I8ca1dba3e7bef41034d36e3525831849f7ac4ac0 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-23l2: quad loop l2fwd nodeDamjan Marion2-28/+158
Change-Id: I8510575ee1d6b7c5ccf551766e77e40ce55e644c Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-23dpdk: input node next and error optimizationsDamjan Marion3-126/+117
Change-Id: Iee90ed725e824a3beed2660d21d74dae48c76eb0 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-23Fix coverity warnings, VPP-486Dave Barach3-1/+5
Change-Id: Id88805f77642187f304f8baef1f6b447728e4b5b Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-23CSIT-473: L2 FIB testsJan2-14/+445
- add/delete MAC entries and check the traffic Change-Id: I82b568fdd7796461b2df900c07a4bd9b87ab17c2 Signed-off-by: Jan <jgelety@cisco.com>
2016-11-22dpdk: quad loop dpdk tx and code optimizationsDamjan Marion4-253/+181
Beside performance optimization this change also introduces rte_mbuf validation in dpdk tx code. If packet is arrving from non-DPDK source like self-originated packets or non-dpdk devices (tuntap, af_packet, netmap, pg) it is not anymore exepcted that it contains valid rte_mbuf metadata unless it is explictely stated by setting VNET_BUFFER_RTE_MBUF_VALID flag. dpdk-input node sets VNET_BUFFER_RTE_MBUF_VALID on all packets and that reduces cost of validation in tx node. Change-Id: I4ad40f398f7b5cf90656a2069a27c0f6fc13efba Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-22GRE tests and fixesNeale Ranns22-76/+1095
Change-Id: I234240e9bdd4b69ad64a17b1449ae1e81c0edaca Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-22Fix coverity warnings, VPP-486Dave Barach3-16/+21
Change-Id: I4ec49e116fdb418ebf9d84000f2a0cec1cf78b14 Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-22Span node configuration fixChristophe Fontaine1-3/+3
Prefer to use the sw_if_index instead of the hw_if_index to be compatible with vhost-user interfaces. Change-Id: Id1e4255a992d428b8de47b3dd6175ed86e08c803 Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
2016-11-22Prevent a frame leak when a pending node dispatches packets to itself.Neale Ranns1-6/+30
this patch recognises the case where the pending frame has packets dispatched to the same to-node, i.e. when restoring the frame there now exists a new to-node frame, and then frees the frame in hand. Change-Id: If166bf56970b7b3412fa6097cd90bf22f72abe4d Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-22add vpp banner graphic when vpp-cli startsPadraig Connolly1-3/+14
Added check if termianl output is tty *If terminal is tty, display banner Added "FD.io VPP" banner to vppctl script on startup *FD.io displays in red *VPP displays in white Change-Id: Iaab3513d4f9d7ba5eefe070c1daf319f5014cf85 Signed-off-by: Padraig Connolly <padraig.connolly@intel.com>
2016-11-22vppinfra: fix TSC clock detection on newer intel CPUsDamjan Marion2-1/+6
Change-Id: Iff88c9a0dd1b7401605075221640b269bec12859 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-22VAT: don't pass u8 to unformat - it expects an 4 byte integerNeale Ranns1-2/+2
Change-Id: I82f21a77b96b9d9f00a4d3cf261bb4bd4644460b Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-22Fix issues reported by coverityPavel Kotucek1-1/+5
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com> Change-Id: I5d8c542fd283f86c325200f3caab56294393cedf