vpp.git
7 years agoVPP-108 : API calls to read classify table and sessions 86/1486/10
Pavel Kotucek [Tue, 7 Jun 2016 12:44:26 +0000 (14:44 +0200)]
VPP-108 : API calls to read classify table and sessions

Added new API calls to read
- classify table ids as array
- classify table ids for specified interface
- classsify table info
and to dump sessions of specified classify table.

Change-Id: I089604fa98eea92866495089d76c2330ae7d850c
Signed-off-by: Pavel Kotucek <pavel.kotucek@pantheon.tech>
7 years agoAdd MAC address support to LISP map-cache 74/1774/1
Filip Tehlar [Fri, 24 Jun 2016 12:16:34 +0000 (14:16 +0200)]
Add MAC address support to LISP map-cache

Change-Id: I80f05a222cb0f728ad2460efe33955e781b6849f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoMisc. janitorial work: 65/1765/1
Dave Barach [Sun, 26 Jun 2016 14:29:03 +0000 (10:29 -0400)]
Misc. janitorial work:

Remove private / name-colliding "give me the first ip address on an
interface" routine from proxy_node.c

Return a proper error from ip4_lookup_init / ip6_lookup_init.

Change-Id: Idd3c574424ba2ea77c263af16b02cd4ad0cb4605
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoNetmap: Resolve interface state issue 66/1666/2
Mohsin KAZMI [Mon, 20 Jun 2016 04:55:25 +0000 (06:55 +0200)]
Netmap: Resolve interface state issue

[VPP-155]: There is inconsistency in the netmap interface
state for software interface state and hardware interface
state. This patch resolves that issue.

Change-Id: I92199e117f919bd985670366a6d3b7753e40659c
Signed-off-by: Mohsin KAZMI <sykazmi@cisco.com>
7 years agoDoubly-linked list element pools 61/1761/2
Dave Barach [Fri, 24 Jun 2016 22:53:21 +0000 (18:53 -0400)]
Doubly-linked list element pools

Change-Id: I96e7602be48dfb5bb3867ad1e9f15c543903b3d6
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agovhost-dpdk: dequeue size fix 96/1696/2
Zhihong Wang [Wed, 22 Jun 2016 00:33:59 +0000 (20:33 -0400)]
vhost-dpdk: dequeue size fix

Burst size for DPDK is 32, which is different from VLIB_FRAME_SIZE.
A loop is needed to dequeue all packets.

Change-Id: Ie611c58c4e3434251a47fe6ad1f38abcb85180cb
Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
7 years agoadd buf_physaddr to dpdk trace 60/1760/2
Georgii Tkachuk [Fri, 24 Jun 2016 01:52:42 +0000 (01:52 +0000)]
add buf_physaddr to dpdk trace

Change-Id: Icbb6814306f51873af6ad9d1425b52d660bb99ce
Signed-off-by: Georgii Tkachuk <georgii.tkachuk@intel.com>
7 years agoVagrantfile RAM default is too small. 63/1763/1
Keith Burns (alagalah) [Sat, 25 Jun 2016 10:50:28 +0000 (03:50 -0700)]
Vagrantfile RAM default is too small.

- Will raise JIRA for someone to convert this to use binaries by default
- This means we should be able to get away with smaller VM for non-dev users

Change-Id: If3d9283ba2c169792a1ab71ff692c25de82d41f4
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agonetmap: multithreading support 19/1619/3
Mohsin KAZMI [Thu, 16 Jun 2016 04:58:34 +0000 (06:58 +0200)]
netmap: multithreading support

This patch adds multithreading support for netmap interfaces.

Change-Id: Iba94386fe309a4aac71646fe567f8dabbebd0459
Signed-off-by: Mohsin KAZMI <sykazmi@cisco.com>
7 years agoMove vcgn as plugin 59/1759/2
Shesha Sreenivasamurthy [Fri, 24 Jun 2016 18:04:29 +0000 (11:04 -0700)]
Move vcgn as plugin

    Use appropriate libnames to copy

Change-Id: Iaa1e7e3ceed52f328e26e75ee7309fc6464d5c66
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
7 years agoReformat output of lisp eid-table show command. 27/1727/3
Filip Tehlar [Wed, 22 Jun 2016 07:18:12 +0000 (09:18 +0200)]
Reformat output of lisp eid-table show command.

Example output:

DBGvpp# sh lisp eid
EID                                type                locators
[100] 6.0.2.0/24                   local(ls1)          host-intervpp1
[200] 6.0.2.0/24                   local(ls2)          host-intervpp1
[100] 6.0.4.0/24                   remote              6.0.3.2
[200] 6.0.99.0/24                  local(ls3)          local0
                                                       host-intervpp1
[0] 6.0.0.0/16                     remote

Change-Id: I69200bf7636167bce931def88828503a75496f4b
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoVPP-118: add support for variable length arrays to jvpp 17/1617/8
Marek Gradzki [Wed, 15 Jun 2016 14:38:33 +0000 (16:38 +0200)]
VPP-118: add support for variable length arrays to jvpp

* extends VPP's message definition language with the following syntax:

u32 count:
u8 array[count];

which is traslated to:

u32 count;
u8 array[0];

but now, python API representation generated by vppapigen
contains information about where the array length is stored.

* modifies existing response messages to use the new syntax

Change-Id: I68210bc7a3a755d03d067e9b79a567f40e2d31f3
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoAdd admin-up flag to L2TP tunnels and start tunnels set to down 01/1701/3
Pierre Pfister [Wed, 22 Jun 2016 11:54:48 +0000 (12:54 +0100)]
Add admin-up flag to L2TP tunnels and start tunnels set to down

L2TP tunnels use virtual interfaces but directly send
packets to l2-input node (not ethernet-input).
This node requires a bridge-domain to be associated with
the interface.

Past code was immediatly turning the interface up, but
some packets could be sent to l2-input without bridge domain
between interface creation and association with a bridge domain.

The tunnel is now created as down and has to be set up later
(typically after being associated with a bridge-domain).

