summaryrefslogtreecommitdiffstats
path: root/common
AgeCommit message (Collapse)AuthorFilesLines
2017-10-12arp: Config parameters longer than PIPELINE_MAX_ARGS chars ignoredAnand B Jyoti1-5/+0
JIRA: SAMPLEVNF-86 Due to this KW fix the arp pipeline is rejecting the commands greater than PIPELINE_MAX_ARGS size. This is seen in arp_route_tbl which can is becoming bigger in case of multi port setup. This patch undo the KW fix which is causing issue with longer parameters under ARPICMP pipeline. Change-Id: I96ba3882b5fecc6ac2f7b75f11a63083b847bba5 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-10-06common code: KW fixes for common codeVishwesh M Rudramuni9-123/+208
This patch fixes KW issues seen with the common code. Change-Id: I4f90369152345ea2ea9316b04ac946c0c69fd7d1 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-10-03l2l3_stack: fixing the arp_route_tbl/nd_route_tblVishwesh M Rudramuni1-65/+86
This patch adds the dest ip back into the parsing logic so that legacy usage is maintained intact. Change-Id: I1e479064d7b324d871d3d5f2c166de60165c3495 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-10-03common: arp_route_tbl entry is not workingAnand B Jyoti1-0/+2
JIRA: SAMPLEVNF-80 The arp_route_tbl entry was not getting effected as the vnf_gateway flag was not set after adding entry to routing table. This patch fixes the issue. Change-Id: Id3b1b14b698dea5e2beea7f3e90e8622896b5c5f Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-09-27REST_API: rest api client implementationVishwesh M Rudramuni9-14/+2530
JIRA: SAMPLEVNF-78 This patch implements rest api's for VNF clients. This comprises of * vnf api's for common functionality * vnf api's for CGNAPT * vnf api's for VFW Change-Id: I56d22c64bf3ee5b0a2e536da8169ac7583499041 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-09-27common: Changes to common code for gateway supportAnand B Jyoti5-396/+283
JIRA: SAMPLEVNF-58 Common code changes for gateway packet forwarding. Change-Id: Ie002c94b8febab9c0923e1bb261e5ea931cd4712 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-09-27gateway: Created common code for routing in gatewayAnand B Jyoti2-0/+322
JIRA: SAMPLEVNF-58 Adding the common code for routing functionality in gateway config. Change-Id: I2a2f085a3555db52c8aff87f1bab1b00d11481ea Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-08-14Moving printf under cgnapt_dbg_printDeepak S1-1/+2
JIRA: SAMPLEVNF-71 Change-Id: Ibcd70008e1657eaa0b2f95aac319483490c290aa Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2017-07-28vnf_common: Correcting the max number of ports supportedAnand B Jyoti1-1/+1
JIRA: SAMPLEVNF-69 Causing memory corruption due to wrong value. Correcting to 64 from 16. Change-Id: I0a6634398fd6f0f1e56aab63c88a48c97586d9d4 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-07-24[common] fixing compiler warningsVishwesh M Rudramuni2-7/+13
patch fixes some compiler warnings Change-Id: If1f96b23243d556c69ebd390a4fd3313bc50bb57 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-07-21TXRX: Initialize the debug flag to disable by defaultAnand B Jyoti1-1/+1
JIRA: SAMPLEVNF-66 The un-initialized global variable some time floods with debug prints. This patch inializes the variable to disable debug prints by default. Change-Id: I207a7dd1e85c19d3c10e935321b2fe39a46a5f59 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-07-21[common] Adding route entry command to cmdlineVishwesh M Rudramuni1-0/+145
JIRA: SAMPLEVNF-65 This patch adds routeadd command to cmdline for ipv4 & ipv6 Change-Id: I452b414c1e42b4de74eaea06339db83a0f20e7d8 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-07-18[l2l3 stack] implements new nd state machine & nd bufferingVishwesh M Rudramuni12-760/+748
JIRA: SAMPLEVNF-32 This patch implements ~New nd state machine implementing new states like INCOMPLETE, COMPLETE, PROBE, STALE. ~Implementing nd buffering, when nd is unresolved. ~Integratig the new changes with vCGNAPT ~Integrating the new changes with vACL ~Integrating the new changes with vFW. ~Adding locks to synchronize against multiple VNF threads Change-Id: Iaee4f4599ca3016ebb50ee2d9133fd8c39c5cd04 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-07-14[l2l3 stack] implements new arp state machine & arp bufferingVishwesh M Rudramuni10-2999/+684
JIRA: SAMPLEVNF-23 This patch implements ~New arp state machine implementing new states like INCOMPLETE, COMPLETE, PROBE, STALE. ~removing unwanted code in arpicmp pipeline ~Implementing arp buffering, when arp is unresolved. ~Integratig the new changes with vCGNAPT ~Integrating the new changes with vACL ~Integrating the new changes with vFW. Change-Id: If467ec035bc8de58463ea50d9e603a97f168c1a2 Signed-off-by: Vishwesh M Rudramuni <vishwesh.m.rudramuni@intel.com>
2017-06-30l2l3_stack: Remove the build folder from l2l3_stackAnand B Jyoti3-564/+0
JIRA: SAMPLEVNF-47 The intermediate files and build directory will be regenerated at build time. These files/folder are not required. Change-Id: Iabf50c8dfcf80d9d6f4db0fca9a5a84e3fc6447a Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-06-27Merge "conntrack: timer reset in reply traffic causes performance impact"Deepak S1-1/+4
2017-06-23conntrack: timer reset in reply traffic causes performance impactAnand B Jyoti1-1/+4
JIRA: SAMPLEVNF-44 The UDP connection timer was getting reset for every packets with reply traffic due to connection state check. This patch avoids resetting the timer instead uses the expected timeout to reset avoiding frequent timer reset for every packet. Change-Id: I6b5aac62bb709f403aeacee75f52d099b2d2397f Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-06-22conntrack: Fix to avoid duplicate connections in initial burstAnand B Jyoti1-13/+2
JIRA: SAMPLEVNF-43 Before connection setup, if there are multiple packets in the burst and are belongs to same connection, it was adding new connection for the same 5 tuple connection, leading to multiple connections in the CT. It was causing more number of active connections than possible. Change-Id: I15c90e7feb465d96a9429ea6fedcb09fad9482e6 Signed-off-by: Anand B Jyoti <anand.b.jyoti@intel.com>
2017-06-15Adding Sample vCGNAPT config to run with multi-port pairv1.0.0Deepak S1-250740/+0
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>
2017-06-01CT: Perf optimization through prefetch and condition checks in CTAnand B Jyoti2-12/+43
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>
2017-06-01Merge "[SAMPLEVNF] Adding support to handle more than 16 ports"Deepak S7-17/+250853
2017-06-01[SAMPLEVNF] Adding support to handle more than 16 portsDeepak S7-17/+250853
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>
2017-05-31Merge "acl_lib: remove unused dualstack code from acl library"Deepak S2-379/+0
2017-05-12Change PMD link down to warning instead of panic errorDeepak S1-1/+1
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>
2017-05-12acl_lib: remove unused dualstack code from acl libraryAnand B Jyoti2-379/+0
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>
2017-04-21BUGFix: Allow the vCGNAPT compile without FTP/SIP functionalityDeepak S1-1/+4
JIRA: SAMPLEVNF-7 Change-Id: Ia5d0729cc3959b9b4cf1e0cb356758adf83e5d83 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
2017-04-18common: Adding common library for sample vnfVishwesh M Rudramuni78-0/+42324
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>