11.
ใ์ ๋ฏธํ ํฌ11ใ์ ๋ฏธํ ํฌ DPDK
๏ง The EAL options are as follows
2.2 The EAL options are as follows
$ example โc 0x5 โn 4 โฆ
0 1 0 1
0123
18.
ใ์ ๋ฏธํ ํฌ18ใ์ ๋ฏธํ ํฌ DPDK
๏ง Compilation of the Intel DPDK
- Required Tools
โข GNU make
โข coreutils : cmp, sed, grep, arch
โข gcc(version 4.5.x ์ด์)
โข libc headers(glibc-devel.i686 / libc6-dev-i386; glibc-devel.x86_64)
โข Linux kernel headers or sources required to build kernel modules
โข Additional packages required for 32-bit compilation on 64-bit systems are:
glibc.i686, libgcc.i686, libstdc++.i686 and glibc-devel.i686
โข Python(version 2.6 or 2.7)
- Optional Tools
โข C++ Compiler(icc)
โข libpcap headers and libraries to compile and use the libpcap-based poll-mode driver
This driver is disabled by default and can be enabled by setting
CONFIG_RTE_LIBRTE_PMD_PCAP=Y in the build time config file
5.1 DPDK ๊ฐ๋ฐ ํ๊ฒฝ
19.
ใ์ ๋ฏธํ ํฌ19ใ์ ๋ฏธํ ํฌ DPDK
๏ง DPDK source directory
$ unzip DPDK-<version>.zip
$ cd DPDK-<version>
๏ง DPDK is composed of several directories :
- lib : Source code of Intel DPDK libraries
- app : Source code of Intel DPDK applications
- examples : Source code of Intel DPDK application examples
๏ง To install and make targets
$ make install T=x86_64-default-linuxapp-gcc
๏ง To prepare a target without building it
$ make config T=x86_64-default-linuxapp-gcc
5.2 DPDK ๋น๋
25.
ใ์ ๋ฏธํ ํฌ25ใ์ ๋ฏธํ ํฌ DPDK
๏ง When compiling an application in the Linux* environment on the Intel DPDK, the following
variables must be exported :
- RTE_SDK โ Points to the Intel DPDK installation directory
$ export RTE_SDK=/home/ymtech/dpdk/DPDK-1.6.0
- RTE_TARGET โ Points to the Intel DPDK target environment directory
$ export RTE_TARGET=x86_64-default-linuxapp-gcc
๏ง Sample โ helloworld
- helloworld ์์น๋ก ์ด๋
7. Compiling a Sample Application
26.
ใ์ ๋ฏธํ ํฌ26ใ์ ๋ฏธํ ํฌ DPDK
๏ง Sample โ helloworld
$ ls
$ cd build && ls -al
7. Compiling a Sample Application
Be the first to comment