加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
1, How to compile.
    (a) Set up the NetFPGA-10G platform according to http://netfpga.org/
    (b) Put directories dma_v1_10_a/, nf10_10g_interface_v1_10_a/ and nf10_nic_output_port_lookup_v1_00_a/ into NetFPGA-10G-live/lib/hw/std/pcores/
    (c) Run make in NetFPGA-10G-live/projects/reference_nic to get the bitfile

2, How to do simple test
    (a) Load the bitfile.
    (b) Reboot and load the driver in driver/ or driver_netperf. With driver/ the descriptor queues are hardcoded, which is suit for pressure test. With driver_netperf one can actually send packets via the TCP/IP stack.

3, How to create/disable rate limiters.
    (a) There are various nicpic API functions in nicpic.c. The prefered way is to call these functions in nf10fops.c as ioctl calls. As for now these functions are called in the driver initialization phase and exiting phase. The ioctl calls will be added shortly to enable better usability.

4, How to classify packets into rate limiters.
    (a) Upon transmission of a packet the nf10priv_xmit() function in nf10priv.c will be called. One can examin the packet and associate the packet to one rate limiter by assigning the class_index variable in this function.

5, How to read clock from the received packets.
    (a) The first 8 bytes in the received packets is a timestamp. The second 8 bytes in the received packets is its serial number.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化