samplevnf.git
6 years agoAdding Sample vCGNAPT config to run with multi-port pair 35/36135/3 v1.0.0
Deepak S [Fri, 16 Jun 2017 06:23:29 +0000 (23:23 -0700)]
Adding Sample vCGNAPT config to run with multi-port pair

JIRA: SAMPLEVNF-40
This patch adds sample vCGNAPT config for 1, 6, 10 port pair

Change-Id: I003e98b26e794d111af562232e8688f255a7d61a
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoAdding timer dyn timeout config in timer profile. 41/35741/2
Deepak S [Fri, 2 Jun 2017 06:55:53 +0000 (12:25 +0530)]
Adding timer dyn timeout config in timer profile.

This patch enabled dynamic tune of timer timeout
[PIPELINE2]
type = TIMER
core = 2
timer_dyn_timeout = 20 #-- new config to change dyn timer timeout
n_flows = 1048576

Change-Id: I614cf73a7fc1afd9050580286c9a968aacb619fa
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoSet rxq and txq to same value to enable to run UDP replay on single thread 15/35815/1
Deepak S [Tue, 6 Jun 2017 08:24:48 +0000 (08:24 +0000)]
Set rxq and txq to same value to enable to run UDP replay on single thread

Change-Id: Iee26005d5e90a7481f6e6fb3c7441a2011fe5596
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoEnable UDP_replay on OVS deployment 45/35745/1
Deepak S [Fri, 2 Jun 2017 07:08:02 +0000 (12:38 +0530)]
Enable UDP_replay on OVS deployment

Use ETHER_TYPE instead packet_type when hw-ip-check is disabled.

Change-Id: Iced93b78d9f4e58011dd051e88ddd312112e0cba
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoAdding UDP Replay VNF without arp support 39/35739/1
Deepak S [Fri, 2 Jun 2017 06:03:23 +0000 (11:33 +0530)]
Adding UDP Replay VNF without arp support

JIRA: SAMPLEVNF-8

This code adds support for UDP Replay which acts as a reflector of all the
UDP packets on the requested port.

Change-Id: I633e65a4964fab4cc46e2ed09c742dcc63ce6258
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoRevert "[SAMPLEVNF] Adding UDP Replay VNF" 37/35737/1
Deepak S [Thu, 1 Jun 2017 23:16:35 +0000 (04:46 +0530)]
Revert "[SAMPLEVNF] Adding UDP Replay VNF"

This reverts commit 1b0802cbf10ac4d8911f0916d4ba0b02010924c8.

Change-Id: Ic2bb69125d0d849b260475026a1088911d2d7109
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoRevert "[BUG]: Fix segfault while sending the packets back" 35/35735/1
Deepak S [Thu, 1 Jun 2017 23:16:10 +0000 (04:46 +0530)]
Revert "[BUG]: Fix segfault while sending the packets back"

This reverts commit b04a6e5dacc458f81097c9b8a172dcbf16d8fd50.

Change-Id: Icb9a4ddea607c9dd9324a413407c266e8f6106f0
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoCT: Perf optimization through prefetch and condition checks in CT 33/34433/3
Anand B Jyoti [Mon, 8 May 2017 05:34:07 +0000 (11:04 +0530)]
CT: Perf optimization through prefetch and condition checks in CT

JIRA: SAMPLEVNF-10

LLC miss is possible when the connection data structure is accessed
after retrieved from hash table entries for TCP/UDP connection.
CPI for rte_ct_udp_packet() is not good due to if/else condition checks.
This patch provide a prefetch instructions to pre-fetch the cnxn data entry
structure to avoid the LLC miss and also optimize the if/else condition check
to improve the CPI for rte_ct_udp_packet() function.

Change-Id: Ieaf70815c919ddbe1ff34921222eac030fb41756
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
6 years ago[BUG]: Fix segfault while sending the packets back 35/35635/1
Deepak S [Thu, 1 Jun 2017 08:04:42 +0000 (08:04 +0000)]
[BUG]: Fix segfault while sending the packets back

JIRA: SAMPLEVNF-18

This patch fixes segfault due to wrong use of portid while accessing
array

Change-Id: I1e8b57c27e7c26918bd61cb1d72dbe88ab269c98
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "[SAMPLEVNF] Adding support to handle more than 16 ports"
Deepak S [Thu, 1 Jun 2017 04:46:31 +0000 (04:46 +0000)]
Merge "[SAMPLEVNF] Adding support to handle more than 16 ports"

6 years ago[SAMPLEVNF] Adding support to handle more than 16 ports 71/35571/2
Deepak S [Wed, 31 May 2017 12:56:50 +0000 (12:56 +0000)]
[SAMPLEVNF] Adding support to handle more than 16 ports

This patch extends num_ports vnf can handle ports > 16 . This include
changes in the memory allocatiion and size of different paramters

Change-Id: Id8907327023ba863ad107bb874cfb60bd38daee5
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoMerge "acl_lib: remove unused dualstack code from acl library"
Deepak S [Wed, 31 May 2017 18:13:40 +0000 (18:13 +0000)]
Merge "acl_lib: remove unused dualstack code from acl library"

