随笔分类 -  dpdk

上一页 1 2 3 4 5 6 7 8 9 下一页

摘要: 阅读全文

posted @ 2020-09-16 10:06 tycoon3 阅读(410) 评论(0) 推荐(0)

摘要:[root@localhost ixgbe]# grep tx_pkt_burst -rn * ixgbe_ethdev.c:1102: eth_dev->tx_pkt_burst = &ixgbe_xmit_pkts; ixgbe_ethdev.c:1582: eth_dev->tx_pkt_bu 阅读全文

posted @ 2020-09-15 18:08 tycoon3 阅读(1091) 评论(0) 推荐(0)

摘要:net_hinic: Disable vlan filter succeed, device: hinic-0000:05:00.0, port_id: 0 net_hinic: Disable vlan strip succeed, device: hinic-0000:05:00.0, port 阅读全文

posted @ 2020-09-15 11:56 tycoon3 阅读(634) 评论(0) 推荐(0)

摘要:My story As an IT engineer, part of my job is to design new networks, where I often find that the main bottleneck is the network switches. About a yea 阅读全文

posted @ 2020-09-15 10:52 tycoon3 阅读(553) 评论(0) 推荐(0)

摘要:/** * Calculate the size of the mempool header. * * @param mp * Pointer to the memory pool. * @param cs * Size of the per-lcore cache. */ #define MEMP 阅读全文

posted @ 2020-09-15 10:18 tycoon3 阅读(407) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <unistd.h> #include <rte_memory.h> #include <rte_ring.h> #include <rte_mempool.h> #define RING_SIZE 64 static const char * 阅读全文

posted @ 2020-09-14 20:08 tycoon3 阅读(328) 评论(0) 推荐(0)

摘要:common_ring_alloc [root@localhost mp_ring]# gdb build/app/test_ring GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-119.el7 Copyright (C) 2013 Free Softw 阅读全文

posted @ 2020-09-14 17:57 tycoon3 阅读(724) 评论(0) 推荐(0)

摘要:rte_mempool_create if ((flags & MEMPOOL_F_SP_PUT) && (flags & MEMPOOL_F_SC_GET)) ret = rte_mempool_set_ops_byname(mp, "ring_sp_sc", NULL); else if (fl 阅读全文

posted @ 2020-09-14 17:28 tycoon3 阅读(855) 评论(0) 推荐(0)

摘要:te_atomic32_cmpset()称为CAS(compare and set)操作,是DPDK无锁队列实现的关键函数,代码如下: static inline intrte_atomic32_cmpset(volatile uint32_t *dst, uint32_t exp, uint32_ 阅读全文

posted @ 2020-09-14 15:04 tycoon3 阅读(335) 评论(0) 推荐(0)

摘要:对比Intel和Kunpeng https://compare-intel-kunpeng.readthedocs.io/zh_CN/latest/index.html openEuler 20.03 LTS 使用指南 https://www.bookstack.cn/read/openeuler- 阅读全文

posted @ 2020-09-14 10:25 tycoon3 阅读(187) 评论(0) 推荐(0)

摘要:/* Get pci port io resources described by bar #pci_bar in uio resource n. */ static int igbuio_pci_setup_ioport(struct pci_dev *dev, struct uio_info * 阅读全文

posted @ 2020-09-12 22:51 tycoon3 阅读(739) 评论(0) 推荐(0)

摘要:* * 用于映射 resource 资源,并获取 PCI BAR * @param dev:DPDK 中关于某一个 PCI 设备的抽象实例 * @param res_id:说明要获取第几个 BAR * @param uio_res:用来存放 PCI BAR 资源的结构 * @param map_id 阅读全文

posted @ 2020-09-12 22:23 tycoon3 阅读(1176) 评论(0) 推荐(0)

摘要:https://doc.dpdk.org/dts/test_plans/vf_pf_reset_test_plan.html#test-case-3-vf-reset-create-one-vf-on-each-pf 阅读全文

posted @ 2020-09-11 18:06 tycoon3 阅读(186) 评论(0) 推荐(0)

摘要:[root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_ 阅读全文

posted @ 2020-09-11 17:20 tycoon3 阅读(340) 评论(0) 推荐(0)

摘要:[root@localhost dpdk-19.11]# echo 5 > /sys/class/net/enp5s0/device/sriov_numvfs -bash: echo: write error: No such file or directory [root@localhost dp 阅读全文

posted @ 2020-09-11 16:58 tycoon3 阅读(1593) 评论(0) 推荐(0)

摘要:#define RING_F_SP_ENQ 0x0001 /**< The default enqueue is "single-producer". */#define RING_F_SC_DEQ 0x0002 /**< The default dequeue is "single-consume 阅读全文

posted @ 2020-09-11 14:26 tycoon3 阅读(1237) 评论(0) 推荐(0)

摘要:1、 main线程没有调用pthread_join 一、初始化 1、rte_eal_cpu_init()函数中,通过读取/sys/devices/system/cpu/cpuX/下的相关信息,确定当前系统有哪些CPU核,已经每个核属于哪个CPU Socket。 2、eal_parse_args()函 阅读全文

posted @ 2020-09-10 20:10 tycoon3 阅读(431) 评论(0) 推荐(0)

摘要:[root@localhost ring_test]# make clean all CC main.o cc1: error: argument to ‘-O’ should be a non-negative integer, ‘g’, ‘s’ or ‘fast’ cc1: warning: u 阅读全文

posted @ 2020-09-10 19:40 tycoon3 阅读(1226) 评论(0) 推荐(0)

摘要:[root@localhost ring_test]# ps -Leo pid,tid,args:30,psr,comm | grep dpdk_test 47138 47138 ./build/app/dpdk_test -c 0x3f 0 dpdk_test 47138 47139 ./buil 阅读全文

posted @ 2020-09-10 17:40 tycoon3 阅读(292) 评论(0) 推荐(0)

摘要:stats_lcore在main函数定义: 栈变量 阅读全文

posted @ 2020-09-10 17:09 tycoon3 阅读(215) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 下一页

导航