Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
542d4d68
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
542d4d68
编写于
7月 16, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
neigh: Kill ndisc_ops->queue_xmit
It is always dev_queue_xmit(). Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
b23b5455
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
5 addition
and
17 deletion
+5
-17
include/net/neighbour.h
include/net/neighbour.h
+0
-1
net/atm/clip.c
net/atm/clip.c
+0
-1
net/core/neighbour.c
net/core/neighbour.c
+2
-2
net/decnet/dn_neigh.c
net/decnet/dn_neigh.c
+1
-4
net/ipv4/arp.c
net/ipv4/arp.c
+1
-5
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+1
-4
未找到文件。
include/net/neighbour.h
浏览文件 @
542d4d68
...
...
@@ -122,7 +122,6 @@ struct neigh_ops {
void
(
*
error_report
)(
struct
neighbour
*
,
struct
sk_buff
*
);
int
(
*
output
)(
struct
sk_buff
*
);
int
(
*
connected_output
)(
struct
sk_buff
*
);
int
(
*
queue_xmit
)(
struct
sk_buff
*
);
};
struct
pneigh_entry
{
...
...
net/atm/clip.c
浏览文件 @
542d4d68
...
...
@@ -273,7 +273,6 @@ static const struct neigh_ops clip_neigh_ops = {
.
error_report
=
clip_neigh_error
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
static
int
clip_constructor
(
struct
neighbour
*
neigh
)
...
...
net/core/neighbour.c
浏览文件 @
542d4d68
...
...
@@ -1257,7 +1257,7 @@ int neigh_resolve_output(struct sk_buff *skb)
}
while
(
read_seqretry
(
&
neigh
->
ha_lock
,
seq
));
if
(
err
>=
0
)
rc
=
neigh
->
ops
->
queue_xmit
(
skb
);
rc
=
dev_
queue_xmit
(
skb
);
else
goto
out_kfree_skb
;
}
...
...
@@ -1292,7 +1292,7 @@ int neigh_connected_output(struct sk_buff *skb)
}
while
(
read_seqretry
(
&
neigh
->
ha_lock
,
seq
));
if
(
err
>=
0
)
err
=
neigh
->
ops
->
queue_xmit
(
skb
);
err
=
dev_
queue_xmit
(
skb
);
else
{
err
=
-
EINVAL
;
kfree_skb
(
skb
);
...
...
net/decnet/dn_neigh.c
浏览文件 @
542d4d68
...
...
@@ -64,7 +64,6 @@ static const struct neigh_ops dn_long_ops = {
.
error_report
=
dn_long_error_report
,
.
output
=
dn_long_output
,
.
connected_output
=
dn_long_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
/*
...
...
@@ -75,7 +74,6 @@ static const struct neigh_ops dn_short_ops = {
.
error_report
=
dn_short_error_report
,
.
output
=
dn_short_output
,
.
connected_output
=
dn_short_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
/*
...
...
@@ -86,7 +84,6 @@ static const struct neigh_ops dn_phase3_ops = {
.
error_report
=
dn_short_error_report
,
/* Can use short version here */
.
output
=
dn_phase3_output
,
.
connected_output
=
dn_phase3_output
,
.
queue_xmit
=
dev_queue_xmit
};
static
u32
dn_neigh_hash
(
const
void
*
pkey
,
...
...
@@ -212,7 +209,7 @@ static int dn_neigh_output_packet(struct sk_buff *skb)
dn_dn2eth
(
mac_addr
,
rt
->
rt_local_src
);
if
(
dev_hard_header
(
skb
,
dev
,
ntohs
(
skb
->
protocol
),
neigh
->
ha
,
mac_addr
,
skb
->
len
)
>=
0
)
return
neigh
->
ops
->
queue_xmit
(
skb
);
return
dev_
queue_xmit
(
skb
);
if
(
net_ratelimit
())
printk
(
KERN_DEBUG
"dn_neigh_output_packet: oops, can't send packet
\n
"
);
...
...
net/ipv4/arp.c
浏览文件 @
542d4d68
...
...
@@ -138,7 +138,6 @@ static const struct neigh_ops arp_generic_ops = {
.
error_report
=
arp_error_report
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_connected_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
static
const
struct
neigh_ops
arp_hh_ops
=
{
...
...
@@ -147,14 +146,12 @@ static const struct neigh_ops arp_hh_ops = {
.
error_report
=
arp_error_report
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
static
const
struct
neigh_ops
arp_direct_ops
=
{
.
family
=
AF_INET
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
static
const
struct
neigh_ops
arp_broken_ops
=
{
...
...
@@ -163,7 +160,6 @@ static const struct neigh_ops arp_broken_ops = {
.
error_report
=
arp_error_report
,
.
output
=
neigh_compat_output
,
.
connected_output
=
neigh_compat_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
struct
neigh_table
arp_tbl
=
{
...
...
@@ -254,7 +250,7 @@ static int arp_constructor(struct neighbour *neigh)
if
(
!
dev
->
header_ops
)
{
neigh
->
nud_state
=
NUD_NOARP
;
neigh
->
ops
=
&
arp_direct_ops
;
neigh
->
output
=
neigh
->
ops
->
queue_xmit
;
neigh
->
output
=
dev_
queue_xmit
;
}
else
{
/* Good devices (checked by reading texts, but only Ethernet is
tested)
...
...
net/ipv6/ndisc.c
浏览文件 @
542d4d68
...
...
@@ -107,7 +107,6 @@ static const struct neigh_ops ndisc_generic_ops = {
.
error_report
=
ndisc_error_report
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_connected_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
static
const
struct
neigh_ops
ndisc_hh_ops
=
{
...
...
@@ -116,7 +115,6 @@ static const struct neigh_ops ndisc_hh_ops = {
.
error_report
=
ndisc_error_report
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
queue_xmit
=
dev_queue_xmit
,
};
...
...
@@ -124,7 +122,6 @@ static const struct neigh_ops ndisc_direct_ops = {
.
family
=
AF_INET6
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
struct
neigh_table
nd_tbl
=
{
...
...
@@ -389,7 +386,7 @@ static int ndisc_constructor(struct neighbour *neigh)
if
(
!
dev
->
header_ops
)
{
neigh
->
nud_state
=
NUD_NOARP
;
neigh
->
ops
=
&
ndisc_direct_ops
;
neigh
->
output
=
neigh
->
ops
->
queue_xmit
;
neigh
->
output
=
dev_
queue_xmit
;
}
else
{
if
(
is_multicast
)
{
neigh
->
nud_state
=
NUD_NOARP
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录