dpdk example of early adopters link_status_interrupt

dpdk example of early adopters link_status_interrupt

Many examples dpdk example, we can help users quickly understand the principle dpdk part of.
When compiling example, often can not find how to compile. A variety of problems encountered an error.
In fact, dpdk official website has a very good example demonstrates.
Have helped to compile the various types of documentation: link below
http://doc.dpdk.org/guides/sample_app_ug/compiling.html
the whole process of compiling an example as follows:

// 导出关键变量,dpdk的根路径
export RTE_SDK=/path/to/rte_sdk
// 进入dpdk根路径
cd $RTE_SDK
// 编译dpdk
make defconfig
make
// 进入到例子所在路径,例如link_status_interrupt这个例子
cd  $RTE_SDK/examples/link_status_interrupt
// 编例子程序:
export RTE_TARGET=build
make

Examples operation process is as follows:

./build/link_status_interrupt -l 0-1 -n 1 -w 0000:01:00.0 -w 0000:02:00.0 -- -q 8 -p 3
// 其中-w 0000:01:00.0 为指定网卡0000:01:00.0,如需多个网卡则加多个-w

Guess you like

Origin blog.51cto.com/qiaopeng688/2405115