dpdk
https://doc.dpdk.org/guides/prog_guide/index.html
https://blog.csdn.net/tour_de_france/article/details/125818233
https://blog.csdn.net/NGU_Jq/article/details/120711664
https://www.ctyun.cn/developer/article/487187015995461
https://www.cnblogs.com/hugetong/p/8781390.html
https://www.27ka.cn/124627.html
https://www.zhihu.com/question/571007651/answer/2960247570?utm_id=0
https://blog.csdn.net/yk_wing4/article/details/92805019
https://www.rpmfind.net/linux/centos/7.9.2009/updates/x86_64/Packages/kernel-devel-3.10.0-1160.76.1.el7.x86_64.rpm
./dpdk-l2fwd-crypto -l 1-3 -n 1 --vdev crypto_openssl1 --vdev crypto_openssl2 -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT \
--cipher_algo aes-cbc \
--cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \
--cipher_iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff \
--auth_op GENERATE --auth_algo sha1-hmac \
--auth_key 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11
[root@localhost src]# cat start.sh
#!/bin/sh
echo "---start---\n"
modprobe uio
insmod /usr/local/src/dpdk-kmods/linux/igb_uio/igb_uio.ko
ifconfig ens36 down
ifconfig ens37 down
dpdk-devbind.py -b igb_uio 0000:02:04.0
dpdk-devbind.py -b igb_uio 0000:02:05.0
/usr/local/src/dpdk-stable-22.11.3/build/examples/dpdk-helloworld -l 1-3 -n 3
[root@localhost src]# cat usage.txt
10、加载igb_uio驱动,并绑定网卡使用igb_uio驱动:
modprobe uio
insmod dpdk-kmods/linux/igb_uio/igb_uio.ko
先使用dpdk-devbind.py -s查看网卡驱动绑定情况:
绑定两张网卡(ens36 ens37)使用igb_uio驱动:
ifconfig ens36 down
ifconfig ens37 down
dpdk-devbind.py -b igb_uio 0000:02:04.0
dpdk-devbind.py -b igb_uio 0000:02:05.0
cd build/example
./dpdk-helloworld -l 1-3 -n 3
./dpdk-l2fwd-crypto -l 1-3 -n 1 --vdev crypto_openssl1 --vdev crypto_openssl2 -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT \
--cipher_algo aes-cbc \
--cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f \
--cipher_iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff \
--auth_op GENERATE --auth_algo sha1-hmac \
--auth_key 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11
posted on 2024-01-17 09:34 yipianchuyun 阅读(22) 评论(0) 编辑 收藏 举报