Another option would have been to change the api and enforce
a bridge-domain to be specified before the tunnel, but this
is less flexible for the user.

Change-Id: I26d1f36bb4f327d9fa1c8044023f2210c4117904
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoShow command support for ip feature paths 47/1747/2
Dave Barach [Thu, 23 Jun 2016 15:27:51 +0000 (11:27 -0400)]
Show command support for ip feature paths

"show ip features" displays all available features, in execution
order.

"show ip interface features <intfc>" displays all features currently
configures on an interface, in execution order.

Change-Id: I489bbdb85799a01721ba60b12ffaffcab1e0d1df
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoUse lisp_gpeX iface counters to store decap stats 93/1693/5
Florin Coras [Tue, 21 Jun 2016 20:32:47 +0000 (22:32 +0200)]
Use lisp_gpeX iface counters to store decap stats

The patch switches to using LISP interface counters for storing the
number of decapsulated packets instead of using per decap node stats. It
also removes the encap node (iface tx node) stats since the iface output
node already keeps track of the number of encapsulated packets.

Change-Id: I636702a824264c173792f2f0c7fec0b0f4c6a9f7
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoVPP-72 Added api call aquivalents to: 48/1448/4
marek zavodsky [Tue, 21 Jun 2016 03:35:16 +0000 (05:35 +0200)]
VPP-72 Added api call aquivalents to:
    "show mpls fib" -> "mpls_fib_encap_dump" and "mpls_fib_decap_dump"
    "show mpls tunnel" -> "mpls_eth_tunnel_dump [tunnel-index <tunnel-id>]" and
                          "mpls_gre_tunnel_dump [tunnel-index <tunnel-id>]"

Change-Id: I59699039392f06dc61f62a015d07186a91cfaf45
Signed-off-by: marek zavodsky <mazavods@gmail.com>
7 years agoLISP EID virtualization support 35/1535/6
Filip Tehlar [Thu, 2 Jun 2016 14:07:38 +0000 (16:07 +0200)]
LISP EID virtualization support

Change-Id: I892c001cfdff9d8d93e646641d96520beb3c6265
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoMore LISP SD FIB and forwarding fixes 87/1687/3
Florin Coras [Tue, 21 Jun 2016 01:19:29 +0000 (18:19 -0700)]
More LISP SD FIB and forwarding fixes

o) Avoid using explicit_fib_index in the dst (main) FIBs. It's used in
the IP6 lookup
o) use if_address_index instead of rewrite_header.node_index to store
tunnel indexes. This ensures the tunnel index is used in the signature
computation and thus avoids all complications/hacks needed to make src
adjacencies unique.
o) Fixed negative fwd entry route insertion

Change-Id: Ie56356f165b96dfa929da5672a3a429996366460
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoARP/NDP does not send solicitation when no source address is available 02/1702/4
Pierre Pfister [Wed, 22 Jun 2016 11:58:30 +0000 (12:58 +0100)]
ARP/NDP does not send solicitation when no source address is available

Currently, when the interface has no address assigned to it,
VPP crashes as ip_interface_address_for_packet assumes there
always is at least one address.

This patch checks if an address is available at all.
The only part of VPP using it is ARP or NDP.
When a neighbor discovery message has to be sent while
there is no address assigned on the interace, no
solicitation is sent and an error counter is incremented.

Change-Id: Ia9fdaf8e84050a1ceeb47f5370819d3df95714f0
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoAdd MAC address support for LISP 14/1714/3
Filip Tehlar [Wed, 22 Jun 2016 14:00:52 +0000 (16:00 +0200)]
Add MAC address support for LISP

Change-Id: I79e3915fa61b497e6b586babcdf093937af07b2b
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoCLI to update locator-set 97/1697/3
Andrej Kozemcak [Mon, 20 Jun 2016 08:08:20 +0000 (10:08 +0200)]
CLI to update locator-set

Change-Id: I60ea36362a2c4b7c936dde501a3d737b68a8c9ff
Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
7 years agoFix for build failure due to iOAM plugin header file path 77/1677/4
Shwetha [Tue, 21 Jun 2016 04:02:32 +0000 (05:02 +0100)]
Fix for build failure due to iOAM plugin header file path

Change-Id: Ie5d270a01e3ca0687a407aeebc42aacc53a01ddc
Signed-off-by: Shwetha <shwethab@cisco.com>
7 years agoVagrantfile syntax error correction - requires string input instead of integer. 89/1689/1
Srivatsa Sangli [Tue, 21 Jun 2016 19:58:19 +0000 (12:58 -0700)]
Vagrantfile syntax error correction - requires string input instead of integer.

Change-Id: Ib291662c4ea2f5bef0f2c417b16d256f5c480d5c
Signed-off-by: Srivatsa Sangli<srivrama@cisco.com>
7 years agoCheck if LISP is enable 27/1427/5
Andrej Kozemcak [Tue, 7 Jun 2016 10:25:20 +0000 (12:25 +0200)]
Check if LISP is enable

Lisp enable flag is enforced. DP API should not be call if the dp is disable.

Change-Id: I265cf3ea0460987f3fd5fd84b43127dd3b1c43c3
Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
7 years agoFix problem with DPDK vector PMDs not working in VPP 73/1673/1
Damjan Marion [Tue, 21 Jun 2016 00:56:46 +0000 (20:56 -0400)]
Fix problem with DPDK vector PMDs not working in VPP

Linker was picking wrong, weakly linked function from
dpdk drivers, so detection of vector mode was always failing.

Change-Id: I11725c8ddbc4604dd04ecb89ebb7f02ee05e52c7
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-143: Correctly drop local l2tp packets when no session is found 68/1668/2
Pierre Pfister [Mon, 20 Jun 2016 13:52:22 +0000 (14:52 +0100)]
VPP-143: Correctly drop local l2tp packets when no session is found

When receiving a local ipv6 packet containing an l2tp packet not associated
with any session, l2tp node was handling the packet as if provided by an ipv6 feature,
hence crashing.

This patch fixes the issue by correctly dropping the packet instead.

