Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
6a68afe3
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6a68afe3
编写于
5月 23, 2009
作者:
K
Krzysztof Hałasa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IXP4xx: Ethernet and WAN drivers now support "high" hardware queues.
Signed-off-by:
N
Krzysztof Hałasa
<
khc@pm.waw.pl
>
上级
a6a9fb85
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
15 addition
and
10 deletion
+15
-10
drivers/net/arm/ixp4xx_eth.c
drivers/net/arm/ixp4xx_eth.c
+9
-6
drivers/net/wan/ixp4xx_hss.c
drivers/net/wan/ixp4xx_hss.c
+6
-4
未找到文件。
drivers/net/arm/ixp4xx_eth.c
浏览文件 @
6a68afe3
...
...
@@ -456,7 +456,8 @@ static inline void queue_put_desc(unsigned int queue, u32 phys,
debug_desc
(
phys
,
desc
);
BUG_ON
(
phys
&
0x1F
);
qmgr_put_entry
(
queue
,
phys
);
BUG_ON
(
qmgr_stat_overflow
(
queue
));
/* Don't check for queue overflow here, we've allocated sufficient
length and queues >= 32 don't support this check anyway. */
}
...
...
@@ -512,8 +513,8 @@ static int eth_poll(struct napi_struct *napi, int budget)
#endif
napi_complete
(
napi
);
qmgr_enable_irq
(
rxq
);
if
(
!
qmgr_stat_empty
(
rxq
)
&&
napi_reschedule
(
napi
))
{
if
(
!
qmgr_stat_
nearly_
empty
(
rxq
)
&&
napi_reschedule
(
napi
))
{
/* really empty in fact */
#if DEBUG_RX
printk
(
KERN_DEBUG
"%s: eth_poll"
" napi_reschedule successed
\n
"
,
...
...
@@ -630,7 +631,8 @@ static void eth_txdone_irq(void *unused)
port
->
tx_buff_tab
[
n_desc
]
=
NULL
;
}
start
=
qmgr_stat_empty
(
port
->
plat
->
txreadyq
);
/* really empty in fact */
start
=
qmgr_stat_nearly_empty
(
port
->
plat
->
txreadyq
);
queue_put_desc
(
port
->
plat
->
txreadyq
,
phys
,
desc
);
if
(
start
)
{
#if DEBUG_TX
...
...
@@ -708,13 +710,14 @@ static int eth_xmit(struct sk_buff *skb, struct net_device *dev)
queue_put_desc
(
TX_QUEUE
(
port
->
id
),
tx_desc_phys
(
port
,
n
),
desc
);
dev
->
trans_start
=
jiffies
;
if
(
qmgr_stat_
empty
(
txreadyq
))
{
if
(
qmgr_stat_
nearly_empty
(
txreadyq
))
{
/* really empty in fact */
#if DEBUG_TX
printk
(
KERN_DEBUG
"%s: eth_xmit queue full
\n
"
,
dev
->
name
);
#endif
netif_stop_queue
(
dev
);
/* we could miss TX ready interrupt */
if
(
!
qmgr_stat_empty
(
txreadyq
))
{
/* really empty in fact */
if
(
!
qmgr_stat_nearly_empty
(
txreadyq
))
{
#if DEBUG_TX
printk
(
KERN_DEBUG
"%s: eth_xmit ready again
\n
"
,
dev
->
name
);
...
...
drivers/net/wan/ixp4xx_hss.c
浏览文件 @
6a68afe3
...
...
@@ -579,7 +579,8 @@ static inline void queue_put_desc(unsigned int queue, u32 phys,
debug_desc
(
phys
,
desc
);
BUG_ON
(
phys
&
0x1F
);
qmgr_put_entry
(
queue
,
phys
);
BUG_ON
(
qmgr_stat_overflow
(
queue
));
/* Don't check for queue overflow here, we've allocated sufficient
length and queues >= 32 don't support this check anyway. */
}
...
...
@@ -789,7 +790,8 @@ static void hss_hdlc_txdone_irq(void *pdev)
free_buffer_irq
(
port
->
tx_buff_tab
[
n_desc
]);
port
->
tx_buff_tab
[
n_desc
]
=
NULL
;
start
=
qmgr_stat_empty
(
port
->
plat
->
txreadyq
);
/* really empty in fact */
start
=
qmgr_stat_nearly_empty
(
port
->
plat
->
txreadyq
);
queue_put_desc
(
port
->
plat
->
txreadyq
,
tx_desc_phys
(
port
,
n_desc
),
desc
);
if
(
start
)
{
...
...
@@ -867,13 +869,13 @@ static int hss_hdlc_xmit(struct sk_buff *skb, struct net_device *dev)
queue_put_desc
(
queue_ids
[
port
->
id
].
tx
,
tx_desc_phys
(
port
,
n
),
desc
);
dev
->
trans_start
=
jiffies
;
if
(
qmgr_stat_
empty
(
txreadyq
))
{
if
(
qmgr_stat_
nearly_empty
(
txreadyq
))
{
/* really empty in fact */
#if DEBUG_TX
printk
(
KERN_DEBUG
"%s: hss_hdlc_xmit queue full
\n
"
,
dev
->
name
);
#endif
netif_stop_queue
(
dev
);
/* we could miss TX ready interrupt */
if
(
!
qmgr_stat_empty
(
txreadyq
))
{
if
(
!
qmgr_stat_
nearly_
empty
(
txreadyq
))
{
#if DEBUG_TX
printk
(
KERN_DEBUG
"%s: hss_hdlc_xmit ready again
\n
"
,
dev
->
name
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录