Commit Graph

45 Commits

Author SHA1 Message Date
Shesha Sreenivasamurthy cfe0724b22 Use per-thread vlib_main
Change-Id: I8bee9f6661878a74a0375944ac01c9cb3a0acfbf
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
2016-02-02 18:24:42 +00:00
Kevin Paul Herbert b66dcfbf6c p1.c: Add symbols useful to IP protocol modules
Add some symbols which are useful for clients of the IP layer.

Change-Id: I26599a67bb9f89c883ac4ea6e630111dfac5e2c5
Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-02-01 23:53:25 +00:00
Damjan Marion aed4d03268 remove igb_uio static pci id table patch, use new_id for all NICs
Change-Id: I1db64d62c19c28b50f58f9d0b009e3e89e331f71
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-02-01 23:47:41 +00:00
Keith Burns (alagalah) a2f0d74c43 Changed key of NSH VXLAN tunnel.
- simple patch before extending CLI for next encap tunnel lookup

Change-Id: I56060185599252a1ae83cc162963b5fd5bc1b324
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
2016-02-01 14:14:43 -08:00
Kevin Paul Herbert ec21e13a13 Remove unused tcp.h
This was left out of 8f9e7d43d8
inadvertently. Remove it now.

Change-Id: I79625aeba400ccfdcfd972f454abd043c2537960
Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-01-28 13:15:29 -08:00
Damjan Marion 2068e983dd Enable Chelsio T5 support
Change-Id: I4bb6ac36a8bc585677448f4b22bd1299630f95de
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-27 23:14:55 +01:00
Kevin Paul Herbert 8f9e7d43d8 Remove vestigal TCP implementation
Eliot's TCP was never completed. Remove it.

Change-Id: I8456ed02b55f5b3f0b93547533f7467dd2229c07
Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-01-27 20:59:33 +01:00
Kevin Paul Herbert dac3fd44ff vnet: Add field for transmit time
Add a field in the buffer header for transmit time. High-level protocols
need a consistent way to do this.

Change-Id: Ifff60ee5e32eed7aa6f6ae8e6fb1dd9d7870e9ee
Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-01-27 20:54:19 +01:00
Kevin Paul Herbert cf121e3d51 ip_checksum.c: Fixes for ip_csum_and_memcpy() alignment issues
Add explicit support for incremental operations which may be on
byte boundaries and misaligned. Since this is a memcpy() like function,
it needs to be robust in all byte operations.

Add code to perform the checksum 16 bits at a time when the destination
buffer pointer is not naturally aligned. The previous code did support
misaligned source data (via clib_mem_unaligned()), but didn't properly
align the destination pointer.

It would be possible to further optimize this by adding an optimzed
move operation where the source is aligned on natural boundaries.
Look at this as we optimize this function. At this point, I am
concentrating on correctness.

Change-Id: I2b0fd4795ec5c0ca294a733159c7355b54177690
Signed-off-by: Kevin Paul Herbert <kph@cisco.com>
2016-01-27 18:58:26 +00:00
Damjan Marion f46b7e6d78 Fix l2output error-drop next node index
Change-Id: I8a79f683350b77bd56b44e37a099293033aadd15
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-27 18:09:05 +00:00
Dave Barach c5d4dc7f8a Set the ssvm_ethernet interface pid. Otherwise, the recursive lock
check breaks in a horrible way.