This patch also fixes a typo from commit d65346098daf896.

Change-Id: I1b377fc5685568c16831920227671feffac64287
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoUsing env.sh file for Vagrantfile inputs, but assume some defaults 59/1659/3
Keith Burns (alagalah) [Sun, 19 Jun 2016 14:58:51 +0000 (07:58 -0700)]
Using env.sh file for Vagrantfile inputs, but assume some defaults

Change-Id: Ia4b45d88be5943d413d61435ff38796d1b6a32a2
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agoVPP-152: mheap_alloc returns 0 when the requested heap size is too small 21/1621/2
Pierre Pfister [Fri, 17 Jun 2016 12:30:02 +0000 (13:30 +0100)]
VPP-152: mheap_alloc returns 0 when the requested heap size is too small

mheap_alloc allocates memory_size bytes of memory and returns
a page-aligned memory space prefixed with a word-aligned
header of type mheap_t.

This header includes the actual usable space size, but
when the requested size is too small, the computed size
was incorrect (infinite).

mheap_alloc now returns 0 in such cases.

With help from Yoann Desmouceaux.

Change-Id: I00af63d573d6939aca53dbe7ff612b726bd8f0df
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoOutput interface MTU check ignored in double-loop 51/1551/3
Chris Luke [Tue, 14 Jun 2016 20:26:22 +0000 (16:26 -0400)]
Output interface MTU check ignored in double-loop

In the double loop of ip4-rewrite, when forwarding packets,
the outbound interface MTU check occurs too late in the
double-loop to be actioned.

Change-Id: Ifc44e65d6ddb832aa0161d0685b1a28378541905
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agoFix use of lookup_next_index in LISP src/dst FIB 39/1639/2
Florin Coras [Fri, 17 Jun 2016 11:59:10 +0000 (13:59 +0200)]
Fix use of lookup_next_index in LISP src/dst FIB

Adjacencies in LISP src/dst FIB store the index of the LISP output
interface (next node after lookup) in the lookup_next_index. Since the
values of interface node indexes are not constrained, they can collide
with the 'special' adjacencies IP_LOOKUP_NEXT_LOCAL and
IP_LOOKUP_NEXT_DROP. As a result, at allocation time, LISP ajacencies
may be automatically shared with the previous two, predefined
adjacencies and all LISP specific state stored in the rewrite area is
lost.

This fixes the problem by 'hijacking' the explicit_fib_index instead
of the lookup_next_index field.

Change-Id: I3c59121dcf0851decf5c08004143d1201dbd1ece
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoImproving cross_ldflags arguments for dpaa2 platform 57/1657/2
Sachin [Sat, 18 Jun 2016 10:26:35 +0000 (15:56 +0530)]
Improving cross_ldflags arguments for dpaa2 platform

 - This helps in avoiding manual export of
   LD_LIBRARY_PATH for /usr/lib64/

Change-Id: I15fc9c9f961848411b093c891ca9517ef4e074a0
Signed-off-by: Sachin <sachin.saxena@nxp.com>
7 years agogitignore gtags 58/1658/2
Keith Burns (alagalah) [Sat, 18 Jun 2016 19:21:41 +0000 (12:21 -0700)]
gitignore gtags

Change-Id: I0160cdfc8e749f875a232e07526d53a3a7c8395c
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agoEnhanced RPM build process to make rpm for any given platform 56/1656/1
Sachin [Sat, 18 Jun 2016 09:58:08 +0000 (15:28 +0530)]
Enhanced RPM build process to make rpm for any given platform

 - Currently default rpm.spec only look for  "install-vpp-native"

Change-Id: Iaa78c46ae62d2747bda6ffc1189cb8ac6d578bd8
Signed-off-by: Sachin <sachin.saxena@nxp.com>
7 years agoFix node registration in ixge driver 23/1623/2
Damjan Marion [Fri, 17 Jun 2016 14:42:02 +0000 (16:42 +0200)]
Fix node registration in ixge driver

Change-Id: Ia98ed873954feaa7bf1f13d8eb4054d0afba495e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoGive correct argument to ip_call_add_del_adjacency_callbacks 25/1625/2
Pierre Pfister [Fri, 17 Jun 2016 14:52:44 +0000 (15:52 +0100)]
Give correct argument to ip_call_add_del_adjacency_callbacks

ip_call_add_del_adjacency_callbacks requires an adjacency index, not a
sw_if_index.

Change-Id: I4ae6a6bbbe0abee4791217463d353c56f9735ba3
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoMove pkt replication counter to the opaque2 cache line 40/1640/2
Dave Barach [Fri, 17 Jun 2016 18:09:56 +0000 (14:09 -0400)]
Move pkt replication counter to the opaque2 cache line

Change-Id: I5e6edfd03ab41949be2c768dfe68aa824bbc1f38
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoUpdated Makefile so install-dep doesn't prompt 46/1646/2
Keith Burns (alagalah) [Fri, 17 Jun 2016 19:54:17 +0000 (12:54 -0700)]
Updated Makefile so install-dep doesn't prompt

Change-Id: I8e5f4d120c9add636054e740f2a8aa3a0f8bb7d1
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agoDynamically compute ip feature subgraph order 53/1553/6
Dave Barach [Tue, 14 Jun 2016 22:38:02 +0000 (18:38 -0400)]
Dynamically compute ip feature subgraph order

This change-set enables plugins to add themselves to the ip4/ip6
feature subgraphs without having to modify core vpp engine code
at all. Add VNET_IP4/IP6_UNICAST/MULTICAST_FEATURE_INIT macros
which express the required ordering constraints, and off you go.

Along the way, added an implementation of Warshall's algorithm to
vppinfra; to compute the positive transitive closure of a relation. In
this case, the relation is "feature A runs before feature B."

With that in hand, ip_feature_init_cast(...) computes a partial order
across the set of configured feature subgraph nodes.

In unit-testing, we discovered VPP-145 - ip4/6 inacl wiped out
vnet_buffer(b)->ip>current_config_index, which exists in main. So, we
fixed that by moving b->trace_index, adding b->current_config_index,
and removing the ip opaque union current_config_index.

