- 10
- 0
- 约 6页
- 2017-08-22 发布于河南
- 举报
多CPU下基于e1000e驱动数据包以和网卡中断流程分析
本文档的Copyleft归wwwlkk所有,使用GPL发布,可以自由拷贝、转载,转载时请保持文档的完整性,严禁用于任何商业用途。
E-mail: HYPERLINK mailto:wwwlkk@126.com wwwlkk@126.com
来源: /?businessaid=6un=wwwlkk#7
多CPU下基于e1000e驱动的数据包以及网卡中断流程分析
图1 e1000e网卡收包环和发包环控制
收包环说明:
next_to_clean和next_to_use是内核读写的;
rdt是内核写,网卡只读;
rdh是网卡写,内核只读;
next_to_clean和rdh之间的是已经接收到数据包的内存;
rdh和rdt之间是还未接收到数据包的内存;
next_to_use后的是还未使用的区域。
发包环说明:
next_to_clean和next_to_use是内核读写的;
tdt是内核写,网卡只读;
tdh是网卡写,内核只读;
next_to_clean和tdh之间的是已经发送的数据包,可以被释放;
rdh和rdt之间是发送的数据包;
next_to_use后的是还未使用的区域。
网卡产生中断的时机,一共3个:
当网卡接收到一个数据包,并通过DMA方式写入内存,此时网卡会向前移动rdh,并发送网卡中断。
网卡发送完数据包,并移动tdh,当tdh移动次数达到一定数量,或者tdh等于
您可能关注的文档
- 计算机导论考试重点(Introduction to computer test points).doc
- 计算机导论试题(Introduction to computer test).doc
- 计算机导论(Introduction to Computer Science).doc
- 计算机应用基础试题(Basic computer application test).doc
- 计算机技术在农业管理中的应用构想(The application of computer technology in the management of Agriculture).doc
- 计算机导论_试题(Introduction to computer _ test).doc
- 计算机操作技能测试题(Computer skill test).doc
- 计算机文化基础试题2(The cultural foundation of the computer test 2).doc
- 计算机操作流程(Computer operation process).doc
- 计算机理论题及答案第四套理论题(The theory of computer theory of fourth sets of questions and answers).doc
原创力文档

文档评论(0)