vpp.git
6 years agoMPLS hash function improvements 82/6882/2
Neale Ranns [Thu, 25 May 2017 19:38:58 +0000 (12:38 -0700)]
MPLS hash function improvements

Change-Id: I28e98f445c01493562b6196a4f5b532a51f178af
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoMPLS interface output feature not explicitly enabled 74/6874/1
Neale Ranns [Mon, 22 May 2017 15:02:04 +0000 (11:02 -0400)]
MPLS interface output feature not explicitly enabled

Change-Id: I54cb5113ec8e37f5da321041d7925393cae31aa5
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoaf_packet: fix coverity error 16/6816/4
Ray Kinsella [Sat, 20 May 2017 12:42:30 +0000 (13:42 +0100)]
af_packet: fix coverity error

Fix coverity error associated with fd.

Change-Id: I0648aebaf356308bc03cc7217922479bfc4e22f7
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
6 years agoAdd p2p flag to IPsec tunnel interface hw class 68/6868/1
Matthew Smith [Wed, 24 May 2017 21:18:27 +0000 (16:18 -0500)]
Add p2p flag to IPsec tunnel interface hw class

Change-Id: I4ac05ee5974f5e7ab3685d325446a6e77048a948
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agoMPLS tunnels; path-list lock leak and debug CLI imrpovements 64/6864/2
Neale Ranns [Wed, 24 May 2017 17:53:43 +0000 (10:53 -0700)]
MPLS tunnels; path-list lock leak and debug CLI imrpovements

Change-Id: Ifb51b49d4dac1f07027b12398314a52b5cce343e
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoSNAT: fix IPFIX data src and dst port 56/6856/2
Matus Fabian [Wed, 24 May 2017 08:52:20 +0000 (01:52 -0700)]
SNAT: fix IPFIX data src and dst port

Change-Id: Ifa9582962710a3601fcccbbf388529043fc7f08a
Signed-off-by: Matus Fabian <matfabia@cisco.com>
6 years agoIPv6 Performance bugs 27/6827/3
Neale Ranns [Mon, 22 May 2017 13:20:20 +0000 (09:20 -0400)]
IPv6 Performance bugs

- inline the FIB lookup function; this requires access to the bihash, so for files that use more than one type this casues problems. those files that include ip6_fib.h unnecessarily have been updated
- better use of the feature arcs. ip6-lookup and interface-output are now sentinels (end-node-index in the cm speak) rather than enabled features.

Change-Id: I9d1375fee63f7dbb2d327da6124d8e60b63367ec
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoMissing VLIB node for IPv6 disposition from mcast MPLS LSP 63/6863/2
Neale Ranns [Wed, 24 May 2017 17:32:58 +0000 (10:32 -0700)]
Missing VLIB node for IPv6 disposition from mcast MPLS LSP

Change-Id: Ibc0e1910a4926fdfbf74571efb5fd5810bfa09da
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agovlib: use driver_override in sysfs for binding pci devs to vfio/uio drivers 46/6846/4
Damjan Marion [Tue, 23 May 2017 16:32:21 +0000 (18:32 +0200)]
vlib: use driver_override in sysfs for binding pci devs to vfio/uio drivers

Change-Id: I262e455792fd95d286ee3ebc0049e2352ae5899f
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoMPLS trace fixes 62/6862/2
Neale Ranns [Wed, 24 May 2017 16:37:49 +0000 (09:37 -0700)]
MPLS trace fixes

Change-Id: I141a14e1098e562bdb3c3ac576754f4f19dbcb04
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoLeak locks and tables in the Classifier 41/6841/2
Neale Ranns [Tue, 23 May 2017 13:10:33 +0000 (06:10 -0700)]
Leak locks and tables in the Classifier

Change-Id: Iae04c57bba87ab3665388eadd0805f75171636a5
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix tab-completion coverity issue 60/6860/2
Yoann Desmouceaux [Wed, 24 May 2017 13:51:48 +0000 (15:51 +0200)]
Fix tab-completion coverity issue

Change-Id: I051d015e7eee621dbef273b2c57449ea4c44b768
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
6 years agoTEST/L2BD:fix flush tests 52/6852/2
Eyal Bari [Wed, 24 May 2017 07:11:20 +0000 (10:11 +0300)]
TEST/L2BD:fix flush tests

flush tests will now enable learning on the bridge, and send broadcast packets
to add dynamic entries to the l2_fib. it will then disable learning, flush, and
will verify packets are not forwarded to flushed "hosts".

Change-Id: Ie6f123e59f6c89af511bdc5a02dd199420c424e9
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agoipfix: make IPFIX work for all skip_n_vectors values (VPP-204) 57/2457/12
Juraj Sloboda [Mon, 22 Aug 2016 14:02:11 +0000 (07:02 -0700)]
ipfix: make IPFIX work for all skip_n_vectors values (VPP-204)

Change-Id: Id2ffcd048b93d8efc8f825744cf2aeef5c436d53
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
6 years agoSimple script to 'git blame' on new Coverity issues 45/6845/2
Chris Luke [Tue, 23 May 2017 15:46:52 +0000 (11:46 -0400)]
Simple script to 'git blame' on new Coverity issues

- Pass an email in to stdin and the script produces output similar
to:

Hi,

Please find the latest report on new defect(s) introduced to fd.io VPP
found with Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)

** CID 167726:  Resource leaks  (RESOURCE_LEAK)
/src/vnet/devices/af_packet/device.c: 215 in
af_packet_interface_admin_up_down()