Change-Id: Iff132116f66413dc6b31ac3377198c7a32d51f48
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoSupport NAT across multiple interface pairs 81/1581/2
Shesha Sreenivasamurthy [Wed, 15 Jun 2016 18:48:13 +0000 (11:48 -0700)]
Support NAT across multiple interface pairs

    Some of the commands require interface name as an
    additional parameter as we support multiple interfaces.
    Example:
    set vcgn map inside TenGigabitEthernete/0/0 10.1.0.1 - 10.1.0.1
    show vcgn inside-translation protocol tcp interface TenGigabitEthernete/0/0 inside-addr 1.0.0.2
    show vcgn outside-translation protocol tcp interface TenGigabitEthernet9/0/0 outside-addr 10.1.0.1

Change-Id: Id691ccd3f2c863c665a1568982c819b79dda007e
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
7 years agoNXP DPAA2 Poll Mode Driver Support in DPDK 15/1615/2
Sachin [Fri, 17 Jun 2016 08:48:19 +0000 (14:18 +0530)]
NXP DPAA2 Poll Mode Driver Support in DPDK

 Upstreaming of DPAA2 driver changes is in progress.This patch will
 temporary add the support in VPP in built DPDK.

 Two types of changes:
     1. Driver specfic independent files. No impact on any other functionality.
     2. Changes in common EAL framework. These changes are done in compile time DPAA2
        specific flag, so no impact is expected on other existing features if not
compiling for DPAA2.

Change-Id: I02abe7189313835b51ff654b4d7e566bc0fb8327
Signed-off-by: Sachin <sachin.saxena@nxp.com>
7 years agoVPP-76:APIs for Proof of transit feature added to iOAM 73/1573/5
Shwetha [Wed, 15 Jun 2016 15:34:16 +0000 (16:34 +0100)]
VPP-76:APIs for Proof of transit feature added to iOAM
Moved Proof of Transit utility as a plugin
Moved Proof of Transit option as a plugin

Change-Id: Idc9897205eb8ec80c5dea47b428e6209ac938c32
Signed-off-by: Shwetha <shwethab@cisco.com>
7 years agoNew LISP API map-request itr-rloc 70/1570/6
Andrej Kozemcak [Tue, 14 Jun 2016 11:55:57 +0000 (13:55 +0200)]
New LISP API map-request itr-rloc

API to constrain source locator when sending map-requests.
lisp map-request itr-rloc <locator-set name>

Change-Id: I19f3a1aa8a387ca8662ccf3a4ad774ea7d655f80
Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
7 years agoVNET: Initialization support for NXP DPAA2 poll mode driver 12/1612/2
Sachin [Fri, 17 Jun 2016 03:54:20 +0000 (09:24 +0530)]
VNET: Initialization support for NXP DPAA2 poll mode driver

 - NXP proposed a poll mode driver "rte_dpaa2_dpni" in DPDK upstream.
 - When using external DPDK with the given dpaa2 driver, VPP needs modification
   to initialize the PMD and to understand the DPAA2 N/W interfaces.

Change-Id: I00eb127fa88c71fb430d3def238d50ba68fd595f
Signed-off-by: Sachin <sachin.saxena@nxp.com>
7 years agovpp-83: fix double-unlock 11/1611/2
Dave Barach [Fri, 17 Jun 2016 00:14:43 +0000 (20:14 -0400)]
vpp-83: fix double-unlock

Change-Id: I0b75b4f9bef62aba69e9cc163924f6b985a35455
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix generate-deb-changelog to handle YY.MM release 03/1603/2
Ed Warnicke [Thu, 16 Jun 2016 04:17:07 +0000 (23:17 -0500)]
Fix generate-deb-changelog to handle YY.MM release

generate-deb-changelog was only properly handling x.y.z
releases.  This patch fixes it to handle YY.MM.

Change-Id: Iaaee8ff747abd6754d021535c889f67ad2c9998f
Signed-off-by: Ed Warnicke <eaw@cisco.com>
(cherry picked from commit 693f4358deef7db06b3d3cae0d881924dd9cf9fa)

7 years agoConsolidate use of IP fib functions in LISP CP 05/1605/2
Florin Coras [Thu, 16 Jun 2016 19:08:56 +0000 (21:08 +0200)]
Consolidate use of IP fib functions in LISP CP

Clean up, refactor and consolidate LISP CP functions that interact with
ip interfaces and fibs.

Change-Id: I214eaebbec8d43646118df0948d0f82f923a5b43
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years ago6rd: Move to plugin 04/1604/3
Ole Troan [Wed, 15 Jun 2016 12:29:08 +0000 (14:29 +0200)]
6rd: Move to plugin

- Change toplevel plugins make target. Now builds all plugins under
  plugins/. (Apart from sample-plugin).
- Move sixrd code to plugins directory and make necessary changes to
  make it a plugin
- Remove 6rd hooks from IP lookup code

Change-Id: I447e92e3bee240cd8de01d0abac2e1708e8c27d1
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoVPP-19: Split the lookup.h IP_LOOKUP_NEXT enum. 50/1550/3
Ole Troan [Tue, 14 Jun 2016 19:12:32 +0000 (21:12 +0200)]
VPP-19: Split the lookup.h IP_LOOKUP_NEXT enum.

IP4 and IP6 nodes currently shares the adj->lookup_next_index. That
has some issues, e.g. that one has to add non-functional nodes like
ip4-hop-by-hop and that anyone dynamically adding nodes to any of the
IP4/IP6 lookup nodes must ensure they add themselves to all relevant
nodes to ensure next index consistency.

This patch splits the IP_LOOKUP_NEXT into separate enums for IP4 and
IP6 with a common part for next-nodes used by both. It sets up other
IP nodes as siblings to avoid inconsistencies. This allows IP4 and IP6
lookup next nodes to evolve independently. The adj->lookup_next_index is
still shared, assuming that an IP4 adjacency isn't used by an
IP6 graph node.