Change-Id: I5c2e69f89152a3f073e678354763086ac7bb7610
Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-26 15:36:54 -05:00
Ole Troan 1f8aeb9027 MAP: Ensure fragmented packets get from ip4_map to ip4_map_reass.
Change-Id: If253be8ca173070fb69ce2e43159a68bcfba5d08
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-25 16:29:32 +02:00
Ole Troan 0d4ffcd0ef MAP: Fix handling of jumbo frames.
Change-Id: Iec59a766af6955e547f2355495204b92aa42bea7
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-25 14:05:09 +00:00
Dave Barach 61efa140b1 aarch64 CPU arch / ThunderX platform initial support
Change-Id: Ia2edd3cee2c25c26c7c47a9023744b97226434c7
Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-22 08:23:27 -05:00
Dave Barach bfdedbd5a3 PowerPC64-be arch support. Qemu ("qppc") platform support.
Change-Id: Ib0a05f9d1b08bacef09f6d7c101391737031ee0d
Signed-off-by: Dave Barach <dave@barachs.net>
2016-01-21 12:33:07 +00:00
Damjan Marion 08ff7e00bf Rename vpe binary name to avoid collision with latex
Change-Id: I34a46b9ebbc0e36486fbef528b34ea1c3be2e8be
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-20 16:33:01 +01:00
John Lo 2d34374f7d Enhance and fix packet trace for IP forwarding as follows:
1. Add fib index to IP6 forwarding trace.
2. Display adjacency index in IP forwarding trace.
3. Fix adjacency display for L3 to L2 forwarding such as
   BVI and VXLAN tunnel decap.
4. Setup VXLAN tunnel fib index properly for packet trace.

Change-Id: I261fea5abf51e2550d24cdcee53887be2fdd08de
Signed-off-by: John Lo <loj@cisco.com>
2016-01-19 17:27:17 -05:00
Damjan Marion 7bdedad3bf Temporary remove inlines to unbreak compilation with GCC 5
Change-Id: Ie1f85f61560eb5824064df27a6fbddb34e4bb5c9
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-18 14:33:58 +01:00
Ole Troan 36de03819f MAP: Updated rules generation script.
Added simple reflection health checker.

Change-Id: I84472d334fcd243747f66bd8bd6aa5bc65d2e8f5
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-17 19:00:46 +01:00
Shesha Sreenivasamurthy 49be7f0b90 hw0 used without initialization in when DPDK is undefined
Change-Id: I0d044669dbd57c9a25a4d917c0e3ab8fda5808aa
Signed-off-by: Shesha Sreenivasamurthy <shesha@cisco.com>
2016-01-14 14:12:26 -08:00
Damjan Marion b1ee7bde52 Merge "Avoid crash in vhost-user driver when running multithreaded" 2016-01-14 18:48:26 +00:00
Ole Troan 9fb87553be Dual loop decrement TTL.
Outer fragmentation.
ICMP PMTUD.
Add DF ignore knob.

Change-Id: Icfd7b5c5d9629db3b8130ba15dc6c9a5e709d23b
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-14 10:01:03 +00:00
Ole Troan 92eade1be5 Added ICMP4 error node.
Change-Id: I911c1c5a57f0513886fa2ee3422ebea069403cb9
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-14 00:25:51 +01:00
Damjan Marion 920ecc2e1f Avoid crash in vhost-user driver when running multithreaded
Change-Id: Ib54575453fd26ba1a7256e9d583c8f8532613ebc
Signed-off-by: Carsten Koester <ckoester@cisco.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
2016-01-12 18:38:11 +01:00
Ole Troan cda9482258 - ICMP6: Add generic ICMP6 error node. Caller sets code/type fields.
- MAP: Added knob to send unreachable ICMP6 on unmatched binding.

Change-Id: I314547cc1157d8a73887e7518ebfe3e68d331650
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-07 20:17:14 +01:00
Ole Troan 366ac6ecde MAP: Decrement TTL of payload IPv4 packet.
MAP: Disable direct adjacency domain lookup for decap until IPv4 SA security check is fixed.