________________________________________________________________________________________________________
*** CID 167726:  Resource leaks  (RESOURCE_LEAK)
/src/vnet/devices/af_packet/device.c: 215 in
af_packet_interface_admin_up_down()
>>>     CID 167726:  Resource leaks  (RESOURCE_LEAK)
>>>     Handle variable "fd" going out of scope leaks the handle.
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
209)   af_packet_if_t *apif =
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
210)     pool_elt_at_index (apm->interfaces, hw->dev_instance);
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
211)   u32 hw_flags;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
212)   int rv, fd = socket (AF_UNIX, SOCK_DGRAM, 0);
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
213)   struct ifreq ifr;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
214)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
215)   /* if interface is a bridge ignore */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
216)   if (apif->host_if_index < 0)
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
217)     goto error; /* no error */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
218)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
219)   /* use host_if_index in case host name has changed */
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
220)   ifr.ifr_ifindex = apif->host_if_index;
** CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
/src/vnet/devices/af_packet/device.c: 252 in
af_packet_interface_admin_up_down()

________________________________________________________________________________________________________
*** CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
/src/vnet/devices/af_packet/device.c: 252 in
af_packet_interface_admin_up_down()
>>>     CID 167725:  Error handling issues  (NEGATIVE_RETURNS)
>>>     "fd" is passed to a parameter that cannot be negative.
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
246)     }
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
247)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
248)   if ((rv = ioctl (fd, SIOCSIFFLAGS, &ifr)) < 0)
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
249)     {
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
250)       clib_unix_warning ("af_packet_%s error: %d",
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
251)   apif->is_admin_up ? "up" : "down", rv);
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
252)       goto error;
c855b73f src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-04-21
253)     }
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
254)
00a9dcad vnet/vnet/devices/af_packet/device.c (Damjan Marion 2016-08-17
255)   vnet_hw_interface_set_flags (vnm, hw_if_index, hw_flags);
83cc4e14 vnet/vnet/devices/af_packet/device.c (Alpesh Patel  2016-04-05
256)
2038ad01 src/vnet/devices/af_packet/device.c  (Ray Kinsella  2017-05-18
257) error:

Change-Id: I9756c16ea24e7520704155ae1f6c5f132087e3bc
Signed-off-by: Chris Luke <chrisy@flirble.org>
6 years agoAdd TAB-based auto-completion to the CLI 55/6755/5
Yoann Desmouceaux [Thu, 18 May 2017 09:00:48 +0000 (11:00 +0200)]
Add TAB-based auto-completion to the CLI

Hitting tab:
 - in the middle of a uniquely defined subcommand will expand the subcommand
 - in the middle of a non-uniquely defined (or empty) subcommand will display
   all possible subcommands, and possibly expand to the lowest common prefix

Change-Id: Ib858eefdb0353cd2c3aad472799d15cd537455a0
Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
6 years agoLabelled attached paths via an MPLS tunnel 37/6837/1
Neale Ranns [Tue, 23 May 2017 10:43:47 +0000 (03:43 -0700)]
Labelled attached paths via an MPLS tunnel

Change-Id: Ic86617c9c3217122043656ce2ea70bb106df5b2d
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoAdded support for Virtio-user interfaces by means of a new VNET_DPDK_PORT_TYPE. 44/6744/2
Mohammed Hawari [Wed, 17 May 2017 13:52:02 +0000 (15:52 +0200)]
Added support for Virtio-user interfaces by means of a new VNET_DPDK_PORT_TYPE.

Change-Id: I101e32cee8d9de51227b39ec2639c9fb44da1e6c
Signed-off-by: Mohammed Hawari <mhawari@cisco.com>
6 years agoARP/ND entries for the same address on different interfaces (VPP-848) 61/6761/8
Neale Ranns [Thu, 18 May 2017 10:03:22 +0000 (03:03 -0700)]
ARP/ND entries for the same address on different interfaces (VPP-848)

there are, intentionally, no validation checks in the ARP/ND code to prevent an ARP/ND entry from being installed for an address that is not local to the interface's sub-net. This is ok, since the adjacency/FIB code is designed to handle this case using the 'refinement' criteria - i.e. only installing a FIB entry for the address if the address 'refines' (i.e. is more specific than) the interface's sub-net.
However, the refinement criteria currently operates on the FIB entry's prefix (which is a /32, so on the address) and not on the next-hop in the path.
So, enter multiple ARP entries for the same address on different links, and this refinement criteria uses only the last added path, and so will remove the FIB entry should the ARP entries be added in the 'wrong' order.
This fix updates the refinement criteria to work on each path of the FIB entry. The entry is installed if one of the paths refines the covers and only paths refining the cover contribute forwarding.
Per-path refinement checks are stored in path-extensions. The patch is rather large as path-extension, which were previously used only for out-going MPLS labels, have been generalized.

Change-Id: I00be359148cb948c32c52109e832a70537a7920a
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agovhost: migrate to use device infra for worker thread assignment, rx-mode. 40/6540/6
Steven [Mon, 1 May 2017 21:03:02 +0000 (14:03 -0700)]
vhost: migrate to use device infra for worker thread assignment, rx-mode.
and add adaptive mode support to receive queue

- Migrate vhost to use device infra which does the interface/queue to worker
thread assignment.

- Retire vhost thread CLI and corresponding code which assigns interface/queue
to worker thread. set interface placement should be used instead to customize
the interface/queue to worker thread assignment.

- Retire vhost interrupt/polling option when creating vhost-user interface.
Instead, set interface rx-mode should be used.

- Add code in vnet_device_input_unassign_thread to change the node state
to interrupt if the last polling interface has left the worker thread for the
device of the corresponding interface/queue.

- Add adaptive mode support. The node state is set to interrupt initially.
When the scheduler detects a burst of traffic, it switches the input node to
polling. Then we inform the device that we don't need interrupt notification.
When the traffic subsides, the scheduler switches the input node back to
interrupt. Then we immediately tell the driver that we want interrupt
notification again.

