No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • C 74.1%
  • C++ 14.5%
  • Python 7.9%
  • CMake 2.2%
  • Shell 1.3%
Find a file
2024-11-25 18:30:06 +08:00
app fix pthread_create ret check 2024-08-06 14:07:47 +08:00
cmake Remove the rpm package dependency of wireshark 2024-11-14 10:56:58 +08:00
conf fix debuginfo missing. 2024-01-03 09:35:34 +00:00
docker 适配DPDK-20.11.1。 2021-04-14 14:31:03 +08:00
examples Modify the l2fw-nf parameters 2024-08-30 02:58:14 +00:00
include increase bpf expr len to 256 char 2024-10-18 14:33:40 +08:00
infra Upload aarch64 package 2024-11-06 08:56:10 +00:00
lib 整理目录结构 2015-06-03 16:40:28 +08:00
pag build DPDK as a support library. 2023-12-27 04:05:09 +00:00
service 🎈 perf: Optimize error handling for load balancer node. 2024-10-24 06:33:02 +00:00
support aarch64 version, allows compiling the debug version of dpdk 2024-11-25 18:30:06 +08:00
test Add aarch64 build to CI 2024-09-05 09:46:09 +00:00
tools 🐞 fix: Fix issue where Marsio fails to start when deployed independently using RPM. 2024-08-12 06:23:04 +00:00
tunnat fix pthread_create ret check 2024-08-06 14:07:47 +08:00
.clang-format Feature mock api by cmocka 2024-07-15 09:48:50 +00:00
.editorconfig 合并中心测试发现的问题,主要包括VXLAN主动发包格式错误等。 2017-07-28 13:59:20 +08:00
.gitattributes TSG-13385 增加service, app侧kernel representor的实现以实现向内核协议栈注入控制报文的功能。 2023-02-17 10:40:50 +00:00
.gitignore feat(TSG-21574): Add 'legacy_mem' argument to EAL section in config. 2024-06-26 07:10:16 +00:00
.gitlab-ci.yml Remove the rpm package dependency of wireshark 2024-11-14 10:56:58 +08:00
autorevision.sh 增加自动版本号生成机制 2016-11-06 13:31:30 +08:00
CMakeLists.txt add cmocka for trace service 2024-08-07 17:09:41 +08:00
README 更新Readme文件 2016-01-06 17:20:06 +08:00

DPDK Network Packet I/O Middleware for START/PAPP/SAPP README
===============================================================
** Multiprocess Version **

Author
    Lu Qiuwen <luqiuwen@nelmail.iie.ac.cn> 
    	      +86 152-1087-3834

Compile and Install(Use CMake, Recommended)
============================================
This package supports CMake to compile and install. 

Step 1.
Install libpcap and libnet library and header files. There are some rpms 
which used in RHEL6.3. If you use other Linux system, you should install these
library manally.

	# cd tools/rpms
	# rpm -i libpcap-devel-1.0.0-6.20091201git117cb5.el6.x86_64.rpm
	# rpm -i libnet-1.1.6-7.el6.x86_64.rpm
	# rpm -i libnet-devel-1.1.6-7.el6.x86_64.rpm

Step 2.
Set the DPDK Path and Target, 
	# export RTE_SDK=<your dpdk path>
	# export RTE_TARGET=<your dpdk compile archtiture>

Step 3.
Use CMake to compile package. This package needs CMake Version 2.6 or higher version.
Firstly, create an directionary named build, 
	# mkdir -p build
	# cd build & cmake ..
You can set the target install path, like this:
	# cd build & cmake .. -DCMAKE_INSTALL_PREFIX=/....
by default, the CMAKE_INSTALL_PREFIX is /opt/iiesoft/marsio
	# make
	# make install

Step 4.
	You can use the marsio in install directionary.

Link to your Application
=============================================
		# gcc -o test test.c -lmarsio (Recommanded)

Run the driver and application
==============================
<STEP 1>
	Edit the configuration file nl2fwd.conf and copy it to /etc/nl2fwd.conf
<STEP 2>
	Run the driver program located in test/driver to start packet input and output.
<STEP 3>
	Run you program which has linked with libnl2fwd.so

Tools
==============================
	There are some tools which may be useful for the users in test/ and tools/.

	dlogreader  ---- Read the driver stats information,such as RX/TX PPS,BPS,Total drops.
	ethreader   ---- Read the NICs stats.
	r2_driver   ---- Script Program, run the driver in background.
	drv_monitor ---- Script Program, bind your application with driver. When your program
			 is crashed, the driver process will be killed.
	dpdk_mlx4   ---- Script Program, Configure the DPDK automatically, only use with MLX4
			 NICs.
	mlx4.conf   ---- Configuration File, used by dpdk_mlx4.