Skip to content

Commit 6bb3ce2

Browse files
Alexey Dobriyandavem330
authored andcommitted
net: remove struct dst_entry::entry_size
Unused after kmem_cache_zalloc() conversion. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9b739ba commit 6bb3ce2

File tree

6 files changed

+0
-8
lines changed

6 files changed

+0
-8
lines changed

include/net/dst.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ struct dst_ops
104104
void (*link_failure)(struct sk_buff *);
105105
void (*update_pmtu)(struct dst_entry *dst, u32 mtu);
106106
int (*local_out)(struct sk_buff *skb);
107-
int entry_size;
108107

109108
atomic_t entries;
110109
struct kmem_cache *kmem_cachep;

net/decnet/dn_route.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ static struct dst_ops dn_dst_ops = {
131131
.negative_advice = dn_dst_negative_advice,
132132
.link_failure = dn_dst_link_failure,
133133
.update_pmtu = dn_dst_update_pmtu,
134-
.entry_size = sizeof(struct dn_route),
135134
.entries = ATOMIC_INIT(0),
136135
};
137136

net/ipv4/route.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ static struct dst_ops ipv4_dst_ops = {
160160
.link_failure = ipv4_link_failure,
161161
.update_pmtu = ip_rt_update_pmtu,
162162
.local_out = __ip_local_out,
163-
.entry_size = sizeof(struct rtable),
164163
.entries = ATOMIC_INIT(0),
165164
};
166165

@@ -2701,7 +2700,6 @@ static struct dst_ops ipv4_dst_blackhole_ops = {
27012700
.destroy = ipv4_dst_destroy,
27022701
.check = ipv4_dst_check,
27032702
.update_pmtu = ipv4_rt_blackhole_update_pmtu,
2704-
.entry_size = sizeof(struct rtable),
27052703
.entries = ATOMIC_INIT(0),
27062704
};
27072705

net/ipv4/xfrm4_policy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ static struct dst_ops xfrm4_dst_ops = {
246246
.ifdown = xfrm4_dst_ifdown,
247247
.local_out = __ip_local_out,
248248
.gc_thresh = 1024,
249-
.entry_size = sizeof(struct xfrm_dst),
250249
.entries = ATOMIC_INIT(0),
251250
};
252251

net/ipv6/route.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ static struct dst_ops ip6_dst_ops_template = {
108108
.link_failure = ip6_link_failure,
109109
.update_pmtu = ip6_rt_update_pmtu,
110110
.local_out = __ip6_local_out,
111-
.entry_size = sizeof(struct rt6_info),
112111
.entries = ATOMIC_INIT(0),
113112
};
114113

@@ -122,7 +121,6 @@ static struct dst_ops ip6_dst_blackhole_ops = {
122121
.destroy = ip6_dst_destroy,
123122
.check = ip6_dst_check,
124123
.update_pmtu = ip6_rt_blackhole_update_pmtu,
125-
.entry_size = sizeof(struct rt6_info),
126124
.entries = ATOMIC_INIT(0),
127125
};
128126

net/ipv6/xfrm6_policy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ static struct dst_ops xfrm6_dst_ops = {
277277
.ifdown = xfrm6_dst_ifdown,
278278
.local_out = __ip6_local_out,
279279
.gc_thresh = 1024,
280-
.entry_size = sizeof(struct xfrm_dst),
281280
.entries = ATOMIC_INIT(0),
282281
};
283282

0 commit comments

Comments
 (0)