- Remove some duplicate code in vlib/main.c

Change-Id: Id19bb1b9e50e6521c6464f470f5825c26924d3a8
Signed-off-by: Steven <sluong@cisco.com>
6 years agodpdk: make dpdk global debug level configurable 25/6825/3
Damjan Marion [Mon, 22 May 2017 13:32:04 +0000 (15:32 +0200)]
dpdk: make dpdk global debug level configurable

Adds startup.conf knob:

dpdk {
log-level debug
}

Change-Id: I80dfbc00559528d7b0970958fba9f08d97aa7118
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoLISP-GPE: add dump call for VNIs in use 60/6760/7
Filip Tehlar [Thu, 18 May 2017 12:23:32 +0000 (14:23 +0200)]
LISP-GPE: add dump call for VNIs in use

Change-Id: I394af7c1ac9fd0177ff5d298e4008245df54b436
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
6 years agoDisable "make test" for CentOS 28/6828/1
Damjan Marion [Mon, 22 May 2017 14:56:54 +0000 (16:56 +0200)]
Disable "make test" for CentOS

Due to issues with python on centos we cannot reliably
execute "make test". To be removed after problem is solved.

Change-Id: I92d2b647c72a8ba58cf8a9d4b443357e61ef403f
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoSkip L2 FIB flush tests 21/6821/1
Neale Ranns [Mon, 22 May 2017 09:46:01 +0000 (02:46 -0700)]
Skip L2 FIB flush tests

These tests attempt to flush static entries from a bridge-domain that has no aging configured. for both reasons it will fail.
The fact thtat they occationally pass is due to the fact that the assert_nothing_cpatured does not actually capture packets, so it misses the fact that there are some.

Change-Id: Ie5c98a42944e29a3d482156f7e9246511380372f
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix GTP-U Coverity issues 78/6778/4
Hongjun Ni [Fri, 19 May 2017 15:52:34 +0000 (23:52 +0800)]
Fix GTP-U Coverity issues

Change-Id: I982e0dfb96c371672aa636aa7e40f06a84e2bb69
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoAPI: Cleaning up message naming that does not follow the conventions 62/6662/8
Ole Troan [Fri, 12 May 2017 09:55:35 +0000 (11:55 +0200)]
API: Cleaning up message naming that does not follow the conventions

is_address_reachable - Disabled so deleted
cli_request - Renamed to cli
vnet_summary_stats_reply - Renamed to vnet_get_summary_stats_reply
bridge_domain_sw_if_details - Deleted, incorporated in main message
l2_fib_table_entry - Renamed to l2_fib_table_details

Change-Id: I93b7e8769a3ba7b4989b3c270270f575f386464f
Signed-off-by: Ole Troan <ot@cisco.com>
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoImprove session debugging 09/6809/5
Florin Coras [Fri, 19 May 2017 16:49:19 +0000 (09:49 -0700)]
Improve session debugging

Also improves builtin client code.

Change-Id: I8bca1aa632028f95c373726efb0abf2ee0eff414
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agovhost: buffers leak and interface disable upon vring descriptor out of mmap 75/6775/2
Steven [Fri, 19 May 2017 04:22:00 +0000 (21:22 -0700)]
vhost: buffers leak and interface disable upon vring descriptor out of mmap

When processing a vring descriptor which is outside of mmap, we disable
the interface and spit a message to shut/no shut the interface. This is
not practical as application using vhost cannot constantly checking the
logs and do the recovery. The proposed fix is to log an error, like
other errors that we encounter.

The other bug is buffer leak in the function rewind. At the end of the
while loop when b_current != b_head, we still have to give back 1 more
buffer or add 1 to rx_buffers_len.

Change-Id: I68c0b24f070e644cd8878f42272a7b518f14393f
Signed-off-by: Steven <sluong@cisco.com>
6 years agoRestore possibility to build vpp in debug mode for rpms 74/6774/3
Igor Mikhailov (imichail) [Fri, 19 May 2017 02:46:17 +0000 (19:46 -0700)]
Restore possibility to build vpp in debug mode for rpms

Change-Id: I3935b3f312852e0f032c48726651561fb8616273
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
6 years agoVPP-849: improve vnet classifier memory allocator performance 72/6772/3
Dave Barach [Thu, 18 May 2017 23:16:47 +0000 (19:16 -0400)]
VPP-849: improve vnet classifier memory allocator performance

Port the linear-scan bucket fix from bihash_template.c.

Change-Id: Id8b2d1fe402401f098270ce6121c2f44f2f24c49
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoRemove specific versions of some packages. 08/6808/2
Thomas F Herbert [Wed, 17 May 2017 23:00:07 +0000 (19:00 -0400)]
Remove specific versions of some packages.
Add lcov for rhel.
Correct fedora Development tools group and rpm-build.

Change-Id: I0a19e239e6bc4f34f3aacfbb7e08e2abbdc061ed
Signed-off-by: Thomas F Herbert <therbert@redhat.com>
6 years agoaf_packet: set mac address support 58/6758/4
Ray Kinsella [Thu, 18 May 2017 10:56:28 +0000 (11:56 +0100)]
af_packet: set mac address support

Added support to the interfaces mac address.
Resolved an fd leak when the interface is a bridge.

Change-Id: I6608c51b11a50bd0ae4aabe0dc5788c4301b5a1e
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
6 years agomfib CLI bugs (VPP-852) 83/6783/2
Neale Ranns [Fri, 19 May 2017 09:54:32 +0000 (02:54 -0700)]
mfib CLI bugs (VPP-852)

Change-Id: I1b71010e20742eee02693d672e24c85897e37759
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoEnforce Bridge Domain ID range to match 24-bit VNI range 73/6773/2
John Lo [Fri, 19 May 2017 02:26:47 +0000 (22:26 -0400)]
Enforce Bridge Domain ID range to match 24-bit VNI range