Change-Id: If85ea73629e46cb09757fe842d79507cf54e37f3
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-06 12:40:28 +01:00
Ole Troan a5d2c70f41 Fix dual loop >= 4. Fix format specified for printing u64 counter.
Change-Id: I314837f6a3482264fc200493a392e744aa1a21c7
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-05 21:26:17 +01:00
Ole Troan 92be0df475 Clean up script to generate LW46 bindings / MAP-E rules.
Change-Id: I3a3949e728f4e4875efddd4f02a55746c998a5ed
Signed-off-by: Ole Troan <ot@cisco.com>
2016-01-05 20:05:52 +01:00
Damjan Marion 2c29d75021 Fix warnings/errors reported by clang
Change-Id: Ifb2de64347526e3218e22067452f249ff878fd32
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-18 13:31:56 +01:00
Dave Wallace 60231f35fa Add vpe-api message to get vxlan tunnel details.
Change-Id: I3bfb84dfcb08c6ff5cb473f3ce05b91b222182a1
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
2015-12-17 21:47:54 -05:00
Damjan Marion 308caf11e7 Fix warnings in policer code
Change-Id: Idc6e67ecc6f1b169a63a9d6c962c716a0de32acc
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-16 19:46:28 +01:00
Damjan Marion dbbf1db701 Fix warnings in MAP-T code
Change-Id: If211b8b53b462d971eb683305921418224d635e8
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-16 19:46:28 +01:00
Damjan Marion c4bec39c90 Fix warnings in CNAT code
Change-Id: Iabfe38c187b67998b96fbb68f7fc2f1bfe581dfd
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-16 19:46:22 +01:00
Damjan Marion db2c6c6eee Don't send more than one mapping req in l2output node
Change-Id: I4205613818d664abb94b62a33e1353b87d5b1c7d
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-16 19:32:05 +01:00
Damjan Marion bce6b6a6bf Introduce support for DPDK 2.2
Change-Id: Id2c7c4a949363a448a6715463dd81f701f046b93
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-16 10:01:02 +01:00
Dave Barach 7210e9470e Remove autotools generated products
Change-Id: I7f23b8b8e5136cb56768bac3a7473e6df5ee4993
Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-15 19:06:39 -05:00
Dave Wallace 317be03492 Merge "replacing all vec_sort() invocations to vec_sort_with_function()" 2015-12-15 13:22:37 +00:00
Matus Fabian d2dc3df90d replacing all vec_sort() invocations to vec_sort_with_function()
Change-Id: I05895827ed52be292112484cee7d0a2591b67335
Signed-off-by: Matus Fabian <matfabia@cisco.com>
2015-12-15 00:09:46 +01:00
Damjan Marion 539cff0356 Fix vhost-user input interface handling
Change-Id: I2d4b819d959fa2ab0a2eebccb1d574bc5e1a6a6d
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-14 23:16:17 +01:00
Dave Barach f9bd620dc5 Warnings be gone
Change-Id: Id1dcb9d50c3cc516bd2f74bb815eab1c7c55cdb3
Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-14 13:22:32 -05:00
Ed Warnicke 64f98e91b6 Merge "Move rpc handler where it belongs, related cleanup" 2015-12-14 17:36:44 +00:00
Dave Barach 4e281a48e2 Move rpc handler where it belongs, related cleanup
Change-Id: I393df100558a85fe676f4a4c8c9b546fa549ecc9
Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-14 11:16:02 -05:00
Damjan Marion 99d8c76a59 Remove inline from definition of bd_validate()
Change-Id: Id71c3903e19da9bbdbec9dd0af5aed112135c60b
Signed-off-by: Damjan Marion <damarion@cisco.com>
2015-12-14 15:01:56 +01:00
Dave Barach 59842a844d Clear one-time test key, add missing cast in big-endian l2 fib key computation
Change-Id: I014fdd3cc174f787ed00af8e3861fb40585522a1
Signed-off-by: Dave Barach <dave@barachs.net>
2015-12-12 10:43:44 -05:00
Ed Warnicke cb9cadad57 Initial commit of vpp code.
Change-Id: Ib246f1fbfce93274020ee93ce461e3d8bd8b9f17
Signed-off-by: Ed Warnicke <eaw@cisco.com>
2015-12-08 15:47:27 -07:00