2020年9月3日

摘要: #define IXGBE_MIN_RING_DESC 32 #define IXGBE_MAX_RING_DESC 4096 #define RTE_PMD_IXGBE_TX_MAX_BURST 32 #define RTE_PMD_IXGBE_RX_MAX_BURST 32 #define RT 阅读全文
posted @ 2020-09-03 20:33 tycoon3 阅读(1061) 评论(0) 推荐(0)
摘要: 一般驱动 https://www.cnblogs.com/codestack/p/12906441.html static int ixgbe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) netdev = alloc_et 阅读全文
posted @ 2020-09-03 20:00 tycoon3 阅读(803) 评论(0) 推荐(0)
摘要: ixgbe_dev_rx_queue_start 设置好dma地址 IXGBE_WRITE_REG(hw, IXGBE_RDH(rxq->reg_idx), 0); IXGBE_WRITE_REG(hw, IXGBE_RDT(rxq->reg_idx), rxq->nb_rx_desc - 1); 阅读全文
posted @ 2020-09-03 17:30 tycoon3 阅读(4050) 评论(1) 推荐(0)
摘要: 标准的以太网帧,我们经常说的以太网帧长度是从图中 Destination MAC开始,FCS结束。网卡对网络层数据的操作是加以太网帧头、以太网帧尾FCS,很显然上层需要提供目的MAC地址,否则接口无从完成以太网帧的封装。这需要IP层需要事先完成和ARP的交互,解析出目的IP对应的目的MAC,这显然不 阅读全文
posted @ 2020-09-03 16:53 tycoon3 阅读(1610) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/jeawayfox/article/details/105444104 net/hns3/hns3_ethdev.c:4918: return rte_eth_dev_pci_generic_probe(pci_dev, rte_eal_init 阅读全文
posted @ 2020-09-03 15:17 tycoon3 阅读(434) 评论(0) 推荐(0)
摘要: int rte_lcore_is_enabled(unsigned int lcore_id) { struct rte_config *cfg = rte_eal_get_configuration(); if (lcore_id >= RTE_MAX_LCORE) return 0; retur 阅读全文
posted @ 2020-09-03 14:19 tycoon3 阅读(548) 评论(0) 推荐(0)
摘要: [root@localhost ~]# lshw -c network -businfo Bus info Device Class Description pci@0000:05:00.0 network Hi1822 Family (2*25GE) pci@0000:06:00.0 networ 阅读全文
posted @ 2020-09-03 10:00 tycoon3 阅读(288) 评论(0) 推荐(0)
摘要: -x 以十六进制显示 PCI 配置空间 (configuration space) 的前64个字节映像 (标准头部信息)。此参数对调试驱动和 lspci 本身很有用。 -xxx 以十六进制显示所有 PCI 配置空间的映像。此选项只有 root 可用,并且很多 PCI 设备在你试图读取配置空间的未定义 阅读全文
posted @ 2020-09-03 09:34 tycoon3 阅读(2727) 评论(0) 推荐(0)

导航