Enforce bridge domain ID range to allow a maximum value of 16M
which matches the range of 24-bit VNI used for virtual overlay
network ID.
Fix "show bridge-domain" output to allow full 16M BD ID range
to be displayed using 8-digit spaces.

Change-Id: I80d9c76ea7c001bcccd3c19df1f3e55d2970f01c
Signed-off-by: John Lo <loj@cisco.com>
6 years agoAdd indent to DEB_DEPENDS missing in vagrant box. 51/6751/3
Dave Wallace [Thu, 18 May 2017 05:03:15 +0000 (01:03 -0400)]
Add indent to DEB_DEPENDS missing in vagrant box.

Change-Id: Icb9412ed09095443c20ae1fe2b71b646bbe580b0
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoRemove nop code from session_manager_add_first_segment(). 33/6733/2
Dave Wallace [Wed, 17 May 2017 02:05:57 +0000 (22:05 -0400)]
Remove nop code from session_manager_add_first_segment().

Change-Id: I071e8d78ed9312ebf8e572bf01ece447ce1a1835
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
6 years agoImprove sack bytes accounting and testing 48/6748/6
Florin Coras [Wed, 17 May 2017 21:21:51 +0000 (14:21 -0700)]
Improve sack bytes accounting and testing

Change-Id: Iabeda0d0615b0f6fe20dd00611cb4c594d90b7eb
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoacl-plugin: reject the too-short variable-length messages from clients (VPP-839) 49/6749/2
Andrew Yourtchenko [Wed, 17 May 2017 21:43:59 +0000 (23:43 +0200)]
acl-plugin: reject the too-short variable-length messages from clients (VPP-839)

Prior to commit bfd9227e6da567e0e19e026afe94cd4c0b65f725, there was
no clean way to check the lower-level message length as supplied
by the client, so there was no option but to trust that the client
does the right thing and allocates memory correctly.
The absence of checks makes it hard for a misbehaving client
to spot the problem - because everything "appears" to work
correctly for the specific erroneous message exchange.
This commit ensures the message received is at least
as big as we expect, and complains loudly if it is not.

Change-Id: I806eaac7c7f1ab3c64cb2bfa6939ce27da9a2b44
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
6 years agoVPP-847: improve bihash template memory allocator performance 50/6750/2
Dave Barach [Thu, 18 May 2017 00:20:50 +0000 (20:20 -0400)]
VPP-847: improve bihash template memory allocator performance

Particularly in the DCLIB_VEC64=1 case, using vectors vs. raw
clib_mem_alloc'ed memory causes abysmal memory allocator performance.

Change-Id: I07a4dec0cd69ca357445385e2671cdf23c59b95d
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoUpdate CSIT tests 170504 -> 170518 62/6762/1
Jan Gelety [Thu, 18 May 2017 12:55:14 +0000 (14:55 +0200)]
Update CSIT tests 170504 -> 170518

- update of CSIT operational branch to be used for VPP-patch test

Change-Id: I916427584df514088f2d8cbcc3483c397ca4d6f5
Signed-off-by: Jan Gelety <jgelety@cisco.com>
6 years agodpdk: disable 16-bit descriptors for X710/XL710 45/6745/2
Damjan Marion [Wed, 17 May 2017 14:07:32 +0000 (16:07 +0200)]
dpdk: disable 16-bit descriptors for X710/XL710

This fixes issue with rx packet drops on VF.

Change-Id: I8c1a35213013f8856b71e7204496f463319cbe28
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoioam: configuration for SRv6 localsid (VPP-693) 48/6348/3
shwethab [Tue, 11 Apr 2017 06:21:44 +0000 (06:21 +0000)]
ioam: configuration for SRv6 localsid (VPP-693)

This add debug cli to accept SRv6 localsid that will be
used to attract the return traffic for M-Anycast flows.

Change-Id: I8f8dd115c36498141ae4cb143c6584141950b1d3
Signed-off-by: shwethab <shwetha.bhandari@gmail.com>
(cherry picked from commit 00c14a94c34fac89e6e589c4a7aad20d8dd183dc)

6 years agoAdd vl_msg_api_get_message_length[_inline] 68/6668/10
Dave Barach [Fri, 12 May 2017 15:59:25 +0000 (11:59 -0400)]
Add vl_msg_api_get_message_length[_inline]

Change-Id: I6d86cf7966d51ec7a507bbb59c586adbfb45be05
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agodpdk: Do not check and set rte_mbuf refcnt if dpdk ver >= 17.05 42/6742/2
Damjan Marion [Wed, 17 May 2017 11:58:07 +0000 (13:58 +0200)]
dpdk: Do not check and set rte_mbuf refcnt if dpdk ver >= 17.05

According to DPDK release notes this is done by DPDK.
Also, it fixes assers in debug image.

Change-Id: Ida1d25f8cd0c2232110e44eabd7dc3e512336758
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoVPP-719: Accept ARP replies from VRRP hw addr 34/6734/3
Matthew Smith [Wed, 17 May 2017 02:35:56 +0000 (21:35 -0500)]
VPP-719: Accept ARP replies from VRRP hw addr

Check whether an ARP src hw addr starts with 00:00:5e:00:01
before rejecting due to a mismatch between ARP src hw addr
and ethernet frame src addr.

Change-Id: Ia3ecd5d6dba34876aca8d90bc622a0a1397e48fb
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agovhost: bad packet assembled from descriptor chaining 35/6735/2
Steven [Wed, 17 May 2017 04:26:13 +0000 (21:26 -0700)]
vhost: bad packet assembled from descriptor chaining

