aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
AgeCommit message (Collapse)AuthorFilesLines
2016-11-07pg: add device-input feature arc support on pg interfacesDamjan Marion2-5/+38
Change-Id: Ice97940a27c9f4d983d9199d59719d953520fcdb Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07use STATIC_ASSERT macro instead of calling _Static_assert directlyDamjan Marion8-22/+22
Change-Id: Iccae655334b6219d22c325108b0e7f37d1dd68cf Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-07fix isssues discovered by coverity scanDamjan Marion2-3/+4
Change-Id: I62deaaa47a9259c886efa702eb4279c1c481585f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-04feature: store arc index in vlib_bufferDamjan Marion8-63/+110
Previos implementation imposed a limit that node can be member of only one feature arc as feature arc index was stored in node runtime. Now start node stores index into vlib_buffer_t and feature nodes are taking it from there. Change-Id: I252841083bc292af7ed36bf1ac652f2b8c16bfb8 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-04DHCPv6: relay reply fixes (VPP-510)Wojciech Dec2-14/+36
Fixes DHCPv6 relay reply message corruption. Change-Id: Iead995f29d2fa9cbb04f0f9d42b3aa9002267117 Signed-off-by: Wojciech Dec <wdec@cisco.com>
2016-11-04vhost-user: multiqueue supportPierre Pfister2-199/+651
This patch adds multi-queue support to non-dpdk's vhost-user driver. Waiting for a unified way to manage threads, this patch defines a way to assign threads to interfaces that is specific to vhost. Change-Id: I86298788b1a4e886c5431f187dc17175d12c7a8b Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-03vlib: add vlib_buffer_copy functionDamjan Marion6-152/+1
It works with and without DPDK so it allws us to enable lawful-intercept code in vpp_lite images. Change-Id: I08f234cbc652c3ff47a6123a43b9e7f8bdcd5534 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-03Crash when adding duplicate pathsNeale Ranns2-8/+66
Change-Id: Icd29c9013ae70f5444eb940aff4f08589e755f48 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-03Timestamp now a 64-bit integer: ns since 1/1/1970Dave Barach1-0/+6
Properly initialize allocated buffers Change-Id: Ib2005e605c89a164a4856790db6968fcd7520f5c Signed-off-by: Dave Barach <dave@barachs.net>
2016-11-03Adding Sequence Number - Per Packet Counter(PPC) support for iOAM6.AkshayaNadahalli5-69/+330
- Added support in classifier session to identify a flow to be iOAM6 encap/decap - Sequence number as part of iOAM6 E2E header is created as a plugin. Change-Id: Ib7605de45aecff25d684d099b525f8dc96ee7038 Signed-off-by: AkshayaNadahalli <anadahal@cisco.com>
2016-11-02feature: recover "show ip features" commandDamjan Marion1-0/+204
Removed by accident. Change-Id: Ifebbe99eb2825cb6ee7d33d55cf3c087a9817f72 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02feature: all input nodes must have same nextsDamjan Marion10-121/+88
Change-Id: Ie4c820933114af2269c99531856c45b0271a4a3e Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02ethernet: fix wrong start node for ethernet tx feature pathDamjan Marion1-1/+1
Change-Id: I3e02588e8c05ec50eacbe7c10cd5ac185daad43b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-02Allow empty DPDK device init configPierre Pfister1-0/+1
This patch allows for empty dpdk device configuration such as: dpdk { dev 0000:0a:00.0 { } } Instead of exiting. Change-Id: If9488eecc7fb1e0b5c6626f9c074649b39b727d3 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-11-02adj: fix typosDamjan Marion1-6/+6
Change-Id: Ib5b5a15223ac9252e9cacd163bd870b009ec3b63 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01dpdk-hqos: don't hold up packets indefinitely under low loadDavid Hotham2-0/+34
Change-Id: If884637a6db0cb813a40920194795da2e98c8b23 Signed-off-by: David Hotham <david.hotham@metaswitch.com>
2016-11-01feature: add new feature handling code and device-input featuresDamjan Marion22-408/+686
Signed-off-by: Damjan Marion <damarion@cisco.com> Change-Id: I010ecde93863dbdad84b993cd3680a5446db59b5
2016-11-01Fix recursion loop - recurse through coverNeale Ranns2-2/+72
Change-Id: I07870122f90e41fbb216b2f426bccbfd94049cd6 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-01VPP-437: ip6 hbh processing with FIB 2.0Shwetha2-150/+29
1. Modifies ip6 hbh selective processing in lookup only when non-recursive routes are present. 2. Adds ip6 hbh processing in load balance. 3. Cleanup of ip6 iOAM hbh plugin formatting and CLI handling found while testing the changes. 4. Deleted wrong asserts in dual loop for add and pop iOAM hbh nodes. The current data of the buffer ip6 start and will not be 0 5. Deleted set ioam destination cli and associate functions. iOAM add/pop is enabled via classifier, this cli is no longer used. Change-Id: I3aac71ad512762c0b2b602fe88fe0291b85d39c7 Signed-off-by: Shwetha <shwethab@cisco.com>
2016-11-01MPLS Exp-null TestsNeale Ranns5-47/+38
Add some 'make test' unit tests for MPLS explicit NULL label handling. Fix the stacking of the MPLS load-balance result form the lookup onto the IPx lookup object. Change-Id: I890d1221b8e3dea99bcc714ed9d0154a5f602c52 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-11-01vppinfra: add STATIC_ASSERT macroDamjan Marion2-6/+13
Change-Id: Icc4e74ae1627c5b97746ed64955a3dc089e3998f Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01l2: fix l2-patch nodeDamjan Marion1-25/+10
This node was not setting vnet_buffer (b0)->sw_if_index[VLIB_TX] properly. Change-Id: I3e9f095da5f79c4186e3988ef315a7045ac85708 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01dpdk: use u32 for next0Damjan Marion1-4/+4
Change-Id: I0158a290736f68d0d56dff2f15dd18518059efd2 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-11-01config: rename ip_config_main_t to vnet_feature_config_main_tDamjan Marion26-47/+53
It will not be used for IP only... Change-Id: I90ef3030aff7f9e24767553f019cabc1ea987126 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-31Update _slabshr fields when updating HQoS masksDavid Hotham1-0/+6
Change-Id: Ia1042622c656861a80b856115aeb3c2e5cf5ea2a Signed-off-by: David Hotham <david.hotham@metaswitch.com>
2016-10-31vppinfra: use 64-bit crc32 instruction in bihash_24_8Damjan Marion1-1/+9
Change-Id: Ibeb6d35e15a8d332753df7c352c0b51c277a0ee5 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-31vhost-user: fix crash in vhost_user_intfc_tx (VPP-519)Damjan Marion1-6/+0
The crash was the result of indexing off the end of the next[] array. Removing that prefetch code completelly, as it is questionable how much it helps so late in the game. Change-Id: I7bc83483a1088437edb4ac0f95a54c39afce136b Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-29IPv6 Classify Forwarding Graph errorsNeale Ranns8-19/+24
Fix a few places where the protocol of the DPO object was incorrectly set and hence the graph traversed by the packet jumped between ip4 and ip6 nodes. Change-Id: I75c4ecfdf79df39f5dbb7c68f1fc82ff04aaed28 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
2016-10-28policer: replace uintX_t with uX, fix styleDamjan Marion8-1764/+1926
Change-Id: Ie4a0ba57d5c672ab04fe37801836f65d8731a90a Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-27Fix potential L2 forwarding crash with stale L2FIB entry (VPP-516)John Lo4-50/+44
On moving interface between L2 and L3 forwarding modes, adjust the l2-output node next index for the sw_if_index of the interface so packet output via stale MAC entries in L2 FIB will be dropped. Change-Id: I25afd7a617edb4ae35ce296bac33e62683edad9a Signed-off-by: John Lo <loj@cisco.com>
2016-10-27Fix coverity issues in LISPFilip Tehlar1-1/+2
Change-Id: Ifef27540f02f423070e8843951be5cba0acea8cf Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-10-27Per-packet IPFIX record generation pluginDave Barach1-1/+1
Change-Id: Ia790aa018e70d67ed343e3e466d1b33b22560fc0 Signed-off-by: Dave Barach <dave@barachs.net>
2016-10-26features: fix crash due to missing null terminationDamjan Marion1-8/+8
Change-Id: I98b407f9b698307c5a0007b198a734674b33f925 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-26dpdk: enable building with dpdk 16.11-rc1Damjan Marion2-0/+28
Works with: http://dpdk.org/browse/dpdk/snapshot/dpdk-16.11-rc1.tar.xz placed into dpdk/ or ~/Downloads Change-Id: I17f6a721529dbefc796f555e2525d157b9bf8740 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-26dpdk: remove support for dpdk 16.04Damjan Marion10-2602/+3
This also removes old DPDK vhost-user code which doesn't help much with DPDK 16.07 or newer. Change-Id: Ic996df1eaccc33acd3fa6cabeaf7381a672c2a90 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-26dpdk: remove support for dpdk 2.2Damjan Marion3-68/+0
Change-Id: I2d1a7063f3776a9070e75a627beb5d0e45a67874 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-26dpdk: remove KNI supportDamjan Marion5-228/+2
This code is outdated and without real use case Change-Id: I30628cc4ca293e5249aea3891173507cbfad8b61 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-26Use only 24 bits for vni in lisp-gpe data packetsFlorin Coras2-3/+4
Change-Id: I5a8ff12dfa8d4d9f24275590ff8293e7eb7ffbb6 Signed-off-by: Florin Coras <fcoras@cisco.com>
2016-10-25dpdk: remove dpdk_pmd_constructor_initDamjan Marion1-71/+0
This is not needed anymore, likely because we use --whole-archive parameter during linking. Change-Id: Iab0f2ec647b63c59663faceacfbc60aa4a4b84a6 Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-10-25Support IETF routing Yang models (VPP-503).Neale Ranns26-99/+700
Add support for special routes to send ICMP unreachable or admin prohibited. Change-Id: Ia1ac65b0e5e925c0f9ebc7824141833b4e18f05e Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-10-25Fix LISP src/dst based policyFilip Tehlar4-13/+259
Change-Id: Ibcc58ad50e33cd26367fd28f60334e29f45a094c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
2016-10-24Fix VXLAN tunnel delete crashJohn Lo1-2/+2
Change-Id: I610648f28b7504798da9e377ea099629aa7a5150 Signed-off-by: John Lo <loj@cisco.com>
2016-10-23Dual Loop Lookup and Adj-midchainNeale Ranns2-145/+534
Change-Id: Id78b6dc637626c01b64bd5868d22425a30318348 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
2016-10-21Fix Coverity Errors in FIB. This is mainly consolidating the vnet_link_t and ↵Neale Ranns18-153/+120
fib_link_t enums into just vnet_link_t. Change-Id: Id2147afec1a28e95fec86dfd524088cd56563f63 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-10-21Quad-loop ip4_lookup_inline, add _x4 validate buffer enqueueDave Barach1-65/+115
Change-Id: I80a25fa90d8a65db619b8697cede2b98bed37cea Signed-off-by: Dave Barach <dave@barachs.net>
2016-10-18Deprecate MPLSoGRE tunnels (VPP-502)Neale Ranns13-1359/+110
Add shared memory APIs for MPLS routes and MPLS to IP prefix bindings. Change-Id: I85b074a4dadc8249c410fdabd8ea019d20479cf8 Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
2016-10-18Update tx and output node runtime when recycling interfacePierre Pfister1-0/+18
When an interface is removed, and another one is created, the nodes from the previous interface are reused. The current code fails when the new interface type differs from the original. It is necessary to update the node runtime, in particular the node function, and the node format function. Jira: VPP-460 Change-Id: I2fc3c609e0173a7f62597230768669039853ab03 Signed-off-by: Pierre Pfister <ppfister@cisco.com>
2016-10-18Load-balancing in IP4 dual loop typos. (VPP-501)Neale Ranns1-2/+2
Change-Id: I7b70d52d11c228ec5e790632a91b042b34b38d28 Signed-off-by: Neale Ranns <nranns@cisco.com>
2016-10-17VPP-491: Update CLI Command documentation for "show ip fib" and "show ip6 fib".Billy McFall4-108/+331
Change-Id: I9d1d02ffbb3cdbe8c4a3f335ece40f3dcbd848a7 Signed-off-by: Billy McFall <bmcfall@redhat.com>
2016-10-17Support MPLSoGRE with the new FIB 2.0John Lo3-127/+50
Note that the new way to provision MPLSoGRE is using the "normal" GRE tunnel such as in the following example: create gre tunnel src 10.0.3.1 dst 10.0.3.3 set in state gre0 up set int ip addr gre0 10.0.4.1/30 set int mpls gre0 enable ip route table 4 6.0.0.0/24 via 10.0.4.2 gre0 out-label 30 mpls local-label add 30 eos ip4-lookup-in-table 4 The previous CLIs/APIs used to configure MPLSoGRE tunnel such as "create mpls gre tunnel...", "mpls encap|decap add label .." and "show mpls tunnel", etc. can not be used. They will be deprecated in a later update to the VPP code base. Change-Id: I244916841924dc2b87d2143691cd8476716c06b1 Signed-off-by: John Lo <loj@cisco.com>