Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
3fb17dab
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 3 年多
通知
13
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3fb17dab
编写于
2月 08, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/jkirsher/net-2.6
上级
e0985f27
310e5ca8
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
21 addition
and
14 deletion
+21
-14
drivers/net/e1000/e1000_hw.c
drivers/net/e1000/e1000_hw.c
+3
-1
drivers/net/e1000/e1000_hw.h
drivers/net/e1000/e1000_hw.h
+1
-0
drivers/net/e1000e/netdev.c
drivers/net/e1000e/netdev.c
+0
-1
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_common.c
+3
-0
drivers/net/ixgbe/ixgbe_fcoe.c
drivers/net/ixgbe/ixgbe_fcoe.c
+1
-1
drivers/net/ixgbe/ixgbe_main.c
drivers/net/ixgbe/ixgbe_main.c
+10
-6
drivers/net/ixgbe/ixgbe_sriov.c
drivers/net/ixgbe/ixgbe_sriov.c
+0
-2
drivers/net/ixgbe/ixgbe_x540.c
drivers/net/ixgbe/ixgbe_x540.c
+3
-3
未找到文件。
drivers/net/e1000/e1000_hw.c
浏览文件 @
3fb17dab
...
...
@@ -124,6 +124,7 @@ static s32 e1000_set_phy_type(struct e1000_hw *hw)
case
M88E1000_I_PHY_ID
:
case
M88E1011_I_PHY_ID
:
case
M88E1111_I_PHY_ID
:
case
M88E1118_E_PHY_ID
:
hw
->
phy_type
=
e1000_phy_m88
;
break
;
case
IGP01E1000_I_PHY_ID
:
...
...
@@ -3222,7 +3223,8 @@ static s32 e1000_detect_gig_phy(struct e1000_hw *hw)
break
;
case
e1000_ce4100
:
if
((
hw
->
phy_id
==
RTL8211B_PHY_ID
)
||
(
hw
->
phy_id
==
RTL8201N_PHY_ID
))
(
hw
->
phy_id
==
RTL8201N_PHY_ID
)
||
(
hw
->
phy_id
==
M88E1118_E_PHY_ID
))
match
=
true
;
break
;
case
e1000_82541
:
...
...
drivers/net/e1000/e1000_hw.h
浏览文件 @
3fb17dab
...
...
@@ -2917,6 +2917,7 @@ struct e1000_host_command_info {
#define M88E1000_14_PHY_ID M88E1000_E_PHY_ID
#define M88E1011_I_REV_4 0x04
#define M88E1111_I_PHY_ID 0x01410CC0
#define M88E1118_E_PHY_ID 0x01410E40
#define L1LXT971A_PHY_ID 0x001378E0
#define RTL8211B_PHY_ID 0x001CC910
...
...
drivers/net/e1000e/netdev.c
浏览文件 @
3fb17dab
...
...
@@ -4309,7 +4309,6 @@ static void e1000_watchdog_task(struct work_struct *work)
* to get done, so reset controller to flush Tx.
* (Do the reset outside of interrupt context).
*/
adapter
->
tx_timeout_count
++
;
schedule_work
(
&
adapter
->
reset_task
);
/* return immediately since reset is imminent */
return
;
...
...
drivers/net/ixgbe/ixgbe_common.c
浏览文件 @
3fb17dab
...
...
@@ -1370,6 +1370,9 @@ s32 ixgbe_init_rx_addrs_generic(struct ixgbe_hw *hw)
hw_dbg
(
hw
,
" New MAC Addr =%pM
\n
"
,
hw
->
mac
.
addr
);
hw
->
mac
.
ops
.
set_rar
(
hw
,
0
,
hw
->
mac
.
addr
,
0
,
IXGBE_RAH_AV
);
/* clear VMDq pool/queue selection for RAR 0 */
hw
->
mac
.
ops
.
clear_vmdq
(
hw
,
0
,
IXGBE_CLEAR_VMDQ_ALL
);
}
hw
->
addr_ctrl
.
overflow_promisc
=
0
;
...
...
drivers/net/ixgbe/ixgbe_fcoe.c
浏览文件 @
3fb17dab
...
...
@@ -165,7 +165,7 @@ int ixgbe_fcoe_ddp_get(struct net_device *netdev, u16 xid,
unsigned
int
thisoff
=
0
;
unsigned
int
thislen
=
0
;
u32
fcbuff
,
fcdmarw
,
fcfltrw
;
dma_addr_t
addr
;
dma_addr_t
addr
=
0
;
if
(
!
netdev
||
!
sgl
)
return
0
;
...
...
drivers/net/ixgbe/ixgbe_main.c
浏览文件 @
3fb17dab
...
...
@@ -52,7 +52,7 @@ char ixgbe_driver_name[] = "ixgbe";
static
const
char
ixgbe_driver_string
[]
=
"Intel(R) 10 Gigabit PCI Express Network Driver"
;
#define DRV_VERSION "3.
0.12
-k2"
#define DRV_VERSION "3.
2.9
-k2"
const
char
ixgbe_driver_version
[]
=
DRV_VERSION
;
static
char
ixgbe_copyright
[]
=
"Copyright (c) 1999-2010 Intel Corporation."
;
...
...
@@ -3176,9 +3176,16 @@ static void ixgbe_set_rx_buffer_len(struct ixgbe_adapter *adapter)
u32
mhadd
,
hlreg0
;
/* Decide whether to use packet split mode or not */
/* On by default */
adapter
->
flags
|=
IXGBE_FLAG_RX_PS_ENABLED
;
/* Do not use packet split if we're in SR-IOV Mode */
if
(
!
adapter
->
num_vfs
)
adapter
->
flags
|=
IXGBE_FLAG_RX_PS_ENABLED
;
if
(
adapter
->
num_vfs
)
adapter
->
flags
&=
~
IXGBE_FLAG_RX_PS_ENABLED
;
/* Disable packet split due to 82599 erratum #45 */
if
(
hw
->
mac
.
type
==
ixgbe_mac_82599EB
)
adapter
->
flags
&=
~
IXGBE_FLAG_RX_PS_ENABLED
;
/* Set the RX buffer length according to the mode */
if
(
adapter
->
flags
&
IXGBE_FLAG_RX_PS_ENABLED
)
{
...
...
@@ -4863,16 +4870,13 @@ static int ixgbe_alloc_q_vectors(struct ixgbe_adapter *adapter)
{
int
q_idx
,
num_q_vectors
;
struct
ixgbe_q_vector
*
q_vector
;
int
napi_vectors
;
int
(
*
poll
)(
struct
napi_struct
*
,
int
);
if
(
adapter
->
flags
&
IXGBE_FLAG_MSIX_ENABLED
)
{
num_q_vectors
=
adapter
->
num_msix_vectors
-
NON_Q_VECTORS
;
napi_vectors
=
adapter
->
num_rx_queues
;
poll
=
&
ixgbe_clean_rxtx_many
;
}
else
{
num_q_vectors
=
1
;
napi_vectors
=
1
;
poll
=
&
ixgbe_poll
;
}
...
...
drivers/net/ixgbe/ixgbe_sriov.c
浏览文件 @
3fb17dab
...
...
@@ -110,12 +110,10 @@ static int ixgbe_set_vf_vlan(struct ixgbe_adapter *adapter, int add, int vid,
return
adapter
->
hw
.
mac
.
ops
.
set_vfta
(
&
adapter
->
hw
,
vid
,
vf
,
(
bool
)
add
);
}
static
void
ixgbe_set_vmolr
(
struct
ixgbe_hw
*
hw
,
u32
vf
,
bool
aupe
)
{
u32
vmolr
=
IXGBE_READ_REG
(
hw
,
IXGBE_VMOLR
(
vf
));
vmolr
|=
(
IXGBE_VMOLR_ROMPE
|
IXGBE_VMOLR_ROPE
|
IXGBE_VMOLR_BAM
);
if
(
aupe
)
vmolr
|=
IXGBE_VMOLR_AUPE
;
...
...
drivers/net/ixgbe/ixgbe_x540.c
浏览文件 @
3fb17dab
...
...
@@ -133,17 +133,17 @@ static s32 ixgbe_reset_hw_X540(struct ixgbe_hw *hw)
}
ctrl
=
IXGBE_READ_REG
(
hw
,
IXGBE_CTRL
);
IXGBE_WRITE_REG
(
hw
,
IXGBE_CTRL
,
(
ctrl
|
IXGBE_CTRL_RST
));
IXGBE_WRITE_REG
(
hw
,
IXGBE_CTRL
,
(
ctrl
|
reset_bit
));
IXGBE_WRITE_FLUSH
(
hw
);
/* Poll for reset bit to self-clear indicating reset is complete */
for
(
i
=
0
;
i
<
10
;
i
++
)
{
udelay
(
1
);
ctrl
=
IXGBE_READ_REG
(
hw
,
IXGBE_CTRL
);
if
(
!
(
ctrl
&
IXGBE_CTRL_RST
))
if
(
!
(
ctrl
&
reset_bit
))
break
;
}
if
(
ctrl
&
IXGBE_CTRL_RST
)
{
if
(
ctrl
&
reset_bit
)
{
status
=
IXGBE_ERR_RESET_FAILED
;
hw_dbg
(
hw
,
"Reset polling failed to complete.
\n
"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录