When the descriptor is chained via multiple parts, vhost is supposed
to reassemble the different parts to form a packet prior to passing
the packet to the next input node. However, bad packet was seen, having
bad ethertype, source, and destination mac addresses.

The problem was due to the destination pointer not being incremented as
each chain is processed. THe result was the first chain is copied to the
beginning of the buffer, the next chain is copied, then the last chain
is also copied to the beginning of the buffer. As a result, the ethertype,
source and destination mac, etc, are being overwritten by the very last
chain of the descriptor.

Change-Id: I78f9a91de68c85574047912576dcc311d7597e21
Signed-off-by: Steven <sluong@cisco.com>
6 years agoUse counters on ipsec tunnel interfaces 30/6730/4
Matthew Smith [Tue, 16 May 2017 16:51:18 +0000 (11:51 -0500)]
Use counters on ipsec tunnel interfaces

Increment byte & packet counters when packets are sent or received on an
IPsec tunnel interface. Set counters to zero when the interface is deleted.

Change-Id: Ie9584aa82778875dd4d0c931005f7720b4d5c76d
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agoAdd ethernet type to support NSH over ethernet 32/6732/3
Hongjun Ni [Wed, 17 May 2017 10:09:38 +0000 (18:09 +0800)]
Add ethernet type to support NSH over ethernet

Change-Id: I876599d6183fab989949e8ccad5c0a3ef81991be
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agoVPP-846: tcp perf / scale / hardening 31/6731/2
Dave Barach [Tue, 16 May 2017 21:41:34 +0000 (17:41 -0400)]
VPP-846: tcp perf / scale / hardening

Fix builtin server event queue handling

Change-Id: I21b49c37188746cadb2fd9423291c5dc1335798c
Signed-off-by: Dave Barach <dbarach@cisco.com>
6 years agoARP learning fixes (VPP-843) 28/6728/3
Neale Ranns [Tue, 16 May 2017 15:46:45 +0000 (08:46 -0700)]
ARP learning fixes (VPP-843)

learn ARP peers if, 1) it's a reply to a local address, 2) we are sending a response to a request.
send proxy ARP responses only in the interface the request was sent.

Change-Id: I22b949c65122824233076492b7dd537daca07bc2
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFixes to tcp active opens and reception 13/6713/3
Dave Barach [Mon, 15 May 2017 20:27:05 +0000 (16:27 -0400)]
Fixes to tcp active opens and reception

- Properly initialize connection index
- Add new session to main hash table
- Drop packets that are completely in the past with respect to the rcv
  wnd (e.g., retransmits due to premature timer pops)

Change-Id: Ic0873018ff0a4c59e0913863dc7f0c0f822d5c34
Signed-off-by: Dave Barach <dbarach@cisco.com>
Signed-off-by: Florin Coras <fcoras@cisco.com>
6 years agoUnneeded linking 38/6638/9
Marco Varlese [Wed, 10 May 2017 15:02:58 +0000 (17:02 +0200)]
Unneeded linking

Removed the linking which does not appear to be necessary when using in repo
dpdk and which causes a build failure when using the shared-dpdk mode.

Change-Id: I6bad2bd11d6db40fbd2def78f98c6beba66ff416
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
6 years agoL2FIB: add flush test 19/6719/2
Eyal Bari [Mon, 15 May 2017 07:13:15 +0000 (10:13 +0300)]
L2FIB: add flush test

add tests for flush int/bd/all

Change-Id: Ia589ec5925b9c8acbb2fc16dafbf4842aa1a6eff
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agoVPP-845: add configurable elog post-mortem dump 22/6722/1
Dave Barach [Tue, 16 May 2017 13:08:14 +0000 (09:08 -0400)]
VPP-845: add configurable elog post-mortem dump

Off by default. Enable via cmdline "... vlib { elog-post-mortem-dump }
..."

Change-Id: I2056b9de9b37475f2bfeeb5404da838f1b42645a
Signed-off-by: Dave Barach <dave@barachs.net>
6 years agoping command does not work when there is woker thread (VPP-844) 88/6688/4
flyingeagle23 [Mon, 15 May 2017 08:57:20 +0000 (16:57 +0800)]
ping command does not work when there is woker thread (VPP-844)

Change-Id: Ic896b237a7d141243e1b7d6d4fbb2a120f44363e
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
6 years agoFix regression of setting device to admin-down state 14/6714/2
John Lo [Mon, 15 May 2017 23:21:15 +0000 (19:21 -0400)]
Fix regression of setting device to admin-down state

Change-Id: I0ffa572839405efe1170d6ddb073e53e9af02db7
Signed-off-by: John Lo <loj@cisco.com>
6 years ago1704: Release notes. Cherry pick from 6288. 89/6289/2
Ole Troan [Thu, 20 Apr 2017 06:57:47 +0000 (08:57 +0200)]
1704: Release notes. Cherry pick from 6288.

Change-Id: Ia6146106a708d5ab247225dfe49eb6ef686ae3d3
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoPlace the vpp_papi*.egg file together with other build products. 55/6655/3
Igor Mikhailov (imichail) [Fri, 12 May 2017 05:15:36 +0000 (22:15 -0700)]
Place the vpp_papi*.egg file together with other build products.

This way it will be deleted when clean/wipe is performed.

Change-Id: Ic3fcfe8b80ac8b80a5a25ec04c35c36a638ca570
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
6 years agoAdd sw_if_index of tunnel interface to API reply for ipsec_tunnel_if_add_del 85/6685/3
Matthew Smith [Mon, 15 May 2017 02:47:18 +0000 (21:47 -0500)]
Add sw_if_index of tunnel interface to API reply for ipsec_tunnel_if_add_del

