aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-05-07Small improvement to vagrant fileEd Warnicke1-5/+5
Change-Id: Ia85ed0ef55cb5da118289667d7b217d8890d487e Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-05-06VPP-34 GRE traffic blackholes in encap directionChris Luke1-1/+12
The GRE code is missing the logic to indicate the "hardware" interface is up. The fix is to listen for admin up/down events on the "software" interface and reflect that into the hardware interface state. Change-Id: If06e4f03989b2c52c32f50c11e1943e42bb2609f Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-05-06Check IP adj_index to make sure it is valid to prevent possible crashJohn Lo2-2/+6
Change-Id: I439aac05638fd40e314bec8756e42a32c436321c Signed-off-by: John Lo <loj@cisco.com>
2016-05-05Fix vpp_lite build caused by missing definition of unlikely macroDamjan Marion1-1/+1
Change-Id: I11b34e171c1c7907dd3faec219866418b4e792f6 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-05-05ONE-2: Add new LISP dump API for lisp gpeAndrej Kozemcak5-2/+130
API: lisp_gpe_enable_disable_dump Change-Id: I1c8e78f00f9a3f99c1f2f54884af565292e4ccf8 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
2016-05-05VPP-39 - refactoring of NSH into own folderKeith Burns (alagalah)11-169/+173
- common header files and structs used in both GRE and VXLAN-GPE Change-Id: I06d0b773e936fb011408817237059f24a4beb412 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-05-04NETMAP: Some fixesMohsin Kazmi3-11/+36
1) Correct the NIOCRXSYNC macro on receive side from NIOCTXSYNC. 2) Flush the pending messages in the tx rings. Change-Id: I581040d03b1633a3d6fb22fa1fb285bcb7975afb Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
2016-05-04VPP-42: VPP crashes in IPsec code when running multithreadedMatthew Smith5-33/+58
Change-Id: Ib231642cfead5f5e8e45508361a11c87aad83b51 Signed-off-by: Matthew Smith <mgsmith@netgate.com>
2016-05-04HONEYCOMB-10: fix issues with FindClass in multithreaded environmentsMarek Gradzki2-25/+70
Added jclass reference caching and updated JNI version to 1.8 Change-Id: Ie8dbbd4b91b90bf9e4e9a6148313e46056b0d67e Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-05-04VPP-12: only remove vpp-related files from /dev/shmDave Barach2-4/+4
Change-Id: I1b6983a6d23d3d2635814cdd307efa25cd5c8b7b Signed-off-by: Dave Barach <dave@barachs.net>
2016-05-04ENIC driver patch to set PKT_RX_VLAN_PKT only if pkt passed has VLAN tagJohn Lo1-0/+42
Change-Id: I72475bfe50e42886ffa8fb6e58eb8192892fa381 Signed-off-by: John Lo <loj@cisco.com>
2016-05-04Fix for unattended in MakefileEd Warnicke2-1/+13
Also works around verify Change-Id: I79ac470ec3fa9943c3a0913ebfaaf91176eb9a81 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-05-03HONEYCOMB-10: Copy context identifier from request to replyMarek Gradzki1-25/+45
Some of the send_*_details methods did not copy context identifier from dump request message to details response. The context identifier is used for request<->reply matching. Change-Id: I8a744f3817bef94d7fa8ecb7bec6ea942c1a8793 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
2016-05-03VPP-15 Add decap-next for nsh-gre tunnel short_helpHongjun Ni1-2/+2
Change-Id: I1965e9852f62aaf8c1576b72446a43b5878eb452 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-05-03VPP-15 Add ethernet support for nsh-gre's decap-nextHongjun Ni1-1/+3
Change-Id: Icf3424671b4aa0f619983a3eb61785b533fdc11d Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-05-02Small fixes to lisp-gpe header and decapFlorin Coras2-12/+20
- enforce lisp-gpe router mode (set P bit) - fix selection of ip6 decap node - fix dual-dual lool error index init Change-Id: I1a9623c0eb7e81a2cfb60efaa88dc44ee65e664d Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-05-02VPP-31 Fix linker issue with new sr-replicateChris Luke2-5/+1
Changes in gnu ld in Ubuntu 16.04 tickles an issue with the declaration pattern used for vlib_node_registration when, as is the case in sr_replicate.c, the forward declaration is seen by the linker in a module before the real declaration. This patch uses the "extern" keyword in the forward declaration to avoid this issue and removes extra forward declarations. Change-Id: I075b0cd9932404e1360c7f9aec7114003d110f60 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-05-02HONEYCOMB-10: JVpp documentationMaros Marsalek2-0/+214
Change-Id: Ibca8fc8c1962ca36d91898c1523afb2df6dfdc49 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-02HONEYCOMB-10: Add specific methods for each request to Future facadeMaros Marsalek4-21/+116
These specific methods remove the need for casting on client side code while using generic send method Change-Id: Ic0240359333831b676a7d205f63ac1c3f3f8af4c Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
2016-05-02VPP-30 sr_replicate requires DPDKKeith Burns (alagalah)4-0/+27
- added fix to disable functionality when no DPDK - may extend to support non-DPDK case in future. Change-Id: Ic8ad4eeb91c4866f3f102dd4a718898eb0419dee Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-05-02HONEYCOMB-10: jVpp - the new java API. C code and jar file generationMarek Gradzki15-34/+997
Added comments generation for C and Java files. Change-Id: Ifb670a5592eb871bfe68804f0a8d8f9b5b14f00a Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-05-02Re-do java-8 handling, add unattended switch to toplevel MakefileDamjan Marion2-19/+22
Change-Id: Ifaea353be5b42bb6edbcfa0506d02b721c00e392 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-05-02Break out install.sh from build.shEd Warnicke3-2/+31
This is necessary because we are now using build.sh for CI... and we shouldn't install packages on CI boxes. Change-Id: I68f7880dfc75bbc4aa278ab0765a43e3fb899f3d Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-05-02VPP-32 Increase # cpus to 2, leave RAM at 4G for virtualbox vagrant usersKeith Burns (alagalah)1-1/+3
Change-Id: Ifb40316db96e019d6c14ff6a6e9653579009d4c3 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-05-02Netmap: typo correctMohsin Kazmi1-1/+1
There is a typo mistake in netmap. This patch corrects it. Change-Id: Id358e0de74555ac7858c93fa1335f02abd5624b5 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
2016-05-02VPP-33 Removing javah from Makefile. Merged as fix for Gerrit 884Keith Burns (alagalah)1-6/+0
Change-Id: I2d9d6a607ffa1a8788c1ce79770db8b2b9bae6fb Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-05-02HONEYCOMB-10: jVpp - the new java API. Java code generationMaros Marsalek20-0/+1758
The old japi has two main drawbacks: * it is not fully generated (requres manual coding for every new api call that returns data other thanstatus code) * it is not asynchronous from Java perspective (requires active wait loops - big overhead due to JNI boundary being crossed lots of times). The new api is lightweight (fully generated except for connect, disconenct and ping) and truly asynchronous (uses callbacks, utilities that offer java.util.concurrent.Future interface are also provided). Change-Id: I531080ef651e8a74f19210490c71d161221ab600 Signed-off-by: Marek Gradzki <mgradzki@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-30IP6 SR multicast replicatorKeith Burns (alagalah)14-43/+1513
- adds ability to name tunnel - creates policy as a collection of tunnel names - map ip6 multicast address to policy and replicate packet - adds zero memcpy for invariant portion of packet Change-Id: Icd2fe6a2cf65c09906e82ed1afbb0eae8df79452 Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-04-29VPP-26 Iterate through empty command line in cli historyChris Luke1-10/+24
When cursoring through the command history in the CLI, when you reach the end of the history (ie, back at "where you started") most CLI's typically show a blank line. This is a visual cue that you are back where you started. Change-Id: I5733dbd0dcdc6deac6a0a856cfadbdb987456ec0 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-04-29Fix use of vni throughout lisp codeFlorin Coras2-32/+35
This leverages the vni LCAF support introduced in a previous patch. Change-Id: I0a1b6b9dfc8095d62ad3f4e800b9f2d04c475521 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-29Revert ixgbe driver vRX removal of packet type recognitionJohn Lo1-0/+128
VPP still needs to use packet type recognition in vRX path of the ixgbe driver so ip packet can bypass ethernet-input node processing for better performance. The shortcoming of packet type recognition in the vRX path does not affect VPP. Change-Id: Ibc96021c50402a75a8bc4f80125c664714276cef Signed-off-by: John Lo <loj@cisco.com>
2016-04-29Add indirect next hop supportDamjan Marion4-40/+156
Change-Id: I0626c2650eba7961a15b1e87a664b57bef5503a2 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-29Remove unused variable in lisp decapFlorin Coras1-3/+0
Change-Id: I6aef98252e6134fd2f1a30a8407086ab98285a53 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-29VPP-25 Add API for GRE tunnel create/delete/show.Chris Luke6-48/+479
Add API methods to create, delete and show GRE tunnels. Also add missing CLI functionality for deleting and listing configured tunnels. Change-Id: I7565966037d94ade07938e4ff0d9333419716857 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-04-29Fix ip-udp encap checksum for ip6Florin Coras1-0/+20
Thanks to Chris Luke for reporting. Change-Id: I4f2ac5bb0eb565738755ddb00e8c918134ff67b6 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-29Fix ip4 address formatting in the show ip fib ouptutDamjan Marion2-3/+6
Change-Id: I3ffb2e3cef63cbc9f2abc81bbdedabb34b9b3408 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-04-29Fix use of format_ip46_address in custom_formatChris Luke1-4/+4
format_ip46_address() does not take a 2nd argument indicating the address family. Harmless since the extra argument is simply not consumed. (noticed while adding gre to this module) Change-Id: I692883872eedb4a8e3c0be7680d03b4b257ba6f9 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-04-29Improve performance of dpdk-vhost driverShesha Sreenivasamurthy1-0/+9
By setting the flag in used table, guest is prevented from kicking the host when it adds buffers. This results in 100% performance improvement when tested throughput using iperf3. Change-Id: Iefaf5b97d1444c216bb373998732a437d333d521 Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
2016-04-29Add TX statistics for nsh-gre tunnelHongjun Ni1-4/+77
Change-Id: I20e4abcc82c00e43dd441f1882cb6be531b6876e Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-29Add RX statistics for nsh-gre tunnelHongjun Ni1-1/+81
Change-Id: I045bb9d51c9a82ccba6e792485b9418bd78b8520 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-29Fix decap-next for ethernet format in nsh-vxlan-gpeHongjun Ni1-0/+2
Change-Id: I9f5efef4c2b821e4c7d76ed6e2c4f52c2495e512 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
2016-04-29VPP-27 Extend telnet protocol buffer guardChris Luke1-1/+1
With Telnet protocol overhead, the string "xterm-256color", which is the norm when the terminal is iTerm on a Mac, is longer than the 16 byte lookahead overflow guard in the Telnet protocol processor. This extends it to 24 bytes. This guard is designed to encourage the protocol processor to quit waiting for bytes indefinitely if those already in the buffer do not form a complete message. Whilst this is unlikely, extending the guard length would mean more bytes need to be received before it gives up. Change-Id: Ibaa3d35b78bfd298fe0e4f4c6e508440f122e916 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-04-29Add support for LCAF Instance IDFilip Tehlar11-102/+976
Change-Id: Ifce3f2bdcba099157a42d0b694f3161b9f700ed2 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-04-29Add lisp-gpe ip6 data-plane supportFlorin Coras12-762/+1682
The implementation mimics that of the ip4 data-plane. Therefore, a new lgpe-ip6-lookup lookup node is introduced for ip6 source lookups, a lisp-gpe-ip6-input node for decapsulating ip6 encapsulated packets and the tx function of the lisp-gpe interface is updated to support any mix of v4 and v6 in underlay and overlay. Change-Id: Ib3a6e339b8cd7618a940acf0dd8e61c042fd83dd Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-04-29Clean up per-thread mheap setup.Dave Barach3-25/+22
The stats thread was sharing the main mheap when we started at least one worker or I/O thread, but ran on its own mheap when we started 0 worker + io threads. Net of this change; if a VLIB_REGISTER_THREAD instance specifies a per-thread mheap, a per-thread mheap will be provided. Otherwise, threads share the main heap. The stats thread now uses the main heap. Simpler is better. Change-Id: I1fff0dd66ae8f7dfe44923f702734e2832b55b09 Signed-off-by: Dave Barach <dbarach@cisco.com>
2016-04-28Fix for java8 releated breakage in make install-depEd Warnicke1-2/+2
Change-Id: I17ae3c7031a820746a3785a35b440e17430d0ac5 Signed-off-by: Ed Warnicke <eaw@cisco.com>
2016-04-28LISP IPv6 control support, create IPv6 headerAndrej Kozemcak2-15/+21
Change-Id: I50d2946df8f5de0142b76f4023d8bd60ee6d2f0d Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
2016-04-28VXLAN over IPv6.Chris Luke13-206/+793
Refactors the VXLAN node to work with both IPv4 and IPv6 transports. There is a discussion thread for this change at https://lists.fd.io/pipermail/vpp-dev/2016-March/000279.html Note that this changes the binary configuration API to support both address families; each address uses the same memory for either address type and a flag to indicate which is in use. This also includes changes to the Java API to support both address families. The CLI and VAT syntax remains unchanged; the code detects whether an IPv4 or an IPv6 address was given. Configuration examples: IPv4 CLI: create vxlan tunnel src 192.168.1.1 dst 192.168.1.2 vni 10 encap-vrf-id 0 decap-next l2 IPv6 CLI: create vxlan tunnel src 2620:124:9000::1 dst 2620:124:9000::2 vni 16 encap-vrf-id 0 decap-next l2 IPv4 VAT: vxlan_add_del_tunnel src 192.168.1.1 dst 192.168.1.2 vni 10 encap-vrf-id 0 decap-next l2 IPv6 VAT: vxlan_add_del_tunnel src 2620:124:9000::1 dst 2620:124:9000::2 vni 16 encap-vrf-id 0 decap-next l2 TODO: The encap path is not as optimal as it could be. Change-Id: I87be8bf0501e0c9cd7e401be4542bb599f1b6e47 Signed-off-by: Chris Luke <chrisy@flirble.org>
2016-04-28Fix bug that prevented packet trace from working on multicoreBud Grise1-6/+14
The vlib_node_runtime can change after the thread starts up. Change-Id: Id5bc248c009ef9be26213b36a0115938b61cb8c4 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
2016-04-28Add ability to set l2_mode_noprotChristian Dechamplain (cdechamp)2-0/+36
Change-Id: I3767a1bbe55452600863e145cbc12b114d6d1024 Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>