Change-Id: I589b8364fe54e7a10c059b7ef9d6707eb0a345cc
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoFix hugepage leak on VM termination 90/1590/2
Shesha Sreenivasamurthy [Wed, 15 Jun 2016 20:47:40 +0000 (13:47 -0700)]
Fix hugepage leak on VM termination

    When VM is terminated, the hugepages mapped
    should be unmapped so that the system does not
    run out of hugepage resources. Therefore, mapped
    pages are unmapped when VPP notices a disconnect.

Change-Id: I7398fb20028036738ab87db0b0e79609e95d69a4
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
7 years agoFix vxlan-gpe interface state dump failure 93/1593/1
Hongjun Ni [Thu, 16 Jun 2016 12:18:15 +0000 (20:18 +0800)]
Fix vxlan-gpe interface state dump failure

Correspond to HONEYCOMB-84 VxLAN GPE - Wrong operational data.

Change-Id: Ia1b3c3b85e4b5435b0c690a4ce9ff93c65bfee5c
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoREADME file for vcgn 69/1569/2
Ranganathan T.S [Wed, 15 Jun 2016 14:37:41 +0000 (20:07 +0530)]
README file for vcgn

Change-Id: I6bd851e4b26f0b8d6f5826a19bded3af930cbc0e
Signed-off-by: Ranganathan T.S <rangan@cisco.com>
7 years agoDelete useless field decap_next in tunnel 55/1555/2
Hongjun Ni [Wed, 15 Jun 2016 14:49:23 +0000 (22:49 +0800)]
Delete useless field decap_next in tunnel

Field decap_next in vxlan-gpe tunnel is not needed.

Change-Id: I83cc42ca82274587a57e3c65711cf18ee8d692d3
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoFix LISP locator pair selection 54/1554/4
Florin Coras [Mon, 13 Jun 2016 16:37:15 +0000 (18:37 +0200)]
Fix LISP locator pair selection

Make sure when selecting the local and remote locator pair for a
data-plane tunnel that the local locator has a route, in the FIB,
to the remote one.

Change-Id: Idbc8a28a8ede786c11ef98cb18eba4a78c4a228e
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoFix remote mapping CLI for unset v6 local eid 71/1571/2
Florin Coras [Wed, 15 Jun 2016 15:13:28 +0000 (17:13 +0200)]
Fix remote mapping CLI for unset v6 local eid

If when configuring a remote v6 mapping the local eid is not set,
configuration fails because the code expects local (default v4) and
remote eids to have the same AFI.

Change-Id: If791d2e8a104ea36603576f8b2797cc07bc2654b
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoVPP-137: VPP sends ARP with wrong requested IP 47/1547/2
Neale [Tue, 14 Jun 2016 17:44:02 +0000 (18:44 +0100)]
VPP-137: VPP sends ARP with wrong requested IP

Change-Id: I01802f3dab04c940e65236ba6e680f1e504a0a5f
Signed-off-by: Neale <nranns@cisco.com>
7 years agoAdd dpdk per-interface startup config parameter to support rss-flag 52/1552/2
Srivatsa Sangli [Tue, 14 Jun 2016 20:10:55 +0000 (13:10 -0700)]
Add dpdk per-interface startup config parameter to support rss-flag

New parameter allows specifying rss-flag - one or more of following
ipv4-frag ipv4-tcp ipv4-udp ipv4-sctp ipv4-other ipv4
ipv6-tcp-ex ipv6-udp-ex ipv6-frag ipv6-tcp ipv6-udp
ipv6-sctp ipv6-other l2-payload ipv6-ex ipv6

Sample config:

dpdk {
    dev 0000:86:00.0 {
        rss {
            ipv4
            ipv4-tcp
            ipv4-udp
        }
    }
}

Change-Id: I33c047d69ef8710b8ba3c7e1a1964d5d54f6e880
Signed-off-by: Srivatsa Sangli <srivrama@cisco.com>
7 years agoAdd dpdk per-interface startup config parameter to specify worker threads 33/1533/3
Damjan Marion [Mon, 13 Jun 2016 22:36:09 +0000 (00:36 +0200)]
Add dpdk per-interface startup config parameter to specify worker threads

New parameter allows specifying which worker threads will process rx
queues. Parameter arguments is list of cores and number of worker specified
must be equal to the number of rx queues configured (num-rx-queues). If
num-rx-queues is not specified, it will be automatically set to
number of workers.

Sample config:

dpdk {
  dev 0000:86:00.0 {
    workers 2,3
    num-rx-queues 2
  }
}

Change-Id: I88bc381e0e542eb02def09a726c6f04de3e1ae17
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoReset new indirect adjacdncy template before using it 45/1545/2
Damjan Marion [Tue, 14 Jun 2016 16:11:52 +0000 (18:11 +0200)]
Reset new indirect adjacdncy template before using it

Change-Id: Ia69ba39364d4dfa1403c8fbb77b7990226bbcb85
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix node siblings 91/1491/4
Ole Troan [Fri, 10 Jun 2016 11:22:36 +0000 (13:22 +0200)]
Fix node siblings

Siblings did not work at all. Fixed by generating sibling relationships
earlier in vlib_node_main_init(). Also adding a node dynamically before
nodes were initialised failed for sibling nodes.

Change-Id: I2fb73eb33a6f5ee216f566074e18ed495e20634d
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agogitignore change due to DPDK download suffix change 44/1544/2
Keith Burns (alagalah) [Tue, 14 Jun 2016 16:10:53 +0000 (09:10 -0700)]
gitignore change due to DPDK download suffix change

Change-Id: Idc86d3435e742f3cb96cb9eb1d85b0fdc6a40fc5
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agoRetire io threads and main-thread-io mode 31/1531/2
Damjan Marion [Mon, 13 Jun 2016 20:49:44 +0000 (22:49 +0200)]
Retire io threads and main-thread-io mode

