* [PATCH] net: remove struct dst_entry::entry_size
@ 2008-11-11 13:24 Alexey Dobriyan
2008-11-11 13:25 ` [PATCH v2] net: remove struct dst_ops::entry_size Alexey Dobriyan
2008-11-12 1:25 ` [PATCH] net: remove struct dst_entry::entry_size David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2008-11-11 13:24 UTC (permalink / raw)
To: davem; +Cc: netdev
Unused after kmem_cache_zalloc() conversion.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
include/net/dst.h | 1 -
net/decnet/dn_route.c | 1 -
net/ipv4/route.c | 2 --
net/ipv4/xfrm4_policy.c | 1 -
net/ipv6/route.c | 2 --
net/ipv6/xfrm6_policy.c | 1 -
6 files changed, 8 deletions(-)
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -104,7 +104,6 @@ struct dst_ops
void (*link_failure)(struct sk_buff *);
void (*update_pmtu)(struct dst_entry *dst, u32 mtu);
int (*local_out)(struct sk_buff *skb);
- int entry_size;
atomic_t entries;
struct kmem_cache *kmem_cachep;
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -131,7 +131,6 @@ static struct dst_ops dn_dst_ops = {
.negative_advice = dn_dst_negative_advice,
.link_failure = dn_dst_link_failure,
.update_pmtu = dn_dst_update_pmtu,
- .entry_size = sizeof(struct dn_route),
.entries = ATOMIC_INIT(0),
};
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -160,7 +160,6 @@ static struct dst_ops ipv4_dst_ops = {
.link_failure = ipv4_link_failure,
.update_pmtu = ip_rt_update_pmtu,
.local_out = __ip_local_out,
- .entry_size = sizeof(struct rtable),
.entries = ATOMIC_INIT(0),
};
@@ -2701,7 +2700,6 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
.destroy = ipv4_dst_destroy,
.check = ipv4_dst_check,
.update_pmtu = ipv4_rt_blackhole_update_pmtu,
- .entry_size = sizeof(struct rtable),
.entries = ATOMIC_INIT(0),
};
--- a/net/ipv4/xfrm4_policy.c
+++ b/net/ipv4/xfrm4_policy.c
@@ -248,7 +248,6 @@ static struct dst_ops xfrm4_dst_ops = {
.ifdown = xfrm4_dst_ifdown,
.local_out = __ip_local_out,
.gc_thresh = 1024,
- .entry_size = sizeof(struct xfrm_dst),
.entries = ATOMIC_INIT(0),
};
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -108,7 +108,6 @@ static struct dst_ops ip6_dst_ops_template = {
.link_failure = ip6_link_failure,
.update_pmtu = ip6_rt_update_pmtu,
.local_out = __ip6_local_out,
- .entry_size = sizeof(struct rt6_info),
.entries = ATOMIC_INIT(0),
};
@@ -122,7 +121,6 @@ static struct dst_ops ip6_dst_blackhole_ops = {
.destroy = ip6_dst_destroy,
.check = ip6_dst_check,
.update_pmtu = ip6_rt_blackhole_update_pmtu,
- .entry_size = sizeof(struct rt6_info),
.entries = ATOMIC_INIT(0),
};
--- a/net/ipv6/xfrm6_policy.c
+++ b/net/ipv6/xfrm6_policy.c
@@ -279,7 +279,6 @@ static struct dst_ops xfrm6_dst_ops = {
.ifdown = xfrm6_dst_ifdown,
.local_out = __ip6_local_out,
.gc_thresh = 1024,
- .entry_size = sizeof(struct xfrm_dst),
.entries = ATOMIC_INIT(0),
};
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH v2] net: remove struct dst_ops::entry_size
2008-11-11 13:24 [PATCH] net: remove struct dst_entry::entry_size Alexey Dobriyan
@ 2008-11-11 13:25 ` Alexey Dobriyan
2008-11-12 1:25 ` [PATCH] net: remove struct dst_entry::entry_size David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2008-11-11 13:25 UTC (permalink / raw)
To: davem; +Cc: netdev
On Tue, Nov 11, 2008 at 04:24:45PM +0300, Alexey Dobriyan wrote:
> Unused after kmem_cache_zalloc() conversion.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
>
> include/net/dst.h | 1 -
> net/decnet/dn_route.c | 1 -
> net/ipv4/route.c | 2 --
> net/ipv4/xfrm4_policy.c | 1 -
> net/ipv6/route.c | 2 --
> net/ipv6/xfrm6_policy.c | 1 -
> 6 files changed, 8 deletions(-)
>
> --- a/include/net/dst.h
> +++ b/include/net/dst.h
> @@ -104,7 +104,6 @@ struct dst_ops
> void (*link_failure)(struct sk_buff *);
> void (*update_pmtu)(struct dst_entry *dst, u32 mtu);
> int (*local_out)(struct sk_buff *skb);
> - int entry_size;
>
> atomic_t entries;
> struct kmem_cache *kmem_cachep;
> --- a/net/decnet/dn_route.c
> +++ b/net/decnet/dn_route.c
> @@ -131,7 +131,6 @@ static struct dst_ops dn_dst_ops = {
> .negative_advice = dn_dst_negative_advice,
> .link_failure = dn_dst_link_failure,
> .update_pmtu = dn_dst_update_pmtu,
> - .entry_size = sizeof(struct dn_route),
> .entries = ATOMIC_INIT(0),
> };
>
> --- a/net/ipv4/route.c
> +++ b/net/ipv4/route.c
> @@ -160,7 +160,6 @@ static struct dst_ops ipv4_dst_ops = {
> .link_failure = ipv4_link_failure,
> .update_pmtu = ip_rt_update_pmtu,
> .local_out = __ip_local_out,
> - .entry_size = sizeof(struct rtable),
> .entries = ATOMIC_INIT(0),
> };
>
> @@ -2701,7 +2700,6 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
> .destroy = ipv4_dst_destroy,
> .check = ipv4_dst_check,
> .update_pmtu = ipv4_rt_blackhole_update_pmtu,
> - .entry_size = sizeof(struct rtable),
> .entries = ATOMIC_INIT(0),
> };
>
> --- a/net/ipv4/xfrm4_policy.c
> +++ b/net/ipv4/xfrm4_policy.c
> @@ -248,7 +248,6 @@ static struct dst_ops xfrm4_dst_ops = {
> .ifdown = xfrm4_dst_ifdown,
> .local_out = __ip_local_out,
> .gc_thresh = 1024,
> - .entry_size = sizeof(struct xfrm_dst),
> .entries = ATOMIC_INIT(0),
> };
>
> --- a/net/ipv6/route.c
> +++ b/net/ipv6/route.c
> @@ -108,7 +108,6 @@ static struct dst_ops ip6_dst_ops_template = {
> .link_failure = ip6_link_failure,
> .update_pmtu = ip6_rt_update_pmtu,
> .local_out = __ip6_local_out,
> - .entry_size = sizeof(struct rt6_info),
> .entries = ATOMIC_INIT(0),
> };
>
> @@ -122,7 +121,6 @@ static struct dst_ops ip6_dst_blackhole_ops = {
> .destroy = ip6_dst_destroy,
> .check = ip6_dst_check,
> .update_pmtu = ip6_rt_blackhole_update_pmtu,
> - .entry_size = sizeof(struct rt6_info),
> .entries = ATOMIC_INIT(0),
> };
>
> --- a/net/ipv6/xfrm6_policy.c
> +++ b/net/ipv6/xfrm6_policy.c
> @@ -279,7 +279,6 @@ static struct dst_ops xfrm6_dst_ops = {
> .ifdown = xfrm6_dst_ifdown,
> .local_out = __ip6_local_out,
> .gc_thresh = 1024,
> - .entry_size = sizeof(struct xfrm_dst),
> .entries = ATOMIC_INIT(0),
> };
>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] net: remove struct dst_entry::entry_size
2008-11-11 13:24 [PATCH] net: remove struct dst_entry::entry_size Alexey Dobriyan
2008-11-11 13:25 ` [PATCH v2] net: remove struct dst_ops::entry_size Alexey Dobriyan
@ 2008-11-12 1:25 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2008-11-12 1:25 UTC (permalink / raw)
To: adobriyan; +Cc: netdev
From: Alexey Dobriyan <adobriyan@gmail.com>
Date: Tue, 11 Nov 2008 16:24:45 +0300
> Unused after kmem_cache_zalloc() conversion.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-12 1:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-11 13:24 [PATCH] net: remove struct dst_entry::entry_size Alexey Dobriyan
2008-11-11 13:25 ` [PATCH v2] net: remove struct dst_ops::entry_size Alexey Dobriyan
2008-11-12 1:25 ` [PATCH] net: remove struct dst_entry::entry_size David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox