Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
b4869889
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看板
提交
b4869889
编写于
7月 01, 2012
作者:
D
David Miller
提交者:
David S. Miller
7月 20, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ipv4: Remove 'rt_mark' from 'struct rtable'
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
d6c0a4f6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
3 addition
and
10 deletion
+3
-10
include/net/route.h
include/net/route.h
+0
-1
net/ipv4/ipmr.c
net/ipv4/ipmr.c
+1
-1
net/ipv4/route.c
net/ipv4/route.c
+2
-7
net/ipv4/xfrm4_policy.c
net/ipv4/xfrm4_policy.c
+0
-1
未找到文件。
include/net/route.h
浏览文件 @
b4869889
...
@@ -52,7 +52,6 @@ struct rtable {
...
@@ -52,7 +52,6 @@ struct rtable {
int
rt_route_iif
;
int
rt_route_iif
;
int
rt_iif
;
int
rt_iif
;
int
rt_oif
;
int
rt_oif
;
__u32
rt_mark
;
/* Info on neighbour */
/* Info on neighbour */
__be32
rt_gateway
;
__be32
rt_gateway
;
...
...
net/ipv4/ipmr.c
浏览文件 @
b4869889
...
@@ -1797,7 +1797,7 @@ static struct mr_table *ipmr_rt_fib_lookup(struct net *net, struct sk_buff *skb)
...
@@ -1797,7 +1797,7 @@ static struct mr_table *ipmr_rt_fib_lookup(struct net *net, struct sk_buff *skb)
.
flowi4_tos
=
RT_TOS
(
iph
->
tos
),
.
flowi4_tos
=
RT_TOS
(
iph
->
tos
),
.
flowi4_oif
=
rt
->
rt_oif
,
.
flowi4_oif
=
rt
->
rt_oif
,
.
flowi4_iif
=
rt
->
rt_iif
,
.
flowi4_iif
=
rt
->
rt_iif
,
.
flowi4_mark
=
rt
->
rt_
mark
,
.
flowi4_mark
=
skb
->
mark
,
};
};
struct
mr_table
*
mrt
;
struct
mr_table
*
mrt
;
int
err
;
int
err
;
...
...
net/ipv4/route.c
浏览文件 @
b4869889
...
@@ -1275,7 +1275,6 @@ static int ip_route_input_mc(struct sk_buff *skb, __be32 daddr, __be32 saddr,
...
@@ -1275,7 +1275,6 @@ static int ip_route_input_mc(struct sk_buff *skb, __be32 daddr, __be32 saddr,
rth
->
rt_route_iif
=
dev
->
ifindex
;
rth
->
rt_route_iif
=
dev
->
ifindex
;
rth
->
rt_iif
=
dev
->
ifindex
;
rth
->
rt_iif
=
dev
->
ifindex
;
rth
->
rt_oif
=
0
;
rth
->
rt_oif
=
0
;
rth
->
rt_mark
=
skb
->
mark
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_gateway
=
daddr
;
rth
->
rt_gateway
=
daddr
;
rth
->
fi
=
NULL
;
rth
->
fi
=
NULL
;
...
@@ -1395,7 +1394,6 @@ static int __mkroute_input(struct sk_buff *skb,
...
@@ -1395,7 +1394,6 @@ static int __mkroute_input(struct sk_buff *skb,
rth
->
rt_route_iif
=
in_dev
->
dev
->
ifindex
;
rth
->
rt_route_iif
=
in_dev
->
dev
->
ifindex
;
rth
->
rt_iif
=
in_dev
->
dev
->
ifindex
;
rth
->
rt_iif
=
in_dev
->
dev
->
ifindex
;
rth
->
rt_oif
=
0
;
rth
->
rt_oif
=
0
;
rth
->
rt_mark
=
skb
->
mark
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_gateway
=
daddr
;
rth
->
rt_gateway
=
daddr
;
rth
->
fi
=
NULL
;
rth
->
fi
=
NULL
;
...
@@ -1562,7 +1560,6 @@ out: return err;
...
@@ -1562,7 +1560,6 @@ out: return err;
rth
->
rt_route_iif
=
dev
->
ifindex
;
rth
->
rt_route_iif
=
dev
->
ifindex
;
rth
->
rt_iif
=
dev
->
ifindex
;
rth
->
rt_iif
=
dev
->
ifindex
;
rth
->
rt_oif
=
0
;
rth
->
rt_oif
=
0
;
rth
->
rt_mark
=
skb
->
mark
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_gateway
=
daddr
;
rth
->
rt_gateway
=
daddr
;
rth
->
fi
=
NULL
;
rth
->
fi
=
NULL
;
...
@@ -1714,7 +1711,6 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
...
@@ -1714,7 +1711,6 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
rth
->
rt_route_iif
=
0
;
rth
->
rt_route_iif
=
0
;
rth
->
rt_iif
=
orig_oif
?
:
dev_out
->
ifindex
;
rth
->
rt_iif
=
orig_oif
?
:
dev_out
->
ifindex
;
rth
->
rt_oif
=
orig_oif
;
rth
->
rt_oif
=
orig_oif
;
rth
->
rt_mark
=
fl4
->
flowi4_mark
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_pmtu
=
0
;
rth
->
rt_gateway
=
fl4
->
daddr
;
rth
->
rt_gateway
=
fl4
->
daddr
;
rth
->
fi
=
NULL
;
rth
->
fi
=
NULL
;
...
@@ -1994,7 +1990,6 @@ struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_or
...
@@ -1994,7 +1990,6 @@ struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_or
rt
->
rt_route_iif
=
ort
->
rt_route_iif
;
rt
->
rt_route_iif
=
ort
->
rt_route_iif
;
rt
->
rt_iif
=
ort
->
rt_iif
;
rt
->
rt_iif
=
ort
->
rt_iif
;
rt
->
rt_oif
=
ort
->
rt_oif
;
rt
->
rt_oif
=
ort
->
rt_oif
;
rt
->
rt_mark
=
ort
->
rt_mark
;
rt
->
rt_pmtu
=
ort
->
rt_pmtu
;
rt
->
rt_pmtu
=
ort
->
rt_pmtu
;
rt
->
rt_genid
=
rt_genid
(
net
);
rt
->
rt_genid
=
rt_genid
(
net
);
...
@@ -2091,8 +2086,8 @@ static int rt_fill_info(struct net *net, __be32 src, struct flowi4 *fl4,
...
@@ -2091,8 +2086,8 @@ static int rt_fill_info(struct net *net, __be32 src, struct flowi4 *fl4,
if
(
rtnetlink_put_metrics
(
skb
,
metrics
)
<
0
)
if
(
rtnetlink_put_metrics
(
skb
,
metrics
)
<
0
)
goto
nla_put_failure
;
goto
nla_put_failure
;
if
(
rt
->
rt
_mark
&&
if
(
fl4
->
flowi4
_mark
&&
nla_put_be32
(
skb
,
RTA_MARK
,
rt
->
rt
_mark
))
nla_put_be32
(
skb
,
RTA_MARK
,
fl4
->
flowi4
_mark
))
goto
nla_put_failure
;
goto
nla_put_failure
;
error
=
rt
->
dst
.
error
;
error
=
rt
->
dst
.
error
;
...
...
net/ipv4/xfrm4_policy.c
浏览文件 @
b4869889
...
@@ -82,7 +82,6 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
...
@@ -82,7 +82,6 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
xdst
->
u
.
rt
.
rt_route_iif
=
fl4
->
flowi4_iif
;
xdst
->
u
.
rt
.
rt_route_iif
=
fl4
->
flowi4_iif
;
xdst
->
u
.
rt
.
rt_iif
=
fl4
->
flowi4_iif
;
xdst
->
u
.
rt
.
rt_iif
=
fl4
->
flowi4_iif
;
xdst
->
u
.
rt
.
rt_oif
=
fl4
->
flowi4_oif
;
xdst
->
u
.
rt
.
rt_oif
=
fl4
->
flowi4_oif
;
xdst
->
u
.
rt
.
rt_mark
=
fl4
->
flowi4_mark
;
xdst
->
u
.
dst
.
dev
=
dev
;
xdst
->
u
.
dst
.
dev
=
dev
;
dev_hold
(
dev
);
dev_hold
(
dev
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录