Change-Id: I64f5ec5e32f200834c63ec3b304f9f20cef332a7
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix double-enqueued packet in interface-output dual-loop, fixes VPP-116 02/1502/2
Damjan Marion [Fri, 10 Jun 2016 17:26:54 +0000 (19:26 +0200)]
Fix double-enqueued packet in interface-output dual-loop, fixes VPP-116

When speculative enqueue fails and a buffer needs to be moved to a new
node queue the original buffer is not correctly removed from the
original queue so buffer get send for transmit and encryption at the
same time. This issue will only be hit with the double loop so low
throughput traffic like pings will not hit the issue. This code path is
also only hit when the feature flag is enabled so will not be hit by
normal traffic

Patch also reorgnizes code to reduce number of branches in the interface
output node loop.

Change-Id: I3653400e58bdfd833e6c42823bab51586128b54b
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoCleanup /dev/shm before starting VPP from top-level Makefile 30/1530/2
Damjan Marion [Mon, 13 Jun 2016 19:06:20 +0000 (21:06 +0200)]
Cleanup /dev/shm before starting VPP from top-level Makefile

Change-Id: I3a8b85ad033707552b9df7d0d08548517a8571ce
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd sw_if_index to af_packet_create and various clean ups 34/1534/3
Keith Burns (alagalah) [Mon, 13 Jun 2016 23:56:04 +0000 (16:56 -0700)]
Add sw_if_index to af_packet_create and various clean ups

Change-Id: I4c2972b55d5d99f3aa7a05885791eef47351c734
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
7 years agoFix name confusion for gre interface index. 36/1536/1
Hongjun Ni [Tue, 14 Jun 2016 17:22:22 +0000 (01:22 +0800)]
Fix name confusion for gre interface index.

Change from free_vxlan_tunnel_hw_if_indices to free_gre_tunnel_hw_if_indices.

Change-Id: I32f04f2b6b28fcf80d2fc0c37c67e343317dce7c
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoFix NULL-pointer crash in handoff_init(...) 32/1532/1
Dave Barach [Mon, 13 Jun 2016 22:16:27 +0000 (18:16 -0400)]
Fix NULL-pointer crash in handoff_init(...)

Change-Id: If403f83b4e918e81e7b2e90dfca14960ad2c6aa6
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoAdd worker-handoff node 49/1449/6
Damjan Marion [Tue, 7 Jun 2016 23:37:11 +0000 (01:37 +0200)]
Add worker-handoff node

worker-handoff node is universal node which taakes packets
from the input node and hands them over to worker threads.
Currently it supports flow hashing based on ipv4, ipv6 and
mpls headers.

New cli:

set interface handoff <intrerface-name> workers <list>

e.g.

set interface handoff TenGigabitEthernet2/0/0 workers 3-6,9-10

Change-Id: Iaf0df83e69bb0e84969865e0e1cdb000b0864cf5
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd vxlan-gpe tunnel to sw_interface_dump 25/1425/3
Hongjun Ni [Tue, 7 Jun 2016 17:07:12 +0000 (01:07 +0800)]
Add vxlan-gpe tunnel to sw_interface_dump

Patchset 2: rebuild

Change-Id: I3375d6c9c7e18ab46896552614369b9d77ee6004
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoExplicity specify IP address type for format_ip46_address function 25/1525/3
Damjan Marion [Tue, 24 May 2016 21:19:11 +0000 (23:19 +0200)]
Explicity specify IP address type for format_ip46_address function

Change-Id: I3379517535a98a7a5fbd3173503f288a81378821
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-117: Fix ip4 and ip6 lookup and rewrite traces 26/1526/1
Pierre Pfister [Mon, 13 Jun 2016 09:28:09 +0000 (10:28 +0100)]
VPP-117: Fix ip4 and ip6 lookup and rewrite traces

Previous patch was printing wrong data since rewrite node traces
an ethernet packet while other ip nodes trace an IP packet.

This patch introduces different tracing functions for:
- lookup node (where the fib index is valid)
- rewrite node (where an ethernet frame is available)
- other ip nodes (only the ip header is traced)

Change-Id: I5971a2e89ae8668f5aed4a410565a5f27e01fc22
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
(cherry picked from commit 584b99a0120778108bd019b697639fbf3c1505d1)

7 years agoFix next-protocol issue configured from Honeycomb 11/1511/2
Hongjun Ni [Sun, 12 Jun 2016 10:45:25 +0000 (18:45 +0800)]
Fix next-protocol issue configured from Honeycomb

PatchSet 2: rebuild.

Change-Id: I18ee050629129871b44271f92a1e63b661d55c05
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoReturn 0 if no tap interfaces are ready 07/1507/1
Dave Barach [Fri, 10 Jun 2016 22:31:55 +0000 (18:31 -0400)]
Return 0 if no tap interfaces are ready

Otherwise, if tapcli-rx manages to make it into polled-mode, it will
never leave polled mode. This has been wrong since day 1, sometime in
early 2013.

Change-Id: I124e01a48db5abbc4eb5240c8d59f76dc562e9f2
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoCopy missing buffer metadata for ESP transport mode packets 03/1503/1
Damjan Marion [Fri, 10 Jun 2016 18:42:44 +0000 (20:42 +0200)]
Copy missing buffer metadata for ESP transport mode packets

Change-Id: I3f5113533b365366cc3f6ef87858e19879f703cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoNXP dpaa2 platform initial support 89/1489/3
Sachin Saxena [Fri, 10 Jun 2016 11:01:30 +0000 (16:31 +0530)]
NXP dpaa2 platform initial support

 - On ARMv8 aarch64 CPU
 - TARGET is aarch64-linux-gnu
 - Cross compilation enabled with "gcc-linaro-4.9" toolchain

make PLATFORM=dpaa2 TAG=dpaa2 ...

Change-Id: I8faf5c8b0d3c81d33a2834c6429a05c8379309c1
Signed-off-by: Sachin Saxena <sachin.saxena@nxp.com>
7 years agoFix issue: no handler for msg id 13 44/1444/4
Hongjun Ni [Wed, 8 Jun 2016 15:35:24 +0000 (23:35 +0800)]
Fix issue: no handler for msg id 13