Change-Id: If5158f6fa7344dee94548c93dace779430e0647f
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
6 years agoacl-plugin: unapply the ACLs if interface is being deleted 53/6653/4
Andrew Yourtchenko [Thu, 11 May 2017 10:33:54 +0000 (12:33 +0200)]
acl-plugin: unapply the ACLs if interface is being deleted

(HC2VPP-137 is the client behavior triggering this)

If the user does not unapply the ACLs off the interface,
but deletes the interface, the subsequent reuse of the
sw_if_index might find itself with the datapath
hooked up for ACL processing even though there is
no ACL configured. The fix is to unapply any ACLs
in the callback which is called upon the sw_if_index
addition/deletion.

Change-Id: Icea413d7fbf1ef891844a4818626e1b34fe79cbf
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit 4c72e629e5ace392390a9d6109594254525064f7)

6 years agodpdk: Enable hardware CRC strip for Intel VFs 11/6711/4
Damjan Marion [Mon, 15 May 2017 16:35:37 +0000 (18:35 +0200)]
dpdk: Enable hardware CRC strip for Intel VFs

Change-Id: I60a7795761fe74ae5d57dacd03c343ddb77434d4
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoAdd GTP-U plugin. VPP-694 50/6150/23
Hongjun Ni [Wed, 12 Apr 2017 11:21:16 +0000 (19:21 +0800)]
Add GTP-U plugin. VPP-694

Basic GTP-U feature

Change-Id: I31226f890a92c5303ac06e112ed7820cae52d9bd
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
6 years agomemif: migrate memif to use vnet device infra APIs 10/6710/2
Steven [Mon, 15 May 2017 16:33:11 +0000 (09:33 -0700)]
memif: migrate memif to use vnet device infra APIs

Migrate memif to use vnet device infra APIs. No new function is added.

Change-Id: I70e440d2ae1e673876365041f31fe78997aceecf
Signed-off-by: Steven <sluong@cisco.com>
6 years agodpdk: improve error handling during device initialization 51/6651/6
Damjan Marion [Thu, 11 May 2017 14:53:02 +0000 (16:53 +0200)]
dpdk: improve error handling during device initialization

Change-Id: Ib390164abb07ca0d38fd49e7e2e6b4e9ea856405
Signed-off-by: Damjan Marion <damarion@cisco.com>
6 years agoaf_packet: support changing the mtu size 95/6695/5
Ray Kinsella [Mon, 15 May 2017 10:52:43 +0000 (11:52 +0100)]
af_packet: support changing the mtu size

Added support to the af_packet device to change the MTU size.

Change-Id: I9c9e1e17323721f3efccf70a10b753e12eef94d5
Signed-off-by: Ray Kinsella <ray.kinsella@intel.com>
6 years agojvpp: fix memory allocation for variable lenght messages (VPP-841) 09/6709/4
Marek Gradzki [Fri, 12 May 2017 16:24:34 +0000 (18:24 +0200)]
jvpp: fix memory allocation for variable lenght messages (VPP-841)

Change-Id: I9a46125e3cf9815c08cf8cca17713ec6e9121eae
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
(cherry picked from commit 307cfd8eb14ff7df04316ffa56f2c2481d650d7e)

6 years agoFix builtin tcp client 06/6706/4
Dave Barach [Mon, 15 May 2017 14:11:39 +0000 (10:11 -0400)]
Fix builtin tcp client

Change-Id: I83a1b02a73fd159f14cca04fed3993f571475a00
Signed-off-by: Dave Barach <dbarach@cisco.com>
6 years agoAdd a missing byte-swap call in ACL intf dump. 73/6673/4
Jon Loeliger [Fri, 12 May 2017 19:03:16 +0000 (14:03 -0500)]
Add a missing byte-swap call in ACL intf dump.

Change-Id: I87495d95dc6c5a36ff6d2ae05203e22e43403bf6
Signed-off-by: Jon Loeliger <jdl@netgate.com>
6 years ago[plugins/dpdk] Support for CLIB_HAVE_64 (aarch64) 70/6670/4
Christophe Fontaine [Wed, 5 Apr 2017 09:49:07 +0000 (11:49 +0200)]
[plugins/dpdk] Support for CLIB_HAVE_64 (aarch64)

For platforms which do not support u8x32, such as aarch64,
add an alternative implementation of 'dpdk_buffer_init_from_template'.

Change-Id: Ia7e8d0a5985fa5925e063ed6e890208c73e39933
Signed-off-by: Christophe Fontaine <christophe.fontaine@enea.com>
6 years agoL2BD/API:fix bd dump to ignore unknown bd_id 79/6679/4
Eyal Bari [Sun, 14 May 2017 07:38:39 +0000 (10:38 +0300)]
L2BD/API:fix bd dump to ignore unknown bd_id

Change-Id: I417dfeba902ca8c3a080773942d4d2ce4335a9c1
Signed-off-by: Eyal Bari <ebari@cisco.com>
6 years agomove to CSIT 170504 84/6684/3
Neale Ranns [Sun, 14 May 2017 19:54:19 +0000 (12:54 -0700)]
move to CSIT 170504

Change-Id: I8b636ff57b6e6c3f4cfd2d77d930524559046dd9
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agoFix vnet_interface_counters API definition 13/5413/4
Aloys Augustin [Fri, 17 Feb 2017 13:55:29 +0000 (14:55 +0100)]
Fix vnet_interface_counters API definition

The api specification had u8 as data type, which caused the python
binding to fail.
Fixes VPP-642

Change-Id: I9ba97959740d44c8f4a12db9356d0d1bcd709a73
Signed-off-by: Aloys Augustin <aloys.augustin@polytechnique.org>
Signed-off-by: Ole Troan <ot@cisco.com>
6 years agoFix FIB recursion loops via cover (VPP-842) 74/6674/2
Neale Ranns [Sat, 13 May 2017 12:52:58 +0000 (05:52 -0700)]
Fix FIB recursion loops via cover (VPP-842)