6 years agoMerge "vFW: remove unused dualstack support code"
Deepak S [Wed, 31 May 2017 18:13:35 +0000 (18:13 +0000)]
Merge "vFW: remove unused dualstack support code"

6 years agoMerge "vFW: Clear the pkt drop count for unsupported type in clearstats cmd"
Deepak S [Wed, 31 May 2017 18:11:54 +0000 (18:11 +0000)]
Merge "vFW: Clear the pkt drop count for unsupported type in clearstats cmd"

6 years agoIf port configuration fails. Try again after disabling TX OFFLOAD 39/35539/1
Deepak S [Sat, 13 May 2017 08:16:51 +0000 (10:16 +0200)]
If port configuration fails. Try again after disabling TX OFFLOAD

Change-Id: I5eaf64a0cac8747ba5ac79bfd036a77cee766e39
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years ago[SAMPLEVNF] Adding UDP Replay VNF 07/35407/3
Vishwesh M Rudramuni [Fri, 26 May 2017 05:41:15 +0000 (11:11 +0530)]
[SAMPLEVNF] Adding UDP Replay VNF

JIRA: SAMPLEVNF-8

This code adds support for UDP Replay which acts as a reflector of all the
UDP packets on the requested port.

Change-Id: If8330580f58c785736e578e815d15d983ce20209
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoAdding http proxy setup for non-intractive build 27/35027/1
Deepak S [Fri, 19 May 2017 06:00:31 +0000 (23:00 -0700)]
Adding http proxy setup for non-intractive build

Change-Id: I9a3137f60b83c88b16027a9e6c404ccc3673b820
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
6 years agoAdding support to build the vnfs without user intervention 23/35023/2
Deepak S [Thu, 18 May 2017 22:00:13 +0000 (03:30 +0530)]
Adding support to build the vnfs without user intervention

./tools/vnf_build.sh --silient

Change-Id: I50ecdc263a732d1ed823202107e49ffaa739e9b4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoChange PMD link down to warning instead of panic error 67/34667/1
Deepak S [Fri, 12 May 2017 10:45:44 +0000 (16:15 +0530)]
Change PMD link down to warning instead of panic error

On SRIOV/OVS, NIC interface link always be UP. But to set the IP, we
need to bring down the interface. This patch allows the program to
continue after printing warning.

Change-Id: I79212f4d71501af5f3065143e067a22855a5fde6
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoacl_lib: remove unused dualstack code from acl library 63/34663/1
Anand B Jyoti [Fri, 12 May 2017 03:07:29 +0000 (08:37 +0530)]
acl_lib: remove unused dualstack code from acl library

JIRA: SAMPLEVNF-14

The simultaneous IPV4 and IPV6 traffic is not required/supported.
The IPv4 and IPv6 separation is done to avoid multiple checks between
v4 and v6 and to improve the throughput performance.

Remove this in-used/unsupported code from the acl library code.

Change-Id: I4b5c562e541b1616279f0332d8b837c44b7e865d
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
7 years agovFW: remove unused dualstack support code 61/34661/1
Anand B Jyoti [Fri, 12 May 2017 03:00:54 +0000 (08:30 +0530)]
vFW: remove unused dualstack support code

JIRA: SAMPLEVNF-14

The simultaneous IPV4 and IPV6 traffic is not required/supported.
The IPv4 and IPv6 separation is done to avoid multiple checks
between v4 and v6 and to improve the throughput performance.

This patch removes this unused/unsupported code from the vFW.

Change-Id: Iefea5a6ed8c9454be9807eb1796908aec7bfc199
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
7 years agovFW: Clear the pkt drop count for unsupported type in clearstats cmd 59/34659/1
Anand B Jyoti [Fri, 12 May 2017 02:29:32 +0000 (07:59 +0530)]
vFW: Clear the pkt drop count for unsupported type in clearstats cmd

JIRA: SAMPLEVNF-13

The packets drop counter of unsupported type was not cleared during
clearstats command of the vFW.

This patch adds the fix to clear the pkt_drop_unsupported_type
at the clearstats cmd.

Change-Id: I07d2c85a288efbc5e1fa6cee84c2ffe12e9673f4
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
7 years agoAllow enable/disable of checksum for cgnapt 83/34583/3
Deepak S [Thu, 11 May 2017 05:59:46 +0000 (11:29 +0530)]
Allow enable/disable of checksum for cgnapt

JIRA: SAMPLEVNF-11

Enable Checksum
   in makefile add CHECKSUM_REQ
   --> hw_checksum_req=1 in config for hw_checksum
   --> hw_checksum_req=0 in config for sw_checksum

disable checksum
   in makefile comment CHECKSUM_REQ

Change-Id: I5ebcfe845082ea49acaa13bc963fc07b92b90650
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoDefault enable only NAPT features 81/34581/2
Deepak S [Thu, 11 May 2017 05:46:08 +0000 (11:16 +0530)]
Default enable only NAPT features

JIRA: SAMPLEVNF-11

