Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
47ec132a
K
Kernel
项目概览
openeuler
/
Kernel
大约 2 年 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
47ec132a
编写于
7月 16, 2011
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
neigh: Kill neigh_ops->hh_output
It's always dev_queue_xmit(). Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
0895b08a
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
2 addition
and
14 deletion
+2
-14
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
+0
-3
net/ipv4/arp.c
net/ipv4/arp.c
+0
-4
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+0
-3
未找到文件。
include/net/neighbour.h
浏览文件 @
47ec132a
...
@@ -122,7 +122,6 @@ struct neigh_ops {
...
@@ -122,7 +122,6 @@ struct neigh_ops {
void
(
*
error_report
)(
struct
neighbour
*
,
struct
sk_buff
*
);
void
(
*
error_report
)(
struct
neighbour
*
,
struct
sk_buff
*
);
int
(
*
output
)(
struct
sk_buff
*
);
int
(
*
output
)(
struct
sk_buff
*
);
int
(
*
connected_output
)(
struct
sk_buff
*
);
int
(
*
connected_output
)(
struct
sk_buff
*
);
int
(
*
hh_output
)(
struct
sk_buff
*
);
int
(
*
queue_xmit
)(
struct
sk_buff
*
);
int
(
*
queue_xmit
)(
struct
sk_buff
*
);
};
};
...
...
net/atm/clip.c
浏览文件 @
47ec132a
...
@@ -273,7 +273,6 @@ static const struct neigh_ops clip_neigh_ops = {
...
@@ -273,7 +273,6 @@ static const struct neigh_ops clip_neigh_ops = {
.
error_report
=
clip_neigh_error
,
.
error_report
=
clip_neigh_error
,
.
output
=
dev_queue_xmit
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
...
net/core/neighbour.c
浏览文件 @
47ec132a
...
@@ -746,7 +746,7 @@ static void neigh_connect(struct neighbour *neigh)
...
@@ -746,7 +746,7 @@ static void neigh_connect(struct neighbour *neigh)
hh
=
&
neigh
->
hh
;
hh
=
&
neigh
->
hh
;
if
(
hh
->
hh_len
)
if
(
hh
->
hh_len
)
hh
->
hh_output
=
neigh
->
ops
->
hh_outpu
t
;
hh
->
hh_output
=
dev_queue_xmi
t
;
}
}
static
void
neigh_periodic_work
(
struct
work_struct
*
work
)
static
void
neigh_periodic_work
(
struct
work_struct
*
work
)
...
@@ -1222,7 +1222,7 @@ static void neigh_hh_init(struct neighbour *n, struct dst_entry *dst)
...
@@ -1222,7 +1222,7 @@ static void neigh_hh_init(struct neighbour *n, struct dst_entry *dst)
goto
end
;
goto
end
;
if
(
n
->
nud_state
&
NUD_CONNECTED
)
if
(
n
->
nud_state
&
NUD_CONNECTED
)
hh
->
hh_output
=
n
->
ops
->
hh_outpu
t
;
hh
->
hh_output
=
dev_queue_xmi
t
;
else
else
hh
->
hh_output
=
n
->
ops
->
output
;
hh
->
hh_output
=
n
->
ops
->
output
;
...
...
net/decnet/dn_neigh.c
浏览文件 @
47ec132a
...
@@ -64,7 +64,6 @@ static const struct neigh_ops dn_long_ops = {
...
@@ -64,7 +64,6 @@ static const struct neigh_ops dn_long_ops = {
.
error_report
=
dn_long_error_report
,
.
error_report
=
dn_long_error_report
,
.
output
=
dn_long_output
,
.
output
=
dn_long_output
,
.
connected_output
=
dn_long_output
,
.
connected_output
=
dn_long_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -76,7 +75,6 @@ static const struct neigh_ops dn_short_ops = {
...
@@ -76,7 +75,6 @@ static const struct neigh_ops dn_short_ops = {
.
error_report
=
dn_short_error_report
,
.
error_report
=
dn_short_error_report
,
.
output
=
dn_short_output
,
.
output
=
dn_short_output
,
.
connected_output
=
dn_short_output
,
.
connected_output
=
dn_short_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -88,7 +86,6 @@ static const struct neigh_ops dn_phase3_ops = {
...
@@ -88,7 +86,6 @@ static const struct neigh_ops dn_phase3_ops = {
.
error_report
=
dn_short_error_report
,
/* Can use short version here */
.
error_report
=
dn_short_error_report
,
/* Can use short version here */
.
output
=
dn_phase3_output
,
.
output
=
dn_phase3_output
,
.
connected_output
=
dn_phase3_output
,
.
connected_output
=
dn_phase3_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
.
queue_xmit
=
dev_queue_xmit
};
};
...
...
net/ipv4/arp.c
浏览文件 @
47ec132a
...
@@ -138,7 +138,6 @@ static const struct neigh_ops arp_generic_ops = {
...
@@ -138,7 +138,6 @@ static const struct neigh_ops arp_generic_ops = {
.
error_report
=
arp_error_report
,
.
error_report
=
arp_error_report
,
.
output
=
neigh_resolve_output
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_connected_output
,
.
connected_output
=
neigh_connected_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -148,7 +147,6 @@ static const struct neigh_ops arp_hh_ops = {
...
@@ -148,7 +147,6 @@ static const struct neigh_ops arp_hh_ops = {
.
error_report
=
arp_error_report
,
.
error_report
=
arp_error_report
,
.
output
=
neigh_resolve_output
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -156,7 +154,6 @@ static const struct neigh_ops arp_direct_ops = {
...
@@ -156,7 +154,6 @@ static const struct neigh_ops arp_direct_ops = {
.
family
=
AF_INET
,
.
family
=
AF_INET
,
.
output
=
dev_queue_xmit
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -166,7 +163,6 @@ static const struct neigh_ops arp_broken_ops = {
...
@@ -166,7 +163,6 @@ static const struct neigh_ops arp_broken_ops = {
.
error_report
=
arp_error_report
,
.
error_report
=
arp_error_report
,
.
output
=
neigh_compat_output
,
.
output
=
neigh_compat_output
,
.
connected_output
=
neigh_compat_output
,
.
connected_output
=
neigh_compat_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
...
net/ipv6/ndisc.c
浏览文件 @
47ec132a
...
@@ -107,7 +107,6 @@ static const struct neigh_ops ndisc_generic_ops = {
...
@@ -107,7 +107,6 @@ static const struct neigh_ops ndisc_generic_ops = {
.
error_report
=
ndisc_error_report
,
.
error_report
=
ndisc_error_report
,
.
output
=
neigh_resolve_output
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_connected_output
,
.
connected_output
=
neigh_connected_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -117,7 +116,6 @@ static const struct neigh_ops ndisc_hh_ops = {
...
@@ -117,7 +116,6 @@ static const struct neigh_ops ndisc_hh_ops = {
.
error_report
=
ndisc_error_report
,
.
error_report
=
ndisc_error_report
,
.
output
=
neigh_resolve_output
,
.
output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
connected_output
=
neigh_resolve_output
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
@@ -126,7 +124,6 @@ static const struct neigh_ops ndisc_direct_ops = {
...
@@ -126,7 +124,6 @@ static const struct neigh_ops ndisc_direct_ops = {
.
family
=
AF_INET6
,
.
family
=
AF_INET6
,
.
output
=
dev_queue_xmit
,
.
output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
connected_output
=
dev_queue_xmit
,
.
hh_output
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
.
queue_xmit
=
dev_queue_xmit
,
};
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录