-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1,089 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
source/_posts/2024年开源操作系统训练营总结-winddevil/2024秋冬季开源操作系统训练营项目1方向2总结-winddevil.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 详细编写过程 | ||
|
||
附在ArceOS igb网卡驱动编写上 | ||
|
||
# 体会 | ||
|
||
前边很多时间用在流控、过滤器上边。由于igb-drive和ixgbe-drive的抽象化不一样。尤其是对ring和dma内存的结构的抽象。 | ||
|
||
比如把ring初始化的时候的操作,需要适配Tx和Rx。看文档的时间花了很久,具体怎么抽象化反而做的很差。 | ||
|
||
最后igb-drive卡在Descriptor构成之后想要写入Tail发送,但是想不出怎么进行发送上边。 | ||
|
||
很难解决具体的问题。 | ||
|
||
后来看到群友有人魔改ixgbe-dirve,得到成功。进而参考学习,自己也可以通过修改本地的ixgbe驱动来实现成功的httpserver。 | ||
|
||
并且看到有的人参考的驱动是旧版本的linux驱动,而我参考的是新版本的驱动,这就体现了我策略性的问题。 | ||
|
||
# 后续 | ||
|
||
不管这次结果如何,仍然想要参加下一期的学习,并且尝试自己完成igb驱动的编写,并且放到自己的blog中去。 |
Oops, something went wrong.