Delete send_sw_interface_flags within sw_interface_dump, because send_sw_interface_details has covered the link status.

Change-Id: I8ea8024ff88cfcc5799913762f047767fdb3c79c
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoVPP-133: increase size of cli process stacks 82/1482/2
Dave Barach [Thu, 9 Jun 2016 19:32:48 +0000 (15:32 -0400)]
VPP-133: increase size of cli process stacks

Change-Id: Ic488b95b54438028940403b02a5916347c53bd05
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoAdd verbose flag for packet trace, show hexdump in verbose dpdk input trace 77/1477/2
Damjan Marion [Thu, 9 Jun 2016 14:16:27 +0000 (16:16 +0200)]
Add verbose flag for packet trace, show hexdump in verbose dpdk input trace

Verbose trace can be enabled with:

 trace add dpdk-input 1 verbose

Change-Id: If58cfc561143d5a44f7d11e61d54b6835692a0e3
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdd format_hexdump function 70/1470/4
Damjan Marion [Thu, 9 Jun 2016 10:38:22 +0000 (12:38 +0200)]
Add format_hexdump function

Function output is compatible with text2pcap tool

Sample output:

00000: 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 [The quick brown ]
00010: 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20 74 [fox jumps over t]
00020: 68 65 20 6c 61 7a 79 20 64 6f 67 00             [he lazy dog.]

Change-Id: If77ec7d91b77146df770698e0cf35fe2f6dd0821
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-117: Add trace to ip4 and ip6 lookup nodes 76/1476/2
Pierre Pfister [Wed, 8 Jun 2016 11:23:21 +0000 (12:23 +0100)]
VPP-117: Add trace to ip4 and ip6 lookup nodes

The absence of trace in ip lookup nodes is misleading to many people.
This patch adds ip lookup tracing and therefore contribute to
worldwide happiness.

In addition, this patch makes sure sw_if_index[VLIB_TX] is
considered when tracing the fib_index value. In ip4/6-rewrite,
the value corresponds to the tx interface index. The formatting
function is therefore modified to take that case into account.

Change-Id: I5915f0446a15c45e391eedfdfcedd9057aa6a237
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
7 years agoVPP-106: fix performance hit due to unprefetched data read 72/1472/2
Dave Barach [Thu, 9 Jun 2016 12:39:47 +0000 (08:39 -0400)]
VPP-106: fix performance hit due to unprefetched data read

Change-Id: I1325b60b6deadcb51631e178011a31ee70c06cc7
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix DPDK init crash if bonded interface is created by startup conf 64/1464/2
John Lo [Thu, 9 Jun 2016 03:21:35 +0000 (23:21 -0400)]
Fix DPDK init crash if bonded interface is created by startup conf

Change-Id: I4d7d4a56aba010aa868b1f4c2c4e8db0b4c21fd7
Signed-off-by: John Lo <loj@cisco.com>
7 years agoVPP-119: JVpp notifications 29/1329/10
Maros Marsalek [Tue, 31 May 2016 15:45:16 +0000 (17:45 +0200)]
VPP-119: JVpp notifications

- add notification DTOs to JVpp
- add notification callbacks
- add notification registry
- provide/implement notification registry from future and callback facades

Change-Id: I1060ef2ec8ba1eb2e8cff279c93b73aa7c9f9aee
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoHONEYCOMB-67 Introduce exception handling into JVPP 84/1184/18
Tibor Sirovatka [Wed, 18 May 2016 12:54:50 +0000 (14:54 +0200)]
HONEYCOMB-67 Introduce exception handling into JVPP

Send calls throws VppInvocationException on failure
Failed requests (negative retval) reported over onError callback interface method
Removed retval attributes from dto/xxxReply.java calls

Change-Id: Ibd4e90c320d080e02d75b4bd056a7b11c8e37aa7
Signed-off-by: Tibor Sirovatka <tsirovat@cisco.com>
7 years agoVPP-127 Removed spurious use of sudo 62/1462/2
Ed Warnicke [Thu, 9 Jun 2016 00:49:40 +0000 (19:49 -0500)]
VPP-127 Removed spurious use of sudo

Change-Id: I1eb18fc6379db30fb802e3b929931788f54e7dc2
Signed-off-by: Ed Warnicke <eaw@cisco.com>
7 years agoVPP-129: Add build-root/scripts/csit-test-branch script 43/1343/6
Ed Warnicke [Wed, 1 Jun 2016 14:55:52 +0000 (09:55 -0500)]
VPP-129: Add build-root/scripts/csit-test-branch script

This script returns the csit branch that should be used
for testing and verification.

Related to csit patch:
https://gerrit.fd.io/r/#/c/1344/

Change-Id: I51e44e4ba4dc433056ac8a870f8b7c7f9518189b
Signed-off-by: Ed Warnicke <eaw@cisco.com>
7 years agoVPP-115: Remove stale ACL CLIs which are not supported 56/1456/3
John Lo [Wed, 8 Jun 2016 20:08:48 +0000 (16:08 -0400)]
VPP-115: Remove stale ACL CLIs which are not supported

The old ACL CLIs still show up in CLI help which can confuse users.

Change-Id: I9a3722d3d649c4370df6a09b2c07628e7e4aa0f4
Signed-off-by: John Lo <loj@cisco.com>
7 years agoVPP-127: Make rpm/deb provide vpp group to access vpp-api 60/1460/2
Ed Warnicke [Wed, 8 Jun 2016 22:15:08 +0000 (17:15 -0500)]
VPP-127: Make rpm/deb provide vpp group to access vpp-api

Change-Id: I80b7f55034d64ad8360e29c669002948317c64ba
Signed-off-by: Ed Warnicke <eaw@cisco.com>
7 years agoVPP-124: Fix rpms to work out of the box. 53/1453/1
Ed Warnicke [Wed, 8 Jun 2016 19:41:40 +0000 (14:41 -0500)]
VPP-124: Fix rpms to work out of the box.

