2020年8月26日

摘要: [root@localhost dpdk-19.11]# ./examples/kni/build/app/kni -c 0xFFFFF -n 4 -- -P -p 0x3 --config="(0,0,1),(1,2,3)" EAL: Detected 128 lcore(s) EAL: Dete 阅读全文
posted @ 2020-08-26 20:16 tycoon3 阅读(962) 评论(0) 推荐(0)
摘要: /* enable legacy (INTx) interrupts */ static int vfio_enable_intx(const struct rte_intr_handle *intr_handle) { struct vfio_irq_set *irq_set; char irq_ 阅读全文
posted @ 2020-08-26 20:11 tycoon3 阅读(275) 评论(0) 推荐(0)
摘要: rte_eth_dev_rx_intr_disable(uint16_t port_id, uint16_t queue_id) { struct rte_eth_dev *dev; RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -ENODEV); dev = & 阅读全文
posted @ 2020-08-26 19:55 tycoon3 阅读(826) 评论(0) 推荐(0)
摘要: [root@localhost dpdk_lcores]# ./build/app/test --lcores "(0,1,2,3,4)@(0,1),(5,6,7,8)@3" EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: Mul 阅读全文
posted @ 2020-08-26 17:56 tycoon3 阅读(2903) 评论(0) 推荐(0)
摘要: [root@localhost dpdk_lcores]# ./build/app/test --lcores "(0,1,2,3,4)@(0,1),(5,6,7,8)@3" EAL: Detected 128 lcore(s) EAL: Detected 4 NUMA nodes EAL: Mul 阅读全文
posted @ 2020-08-26 17:22 tycoon3 阅读(1145) 评论(0) 推荐(0)
摘要: [root@localhost dpdk_lcores]# ls main.c Makefile [root@localhost dpdk_lcores]# cat Makefile export RTE_TARGET=arm64-armv8a-linuxapp-gcc export RTE_SDK 阅读全文
posted @ 2020-08-26 16:44 tycoon3 阅读(346) 评论(0) 推荐(0)
摘要: 参考https://blog.csdn.net/sinat_20184565/article/details/92700223 官方文档: http://doc.dpdk.org/dts/test_plans/kni_test_plan.html [root@localhost dpdk-19.11 阅读全文
posted @ 2020-08-26 15:51 tycoon3 阅读(680) 评论(0) 推荐(0)
摘要: https://hustcat.github.io/introduction-to-uio/ UIO 每个UIO设备可以通过设备文件(/dev/uioX)和sysfs的属性文件来访问。 可以通过mmap映射/dev/uioX来访问UIO设备的寄存器或者RAM。 直接read /dev/uioX来获取 阅读全文
posted @ 2020-08-26 15:16 tycoon3 阅读(432) 评论(0) 推荐(0)
摘要: 1、 uio 在register device的时候通过uio_dev_add_attributes生成/sys/class/uio/uio0/xx,注册中断 2、 用户程序fd=open(/sys/class/uio/uio0/maps/mapX/size) 3、调用mmap(fd)会进行rema 阅读全文
posted @ 2020-08-26 14:54 tycoon3 阅读(1402) 评论(0) 推荐(0)
摘要: 转载 https://blog.csdn.net/bemind1/article/details/99678642 What is VFIO? VFIO是一个可以安全的把设备I/O、中断、DMA等暴露到用户空间(userspace),从而可以在用户空间完成设备驱动的框架。 得益于vfio低开销的用户 阅读全文
posted @ 2020-08-26 14:14 tycoon3 阅读(1121) 评论(0) 推荐(0)
摘要: 网上的Linux PCI驱动教程基本就没有有用的。扯半天PCI配置空间就完了。但是PCI配置空间是最容易访问的,只是内核启动时扫描PCI设备时比较重要。对于PCI驱动,更常用的是PCI设备的IO空间和内存空间。以前只知道在PCI设备的配置空间中,BAR0-BAR5能够读取到PCI设备的IO空间或地址 阅读全文
posted @ 2020-08-26 11:12 tycoon3 阅读(2902) 评论(0) 推荐(0)
摘要: vpp sample plugin https://workerwork.github.io/posts/vpp-sample-plugin/ vpp编译分析 https://workerwork.github.io/posts/vpp-debs/ 基于VPP+DPDK开源框架开发UPF https 阅读全文
posted @ 2020-08-26 09:49 tycoon3 阅读(366) 评论(0) 推荐(0)

导航