Change-Id: Ia91c3e8cb27b9e4c1cccefc0a4857dd9995450ab
Signed-off-by: Neale Ranns <nranns@cisco.com>
6 years agodpdk: revert dpdk 17.05 change which causes virtio issues 90/6690/1
Damjan Marion [Mon, 15 May 2017 10:32:15 +0000 (12:32 +0200)]
dpdk: revert dpdk 17.05 change which causes virtio issues

This patch is causing DPDK to provide bad MAC address
for legacy virtio interfaces.

Change-Id: I526cd35a38164ede80a8ab6decb9e0d1ebfad723
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoValidate ip6 interface fib tables early on 43/6643/3
Florin Coras [Wed, 10 May 2017 19:32:53 +0000 (12:32 -0700)]
Validate ip6 interface fib tables early on

This should avoid random crashes due to reception of packets (multicast
in particular) before ip6 addresses are configured on the interfaces.

Change-Id: Ibcf1a5a2ae2fa75f8b57da1b2f09f32c081210d7
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agodpdk: bump to dpdk 17.05 48/6648/3
Damjan Marion [Thu, 11 May 2017 12:55:43 +0000 (14:55 +0200)]
dpdk: bump to dpdk 17.05

Change-Id: I19744387859129c6b8dc104041af158bf5f1d988
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoHandle RST of TCP connections in SYN-RCVD state, VPP-822 44/6644/2
Florin Coras [Wed, 10 May 2017 19:29:14 +0000 (12:29 -0700)]
Handle RST of TCP connections in SYN-RCVD state, VPP-822

Change-Id: Ieb0c1e690d6ae082cfedb276252a31fab480e561
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agomake test: support coverage for out-of-tree plugins 47/6647/1
Klement Sekera [Thu, 11 May 2017 04:55:32 +0000 (06:55 +0200)]
make test: support coverage for out-of-tree plugins

Change-Id: Ibd7828b1e1c699630ff450122d8aa317b1c9da26
Signed-off-by: Klement Sekera <ksekera@cisco.com>
7 years agoAllow to override the build date 83/6583/3
Bernhard M. Wiedemann [Wed, 3 May 2017 13:15:15 +0000 (15:15 +0200)]
Allow to override the build date

using the SOURCE_DATE_EPOCH env var
to make vpp package builds reproducible.

See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

Change-Id: Iae0935c9bb4ccdfdb65600be543945a88f2e137f
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
7 years agovnet: introduce error state for sw interfaces 41/6641/3
Damjan Marion [Wed, 10 May 2017 18:09:31 +0000 (20:09 +0200)]
vnet: introduce error state for sw interfaces

Interfaces with error state are not allowed to go admin up

Change-Id: I09fc09a5b28130aead219dccbc2e0f30ea7414cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agocompletelly deprecate os_get_cpu_number, replace new occurences 42/6642/4
Damjan Marion [Wed, 10 May 2017 19:06:28 +0000 (21:06 +0200)]
completelly deprecate os_get_cpu_number, replace new occurences

Change-Id: I82c663bc0866c6c68ba354104b0bb059387f4b9d
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoMulti-thread enablement for the debug cli http server 40/6640/3
Dave Barach [Wed, 10 May 2017 17:34:04 +0000 (13:34 -0400)]
Multi-thread enablement for the debug cli http server

Change-Id: Iec1f739fe24c722d0db6c10cc81b5e8333067ea1
Signed-off-by: Dave Barach <dbarach@cisco.com>
7 years agodoxygen: Fix some paths 39/6639/2
Chris Luke [Wed, 10 May 2017 15:40:27 +0000 (11:40 -0400)]
doxygen: Fix some paths

- Add missing src dir.
- Exclude 'src/examples' from siphon processing so that example cli commands
  don't end up in user documentation.

Change-Id: I46a6ad759fa8220d305b007a9506956365fc79bd
Signed-off-by: Chris Luke <chrisy@flirble.org>
7 years agoL2BD/TEST:fix l2bd multiinstance test 34/6634/2
Eyal Bari [Wed, 10 May 2017 13:08:19 +0000 (16:08 +0300)]
L2BD/TEST:fix l2bd multiinstance test

Change-Id: If864182ec656cc6c6353be642e22910a4fc89870
Signed-off-by: Eyal Bari <ebari@cisco.com>
7 years agoAdd crc32c inline function, allows compilation on 32-bit systems 52/6452/6
Damjan Marion [Wed, 26 Apr 2017 11:05:05 +0000 (13:05 +0200)]
Add crc32c inline function, allows compilation on 32-bit systems

32-bit code still can use crc32c instructions, but it operates
on 32 registers

Change-Id: I9bb6b0b59635d6ea6a753584676ebcf59c8f6584
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agodpdk: refactor interface speed detection 27/6627/3
Damjan Marion [Tue, 9 May 2017 17:50:26 +0000 (19:50 +0200)]
dpdk: refactor interface speed detection

- Adds VirtualFucntionEthernet for VFs
- Enables MLX4 driver

Change-Id: I163300e68edbe033227f641bdfcfe5918cbe58cf
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoMake reproducible build possible 85/6585/3
Marco Varlese [Wed, 3 May 2017 15:37:46 +0000 (17:37 +0200)]
Make reproducible build possible

For downstream consumption is important to have a way to specify the date or
the user or the hostname to particular values so to have reproducible builds
and/or packages.

Change-Id: I134288662b6cfbbe26bba7d8bc6be8511b34360c
Signed-off-by: Marco Varlese <marco.varlese@suse.com>
7 years agodevice: Add callback for set interface rx-mode 28/6628/4
Steven [Tue, 9 May 2017 23:19:50 +0000 (16:19 -0700)]
device: Add callback for set interface rx-mode