Currently, for vpp we are not building any rpms for dpdk or igb_uio.
This is because uio_pci_generic as shipped with centos works with vpp.
However, our vpp rpms do not install kernel module uio_pci_generic at
start up and the /etc/vpp/startup.conf does not configure vpp to use
uio_pci_generic.

vpp rpms should do both, so that when the vpp rpm is installed and
vpp started, it just works out of the box.

This patch fixes the rpms to do so.

Change-Id: Ib934b51f9271cded466d235aa4044bef75c35960
Signed-off-by: Ed Warnicke <eaw@cisco.com>
7 years agoIncrease jvpp connection timeout 20/1420/3
Maros Marsalek [Mon, 6 Jun 2016 13:34:54 +0000 (15:34 +0200)]
Increase jvpp connection timeout

Change-Id: I4d52c113336deac80dfcbad91b21a7a70eea2213
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
7 years agoVPP-83: fix collateral damage 41/1441/1
Dave Barach [Tue, 7 Jun 2016 21:35:38 +0000 (17:35 -0400)]
VPP-83: fix collateral damage

Accidentally removed pthread_mutex_unlock (&root_rp->mutex) in the
dead client scan case. Oops. Bad idea.

Change-Id: I488b7e39d01c267052785bd346e8846351db90a9
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoFix missing null termination in DPDK EAL Args 39/1439/1
Damjan Marion [Tue, 7 Jun 2016 19:49:56 +0000 (21:49 +0200)]
Fix missing null termination in DPDK EAL Args

Change-Id: I8292628ad359a19e02ff79568d773ad2b1af51ec
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAdjust buffer data offset based on rte_mbuff data_off 35/1435/2
Damjan Marion [Thu, 18 Feb 2016 09:11:34 +0000 (10:11 +0100)]
Adjust buffer data offset based on rte_mbuff data_off

This commit removes assumption that all packets have
data offset equal to RTE_PKTMBUF_HEADROOM. Some drivers
like fm10K receive packets with different data offset.

Change-Id: I0aba6296458dab9df6fff639b4b827b2084ddc3e
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoRebase DPDK patches 28/1428/2
Damjan Marion [Tue, 7 Jun 2016 10:46:55 +0000 (12:46 +0200)]
Rebase DPDK patches

Change-Id: I3ef9faceb085bd06b55e3ba7800389eaae56177a
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoVPP-110: vxlan encap node should never touch a deleted tunnel 31/1431/1
John Lo [Tue, 7 Jun 2016 13:14:07 +0000 (09:14 -0400)]
VPP-110: vxlan encap node should never touch a deleted tunnel

Remove usage of dummy encap string for output from BD to a tunnel which
has been deleted. Instead, use a node l2-outpt-del-tunnel so that if
there are stale entries in the L2FIB for any deleted tunnel sw_if_index,
l2-output will send packets using this entry to the l2-output-tunnel-del
node which just setup the proper drop reason before sending packets
to the error-drop node to drop the packet.

Change-Id: I590982ee25e924ab74e2855c55c58baf29a9fad4
Signed-off-by: John Lo <loj@cisco.com>
7 years agoMulticore support for vCGN 91/1291/4
Shesha Sreenivasamurthy [Tue, 7 Jun 2016 00:10:20 +0000 (17:10 -0700)]
Multicore support for vCGN

    Locks are used while populating DB, which is once
    once per entry. Therefore, it is not in the performance
    critical path. Each thread is a PMD, therefore, spin locks
    are used instead of mutexes.

Change-Id: I4bc297f73a8f3eafebed1f00e51ec75ca24163f6
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
7 years agoAdd u32[] type handling in reply messages to jvpp 14/1414/3
Marek Gradzki [Mon, 6 Jun 2016 10:36:09 +0000 (12:36 +0200)]
Add u32[] type handling in reply messages to jvpp

Change-Id: I9fd0cd49e4636d5d8978567fa914487785035c8a
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
7 years agoFix link down issue of vxlan-gpe interface 24/1424/2
Hongjun Ni [Tue, 7 Jun 2016 10:43:05 +0000 (18:43 +0800)]
Fix link down issue of vxlan-gpe interface

Change-Id: Iaf72e7ffb2d30799733f641d66bbc74f40a4d6e1
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
7 years agoIPv6 HBH: Refactor code. Separate out RFC2460 HBH handling and the more experimental 37/1237/7
Ole Troan [Tue, 24 May 2016 09:56:58 +0000 (11:56 +0200)]
IPv6 HBH: Refactor code. Separate out RFC2460 HBH handling and the more experimental
          IOAM code. Support dynamically adding options. By default
          only process HBH if explicitly configured to. Otherwise we'll just set
          ourselves up to be a victim of DOS.

Change-Id: I41cdfdc00aeaa0cf568e4463440b89be761b6b7d
Signed-off-by: Ole Troan <ot@cisco.com>
7 years agoONE-18: Fix trailing garbage string in LISP status dump API 15/1415/2
Filip Tehlar [Mon, 6 Jun 2016 11:13:16 +0000 (13:13 +0200)]
ONE-18: Fix trailing garbage string in LISP status dump API

Change-Id: I5cba5eae5a981e41df3f227834a079e10982537f
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
7 years agoAdd startup conf options to set per-interface descriptor ring size 17/1417/1
Damjan Marion [Mon, 6 Jun 2016 11:21:04 +0000 (13:21 +0200)]
Add startup conf options to set per-interface descriptor ring size

This patch introduces following 2 startup options:

  num-rx-desc
  num-tx-desc

Which can be specified under the dpdk { dev PCI_ADDR {...} } or
dpdk { dev default {...} } .

"show hardware" output is extended to display what is set:

TenGigabitEthernet2/0/0            5    down  TenGigabitEthernet2/0/0
  Ethernet address 90:e2:ba:96:d0:54
  Intel 82599
    carrier up full duplex speed 10000 mtu 9216
    rx queues 2, rx desc 512, tx queues 2, tx desc 1024
    cpu socket 0

Change-Id: Ia832885c8e5cf0eb0575367e97581e7065934753
Signed-off-by: Damjan Marion <damarion@cisco.com>