免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3225 | 回复: 1
打印 上一主题 下一主题

Intel 82575/82576千兆网卡驱动IGB分析──7──NAPI的实现 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-12 09:13 |只看该作者 |倒序浏览
    From the device driver perspective, there are only two differences between NAPI
and non-NAPI. The first is that NAPI drivers must provide a poll
method, described in the section "net_device fields used by NAPI." The
second difference is the function called to schedule a frame: non-NAPI drivers
call netif_rx, whereas NAPI drivers call _ _netif_rx_schedule,
defined in include/linux/netdevice.h. (The kernel provides a wrapper
function named netif_rx_schedule, which checks to make sure that the
device is running and that the softirq is not already scheduled, and then it
calls _ _netif_rx_schedule. These checks are done with
netif_rx_schedule_prep. Some drivers call netif_rx_schedule,
and others call netif_rx_schedule_prep explicitly and then _
_netif_rx_schedule if needed).
                               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/46672/showart_1859823.html

论坛徽章:
0
2 [报告]
发表于 2012-07-26 10:10 |只看该作者
你好,我也正在看INTEL82576的LINUX下的驱动,想请您把82576网卡工作的机制给我发一个,我看了他的英文手册半天也没太明白,然后又看了它的代码,其中对于接收队列的管理一直没看明白,希望您能帮帮忙,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP