Commit 390ef402 authored by Shah Rinku's avatar Shah Rinku

Update README.md

parent af8d2850
......@@ -6,23 +6,30 @@ The material in "documentation" folder provides details on code changes required
### Configure and compile mTCP
1. Download and configure DPDK-19.11.8 using Alternative-2, as discussed in DPDK README
2. Setup the MTCP-DPDK environment; this involves integration of DPDK with mTCP
a. $ export RTE_SDK=<absolute-path-to-dpdk-stable-19.11.8>
b. $ export RTE_TARGET=arm64-bluefield-linuxapp-gcc //For Bluefield smartNIC OR
a. $ export RTE_SDK=\<absolute-path-to-dpdk-stable-19.11.8\>
b. $ export RTE_TARGET=arm64-bluefield-linuxapp-gcc //For Bluefield smartNIC OR
$ export RTE_TARGET=x86_64-native-linuxapp-gcc //For Host
c. Configure mTCP with our DPDK version
.../mtcp-devel$ ./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET CFLAGS="-DMAX_CPUS=<num_host/nic_cpus>"
// Use --disable-hwcsum when working in virtualized environment
// If there an error: “configure: error: Could not find gmp.h”; $ sudo apt install libgmp-dev
.../mtcp-devel$ ./configure --with-dpdk-lib=$RTE_SDK/$RTE_TARGET CFLAGS="-DMAX_CPUS=<num_host/nic_cpus>"
// Use --disable-hwcsum when working in virtualized environment
// If there an error: “configure: error: Could not find gmp.h”; $ sudo apt install libgmp-dev
d. Integrate mTCP with our DPDK version
<path-to-mtcp-devel>$ sudo ./setup_mtcp_dpdk_env.sh <absolute-path-to-dpdk-stable-19.11.8>
<path-to-mtcp-devel>$ sudo ./setup_mtcp_dpdk_env.sh \<absolute-path-to-dpdk-stable-19.11.8\>
3. Compile mTCP
.../mtcp-devel$ make -j
4. To revert back mTCP NIC changes
<path-to-mtcp-devel>$ ./setup_linux_env.sh <path to $RTE_SDK>
<path-to-mtcp-devel>$ ./setup_linux_env.sh \<path to $RTE_SDK\>
### Configuration for executing mTCP sample application "HTTP server"
1. Configure static ARP entries
......@@ -68,14 +75,15 @@ The material in "documentation" folder provides details on code changes required
### Execute mTCP sample application "HTTP server"
1. Configure the RTE vars
$ export RTE_SDK=<absolute-path-to-dpdk-stable-19.11.8>
$ export RTE_SDK = \<absolute-path-to-dpdk-stable-19.11.8\>
$ export RTE_TARGET=<target>
$ export RTE_TARGET = \<target\>
2. For mTCP based HTTP server
a. Create a directory where files that are requested for transfer are stored
b. Run the HTTP server
.../mtcp-devel/apps/example$ sudo ./epserver -p <absolute-path-to-www-dir> -f epserver.conf [-N <num-cores>]
.../mtcp-devel/apps/example$ sudo ./epserver -p \<absolute-path-to-www-dir\> -f epserver.conf [-N \<num-cores\>]
Example:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment