Skip to content

Commit

Permalink
更新四阶段总结
Browse files Browse the repository at this point in the history
  • Loading branch information
WindDevil committed Dec 21, 2024
1 parent 234ac34 commit dac8b44
Show file tree
Hide file tree
Showing 2 changed files with 1,089 additions and 0 deletions.
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中去。
Loading

0 comments on commit dac8b44

Please sign in to comment.