Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
4ea7f299
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4ea7f299
编写于
11月 11, 2005
作者:
A
Ayaz Abdulla
提交者:
Jeff Garzik
11月 11, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[netdrvr forcedeth] remove superfluous rx engine stop/start
Signed-off-by:
N
Ayaz Abdulla
<
aabdulla@nvidia.com
>
上级
125d128b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
22 addition
and
12 deletion
+22
-12
drivers/net/forcedeth.c
drivers/net/forcedeth.c
+22
-12
未找到文件。
drivers/net/forcedeth.c
浏览文件 @
4ea7f299
...
...
@@ -80,7 +80,7 @@
* into nv_close, otherwise reenabling for wol can
* cause DMA to kfree'd memory.
* 0.31: 14 Nov 2004: ethtool support for getting/setting link
*
capabilities.
*
capabilities.
* 0.32: 16 Apr 2005: RX_ERROR4 handling added.
* 0.33: 16 May 2005: Support for MCP51 added.
* 0.34: 18 Jun 2005: Add DEV_NEED_LINKTIMER to all nForce nics.
...
...
@@ -89,14 +89,15 @@
* 0.37: 10 Jul 2005: Additional ethtool support, cleanup of pci id list
* 0.38: 16 Jul 2005: tx irq rewrite: Use global flags instead of
* per-packet flags.
*
0.39: 18 Jul 2005: Add 64bit descriptor support.
*
0.40: 19 Jul 2005: Add support for mac address change.
*
0.41: 30 Jul 2005: Write back original MAC in nv_close instead
*
0.39: 18 Jul 2005: Add 64bit descriptor support.
*
0.40: 19 Jul 2005: Add support for mac address change.
*
0.41: 30 Jul 2005: Write back original MAC in nv_close instead
* of nv_remove
*
0.42: 06 Aug 2005: Fix lack of link speed initialization
*
0.42: 06 Aug 2005: Fix lack of link speed initialization
* in the second (and later) nv_open call
* 0.43: 10 Aug 2005: Add support for tx checksum.
* 0.44: 20 Aug 2005: Add support for scatter gather and segmentation.
* 0.43: 10 Aug 2005: Add support for tx checksum.
* 0.44: 20 Aug 2005: Add support for scatter gather and segmentation.
* 0.45: 18 Sep 2005: Remove nv_stop/start_rx from every link check
*
* Known bugs:
* We suspect that on some hardware no TX done interrupts are generated.
...
...
@@ -108,7 +109,7 @@
* DEV_NEED_TIMERIRQ will not harm you on sane hardware, only generating a few
* superfluous timer interrupts from the nic.
*/
#define FORCEDETH_VERSION "0.4
4
"
#define FORCEDETH_VERSION "0.4
5
"
#define DRV_NAME "forcedeth"
#include <linux/module.h>
...
...
@@ -1612,6 +1613,17 @@ static void nv_set_multicast(struct net_device *dev)
spin_unlock_irq
(
&
np
->
lock
);
}
/**
* nv_update_linkspeed: Setup the MAC according to the link partner
* @dev: Network device to be configured
*
* The function queries the PHY and checks if there is a link partner.
* If yes, then it sets up the MAC accordingly. Otherwise, the MAC is
* set to 10 MBit HD.
*
* The function returns 0 if there is no link partner and 1 if there is
* a good link partner.
*/
static
int
nv_update_linkspeed
(
struct
net_device
*
dev
)
{
struct
fe_priv
*
np
=
netdev_priv
(
dev
);
...
...
@@ -1751,13 +1763,11 @@ static int nv_update_linkspeed(struct net_device *dev)
static
void
nv_linkchange
(
struct
net_device
*
dev
)
{
if
(
nv_update_linkspeed
(
dev
))
{
if
(
netif_carrier_ok
(
dev
))
{
nv_stop_rx
(
dev
);
}
else
{
if
(
!
netif_carrier_ok
(
dev
))
{
netif_carrier_on
(
dev
);
printk
(
KERN_INFO
"%s: link up.
\n
"
,
dev
->
name
);
nv_start_rx
(
dev
);
}
nv_start_rx
(
dev
);
}
else
{
if
(
netif_carrier_ok
(
dev
))
{
netif_carrier_off
(
dev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录