By Default CGNAPT will have only NAPT feature. To enable other advance
feature, Uncomment same in Makefile

  - PCP
  - SIP_ALG
  - CT_CGNAT
  - FTP_ALG

Change-Id: I8602726e6db8a899a94028f7bc16d6e7339438b9
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoBUGFix: Allow the vCGNAPT compile without FTP/SIP functionality 17/33617/1
Deepak S [Thu, 20 Apr 2017 22:40:36 +0000 (04:10 +0530)]
BUGFix: Allow the vCGNAPT compile without FTP/SIP functionality

JIRA: SAMPLEVNF-7

Change-Id: Ia5d0729cc3959b9b4cf1e0cb356758adf83e5d83
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoBugFix: Correct the path while checking for dpdk installation folder. 15/33615/1
Deepak S [Thu, 20 Apr 2017 20:32:02 +0000 (02:02 +0530)]
BugFix: Correct the path while checking for dpdk installation folder.

JIRA: SAMPLEVNF-6

Change-Id: Ifa4fcee4cca3a62873b16a2009de93b7c138b179
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agovFW: Adding Virtual Firewall VNF 97/33497/7
Anand B Jyoti [Tue, 18 Apr 2017 08:06:02 +0000 (13:36 +0530)]
vFW: Adding Virtual Firewall VNF

JIRA: SAMPLEVNF-4

vFW supports following features:
 - Basic packet filtering (malformed packets, IP fragments)
 - Connection tracking for TCP and UDP
 - Access Control List for rule based policy enforcement
 - SYN-flood protection via Synproxy* for TCP
 - UDP, TCP and ICMP protocol pass-through
 - CLI based enable/disable connection tracking, synproxy,
   basic packet filtering
 - Hardware and Software Load Balancing
 - L2L3 stack support for ARP/ICMP handling
 - Multithread support
 - Multiple physical port support

Change-Id: I96d28858488ed8764370d161975bc1e0557c8b20
Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
[Push patch to gerrit]
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agovACL VNF initial check-in 65/33465/7
Bindya Narayan [Tue, 18 Apr 2017 06:43:10 +0000 (12:13 +0530)]
vACL VNF initial check-in

JIRA: SAMPLEVNF-2

Features include:
 - CLI based Run-time rule configuration.
   (Add, Delete, List, Display, Clear, Modify)
 - Ipv4 and ipv6 standard 5 tuple packet Selector support.
 - Multithread support
 - Multiple physical port support

Change-Id: Ie266be23cd2d81f6d01df508ba44bd0998be13b3
Signed-off-by: Bindya Narayan <bindya.narayan@intel.com>
[Push patch to gerrit]
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agovCGNAPT VNF initial check-in 95/33495/6
Deepak S [Tue, 18 Apr 2017 06:03:43 +0000 (23:03 -0700)]
vCGNAPT VNF initial check-in

JIRA: SAMPLEVNF-5

The vCGNAPT implementation contains following features:
• Static and dynamic Network address translation.
• Static and dynamic Network address and port translation
• ARP (request, response, gratuitous)
• ICMP (terminal echo, echo response, pass-through)
• ICMPv6 and ND
• UDP, TCP and ICMP protocol pass-through
• Multithread support and Multiple physical port support
• Limiting max ports per client
• Limiting max clients per public IP address
• Live Session tracking to NAT flow
• NAT64 – connectivity between IPv6 access network to IPv4 data
• PCP - Port Control protocol
• SIP functionality
• FTP functionality

Change-Id: I5ebb44ae60e32dd6da5e793efd91a6831a4d30a7
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAdding script to auto build VNFs 93/33493/5
Deepak S [Tue, 18 Apr 2017 06:02:53 +0000 (23:02 -0700)]
Adding script to auto build VNFs

Change-Id: I5af3301dceacb57499b92c543b912ed21f8b253d
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agocommon: Adding common library for sample vnf 91/33491/1
Vishwesh M Rudramuni [Tue, 18 Apr 2017 14:11:40 +0000 (19:41 +0530)]
common: Adding common library for sample vnf

JIRA: SAMPLEVNF-3

This patch adds common libraries required as part of the
sample vnf.

This includes the following libraries

 1. ACL library
 2. SIP
 3. FTP
 4. Connection tracker
 5. L2l3 stack
    - Interface Manager
    - ARP & ICMPv4
    - ND & ICMPv6
and other common libraries needed for ip pipeline framework

Change-Id: I117690b6b63fbcd76974cd7274518484e60980ab
Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
[Push patch to gerrit]
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
7 years agoAdding INFO and LICENSE for review 91/32091/2
agardner [Tue, 28 Mar 2017 19:46:29 +0000 (15:46 -0400)]
Adding INFO and LICENSE for review

Change-Id: If7ea70d202cda197db9f4913148e6a0f2e94e3bb
Signed-off-by: agardner <agardner@linuxfoundation.org>
7 years agoInitial empty repository
Aric Gardner [Tue, 28 Mar 2017 19:46:22 +0000 (19:46 +0000)]
Initial empty repository