- When the interface rx-mode is changed via CLI, the corresponding device
may want to know about it and to reset the driver. This patch is to add
the callback.

- In the function vnet_hw_interface_set_rx_mode, it appears it is missing
a line
  hw->rx_mode_by_queue[queue_id] = mode

because the function is checking if the new mode is the same as
hw->rx_mode_by_queue which is initialized to POLLING. So if the function is
called to change the mode to interrupt, it just returns without doing
anything. This is the check that I am talking about in the same function.

  if (hw->rx_mode_by_queue[queue_id] == mode)
    return 0;

Change-Id: Iaca2651c43e0ae3fda6fd8dc128e247b0851cc65
Signed-off-by: Steven <sluong@cisco.com>
7 years agoSNAT: move API code to separate file 35/6635/2
Matus Fabian [Wed, 10 May 2017 13:37:47 +0000 (06:37 -0700)]
SNAT: move API code to separate file

Move API source code from snat.c to snat_api.c

Change-Id: I1c4439eb5d2e3f43695ecc4d300eccd148105c15
Signed-off-by: Matus Fabian <matfabia@cisco.com>
7 years agovppinfra: optimize and simplify splat inline functions 25/6625/6
Damjan Marion [Tue, 9 May 2017 15:45:50 +0000 (17:45 +0200)]
vppinfra: optimize and simplify splat inline functions

Example for u32x4 case:
Old code generates 2 instructions:

vmovd  %edi,%xmm0
vpunpckldq %xmm0,%xmm0,%xmm0
vpunpcklqdq %xmm0,%xmm0,%xmm0

New code uses only one instruction:
mov    %edi,-0x4(%rsp)
vbroadcastss -0x4(%rsp),%xmm0

Change-Id: I989dc3025f5fe3f6c880972389ded11f31e2f3f6
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoImprove TCP option handling, VPP-757 29/6629/4
Florin Coras [Wed, 10 May 2017 01:54:52 +0000 (18:54 -0700)]
Improve TCP option handling, VPP-757

Change-Id: Ica634536387d1196366ec96c52770287fcab0768
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoBuiltin debug cli http server 18/6618/6
Dave Barach [Mon, 8 May 2017 23:15:03 +0000 (19:15 -0400)]
Builtin debug cli http server

Visit http://<vpp-ip>/show/interface or similar.

Change-Id: I076b4661cf19d1b94bb01efdadb5849446be915e
Signed-off-by: Dave Barach <dave@barachs.net>
7 years agoIgnore data in RST segments, VPP-723 20/6620/5
Florin Coras [Tue, 9 May 2017 07:52:37 +0000 (00:52 -0700)]
Ignore data in RST segments, VPP-723

Change-Id: I01650b3b10b79ec549be0d5eceb0e318c06fcb50
Signed-off-by: Florin Coras <fcoras@cisco.com>
7 years agoProduce vpp_papi*.egg for virtual environments 16/6616/2
Igor Mikhailov (imichail) [Mon, 8 May 2017 21:00:01 +0000 (14:00 -0700)]
Produce vpp_papi*.egg for virtual environments

Produce vpp_papi*.egg so that virtual environments (e.g. virtualenv)
could install vpp_papi inside them.

Change-Id: I9664d119a64f4968de44a7a430aec4879ed02b16
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
7 years agoGenerate test paths for lib and lib64 subdirectories 30/6630/1
Igor Mikhailov (imichail) [Wed, 10 May 2017 06:27:14 +0000 (23:27 -0700)]
Generate test paths for lib and lib64 subdirectories

wildcard produces empty paths when 'make test' is run
from a clean tree: install-<tag>-native directories
don't exist yet.

Change-Id: I3b3bbd86cf7eda18f2c698f85b834f82b1a19065
Signed-off-by: Igor Mikhailov (imichail) <imichail@cisco.com>
7 years agodpdk: refactor setup, start, stop code 18/6518/4
Damjan Marion [Fri, 28 Apr 2017 15:10:38 +0000 (17:10 +0200)]
dpdk: refactor setup, start, stop code

Change-Id: I0fec86914ec027383ff511b7092beac2363f55f7
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoFix remaining 32-bit compile issues 65/6465/10
Damjan Marion [Wed, 26 Apr 2017 13:32:12 +0000 (15:32 +0200)]
Fix remaining 32-bit compile issues

Change-Id: I9664214652229b663c3e3ba7406b4ede96bfb123
Signed-off-by: Damjan Marion <damarion@cisco.com>
7 years agoAPI support for IPsec tunnel interface creation 67/6567/3
Matthew Smith [Tue, 2 May 2017 21:20:41 +0000 (16:20 -0500)]
API support for IPsec tunnel interface creation

Change-Id: I8c9f886cb95e92adbe1c646844789ca0a6bb6140
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
7 years agoAdd missing format_ip6_address() functions to plugin_api. 17/6617/2
Jon Loeliger [Mon, 8 May 2017 21:53:44 +0000 (16:53 -0500)]
Add missing format_ip6_address() functions to plugin_api.

Specifically, the ACL plugin needed format_ip6_address()
and the ip46 variant as well.

Change-Id: Iec35b8acd4cab4bcbc73053dcca2ee91bd9c72cd
Signed-off-by: Jon Loeliger <jdl@netgate.com>
7 years agoAdd support for tcp/session buffer chains 13/6613/11
Florin Coras [Mon, 8 May 2017 02:12:02 +0000 (19:12 -0700)]
Add support for tcp/session buffer chains

Change-Id: I01c6e3dc3a1b2785df37bb66b19c4b5cbb8f3211
Signed-off-by: Florin Coras <fcoras@cisco.com>