*******************************************************************************
         Intel Snowfish Processor Enhanced ADK Release (E-ADK)
********************************************************************************

================================================================================
Table of Contents
================================================================================

1. Introduction
2. Dependencies
3. Build and Installation
4. Setting up and running the demo
 
================================================================================
1. Introduction
================================================================================
This ADK release is generated to build/run ADK in standalone mode 
so that needed tests could be completed at the customer site. As such, 
the code is not fully optimized. While the code may meet the performance 
numbers required for customer’s project, they should not be taken as the 
indication of ADK or SNR’s maximum capacity performance numbers.

================================================================================
2. Dependencies
================================================================================

Following environment, tools and SW packages are needed to build and run this Event Machine software on Intel Snowridge Communication processors.

Environment:
- Intel Snowridge (also referred to as Snowfish) Processor Simulator (ASE) for Linux
- x86-64 CPU hardware platform running Linux for building ( Make sure tcl-dev is installed)

Tools:
- Compilers: GCC 8.2.0 and GCC 9
- GNU Make

SW packages:
- Intel Snow Ridge RDK Release 2003

================================================================================
3. Build and Installation
================================================================================

1) Download and Install Intel Snowridge RDK (SNR RDK Release 2003). Install RDK as per RDK Installation Notes from RDK Readme

2) Untar the E-ADK package. Directory pdk_adk is created
   $ cd <INSTALL_DIR>
   $ tar -zxvf adk_source.2.0.11.09.standalone.snowridge_transportIP.tar.gz

3) Build RDK package as per RDK Build Instructions from RDK Readme (or use pre-built RDK if that was delivered).

6) Building: 
   $ Prerequisite: tcl (sudo apt install tcl-dev)
   $ cd <INSTALL_DIR>/pdk_adk
   $ export RDK_INSTALL=path-of-rdk-installation
   $ source ./set_env
   $ make 

================================================================================
4. Setting up and running the demo
===============================================================================

On one terminal:
•	cd <INSTALL_DIR>/pdk_adk
•	export RDK_INSTALL=<RDK installation dir>
•	source ./set_env
•	source ./load_drivers.sh
•	cd pdk
•	./pdk_exe -c 0x3f --base-virtaddr 0x7fff3e75000 -d librte_bus_vmbus.so

On another terminal:
•	cd <INSTALL_DIR>/pdk_adk
•	export RDK_INSTALL=<RDK installation dir>
•	source ./set_env
•	cd ./adk_source.snowfish_transportIP/adk_samples/adkTclCli
•	./adk_tcl.sh
•	Select option 1

Load traffic streams:

BP traffic file:
adk_source.snowfish_transportIP/adk_samples/adkTclCli/conf_files/streams/unifiedX-DUT_BP_streams_mutli_flow_multi_cores_ss_traffic_mix.str

BH traffic file:
adk_source.snowfish_transportIP/adk_samples/adkTclCli/conf_files/streams/unifiedX-DUT_BH_streams_mutli_flow_multi_cores_ss_traffic_mix.str

For ICMP Netd path:

Traffic file:
adk_source.snowfish_transportIP/adk_samples/adkTclCli/conf_files/streams/Plain_text_icmpv4_to_netdriver.str

On another terminal run the following commands:
 $ ifconfig br0 up
 $ ifconfig br0 9.1.1.1/24 
 $ ip neigh add 9.1.1.20 lladdr 00:00:01:00:05:01 dev br0
