Commit 6bb3ce25 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

net: remove struct dst_entry::entry_size

Unused after kmem_cache_zalloc() conversion.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b739ba5
...@@ -104,7 +104,6 @@ struct dst_ops ...@@ -104,7 +104,6 @@ struct dst_ops
void (*link_failure)(struct sk_buff *); void (*link_failure)(struct sk_buff *);
void (*update_pmtu)(struct dst_entry *dst, u32 mtu); void (*update_pmtu)(struct dst_entry *dst, u32 mtu);
int (*local_out)(struct sk_buff *skb); int (*local_out)(struct sk_buff *skb);
int entry_size;
atomic_t entries; atomic_t entries;
struct kmem_cache *kmem_cachep; struct kmem_cache *kmem_cachep;
......
...@@ -131,7 +131,6 @@ static struct dst_ops dn_dst_ops = { ...@@ -131,7 +131,6 @@ static struct dst_ops dn_dst_ops = {
.negative_advice = dn_dst_negative_advice, .negative_advice = dn_dst_negative_advice,
.link_failure = dn_dst_link_failure, .link_failure = dn_dst_link_failure,
.update_pmtu = dn_dst_update_pmtu, .update_pmtu = dn_dst_update_pmtu,
.entry_size = sizeof(struct dn_route),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
......
...@@ -160,7 +160,6 @@ static struct dst_ops ipv4_dst_ops = { ...@@ -160,7 +160,6 @@ static struct dst_ops ipv4_dst_ops = {
.link_failure = ipv4_link_failure, .link_failure = ipv4_link_failure,
.update_pmtu = ip_rt_update_pmtu, .update_pmtu = ip_rt_update_pmtu,
.local_out = __ip_local_out, .local_out = __ip_local_out,
.entry_size = sizeof(struct rtable),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
...@@ -2701,7 +2700,6 @@ static struct dst_ops ipv4_dst_blackhole_ops = { ...@@ -2701,7 +2700,6 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
.destroy = ipv4_dst_destroy, .destroy = ipv4_dst_destroy,
.check = ipv4_dst_check, .check = ipv4_dst_check,
.update_pmtu = ipv4_rt_blackhole_update_pmtu, .update_pmtu = ipv4_rt_blackhole_update_pmtu,
.entry_size = sizeof(struct rtable),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
......
...@@ -246,7 +246,6 @@ static struct dst_ops xfrm4_dst_ops = { ...@@ -246,7 +246,6 @@ static struct dst_ops xfrm4_dst_ops = {
.ifdown = xfrm4_dst_ifdown, .ifdown = xfrm4_dst_ifdown,
.local_out = __ip_local_out, .local_out = __ip_local_out,
.gc_thresh = 1024, .gc_thresh = 1024,
.entry_size = sizeof(struct xfrm_dst),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
......
...@@ -108,7 +108,6 @@ static struct dst_ops ip6_dst_ops_template = { ...@@ -108,7 +108,6 @@ static struct dst_ops ip6_dst_ops_template = {
.link_failure = ip6_link_failure, .link_failure = ip6_link_failure,
.update_pmtu = ip6_rt_update_pmtu, .update_pmtu = ip6_rt_update_pmtu,
.local_out = __ip6_local_out, .local_out = __ip6_local_out,
.entry_size = sizeof(struct rt6_info),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
...@@ -122,7 +121,6 @@ static struct dst_ops ip6_dst_blackhole_ops = { ...@@ -122,7 +121,6 @@ static struct dst_ops ip6_dst_blackhole_ops = {
.destroy = ip6_dst_destroy, .destroy = ip6_dst_destroy,
.check = ip6_dst_check, .check = ip6_dst_check,
.update_pmtu = ip6_rt_blackhole_update_pmtu, .update_pmtu = ip6_rt_blackhole_update_pmtu,
.entry_size = sizeof(struct rt6_info),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
......
...@@ -277,7 +277,6 @@ static struct dst_ops xfrm6_dst_ops = { ...@@ -277,7 +277,6 @@ static struct dst_ops xfrm6_dst_ops = {
.ifdown = xfrm6_dst_ifdown, .ifdown = xfrm6_dst_ifdown,
.local_out = __ip6_local_out, .local_out = __ip6_local_out,
.gc_thresh = 1024, .gc_thresh = 1024,
.entry_size = sizeof(struct xfrm_dst),
.entries = ATOMIC_INIT(0), .entries = ATOMIC_INIT(0),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment