diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-09 14:14:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-09 16:06:10 -0400 |
commit | ddb3b6033ca68d71a5f0611b58b2642729342245 (patch) | |
tree | 73f04d0f75a1ee417b80a7c3dd4b2f76096b1d09 | |
parent | 13259db53ff42c9033d749e01e7d6d3c4859dfd9 (diff) |
net: Remove protocol from struct dst_ops
After my change to neigh_hh_init to obtain the protocol from the
neigh_table there are no more users of protocol in struct dst_ops.
Remove the protocol field from dst_ops and all of it's initializers.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/dst_ops.h | 1 | ||||
-rw-r--r-- | net/bridge/br_nf_core.c | 1 | ||||
-rw-r--r-- | net/decnet/dn_route.c | 1 | ||||
-rw-r--r-- | net/ipv4/route.c | 2 | ||||
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 1 | ||||
-rw-r--r-- | net/ipv6/route.c | 2 | ||||
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 1 |
7 files changed, 0 insertions, 9 deletions
diff --git a/include/net/dst_ops.h b/include/net/dst_ops.h index 1f99a1de0e4f..d64253914a6a 100644 --- a/include/net/dst_ops.h +++ b/include/net/dst_ops.h | |||
@@ -12,7 +12,6 @@ struct sock; | |||
12 | 12 | ||
13 | struct dst_ops { | 13 | struct dst_ops { |
14 | unsigned short family; | 14 | unsigned short family; |
15 | __be16 protocol; | ||
16 | unsigned int gc_thresh; | 15 | unsigned int gc_thresh; |
17 | 16 | ||
18 | int (*gc)(struct dst_ops *ops); | 17 | int (*gc)(struct dst_ops *ops); |
diff --git a/net/bridge/br_nf_core.c b/net/bridge/br_nf_core.c index 387cb3bd017c..20cbb727df4d 100644 --- a/net/bridge/br_nf_core.c +++ b/net/bridge/br_nf_core.c | |||
@@ -54,7 +54,6 @@ static unsigned int fake_mtu(const struct dst_entry *dst) | |||
54 | 54 | ||
55 | static struct dst_ops fake_dst_ops = { | 55 | static struct dst_ops fake_dst_ops = { |
56 | .family = AF_INET, | 56 | .family = AF_INET, |
57 | .protocol = cpu_to_be16(ETH_P_IP), | ||
58 | .update_pmtu = fake_update_pmtu, | 57 | .update_pmtu = fake_update_pmtu, |
59 | .redirect = fake_redirect, | 58 | .redirect = fake_redirect, |
60 | .cow_metrics = fake_cow_metrics, | 59 | .cow_metrics = fake_cow_metrics, |
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 771815575dbd..9ab0c4ba297f 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -136,7 +136,6 @@ int decnet_dst_gc_interval = 2; | |||
136 | 136 | ||
137 | static struct dst_ops dn_dst_ops = { | 137 | static struct dst_ops dn_dst_ops = { |
138 | .family = PF_DECnet, | 138 | .family = PF_DECnet, |
139 | .protocol = cpu_to_be16(ETH_P_DNA_RT), | ||
140 | .gc_thresh = 128, | 139 | .gc_thresh = 128, |
141 | .gc = dn_dst_gc, | 140 | .gc = dn_dst_gc, |
142 | .check = dn_dst_check, | 141 | .check = dn_dst_check, |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index ad5064362c5c..649c8a3f0189 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -152,7 +152,6 @@ static struct neighbour *ipv4_neigh_lookup(const struct dst_entry *dst, | |||
152 | 152 | ||
153 | static struct dst_ops ipv4_dst_ops = { | 153 | static struct dst_ops ipv4_dst_ops = { |
154 | .family = AF_INET, | 154 | .family = AF_INET, |
155 | .protocol = cpu_to_be16(ETH_P_IP), | ||
156 | .check = ipv4_dst_check, | 155 | .check = ipv4_dst_check, |
157 | .default_advmss = ipv4_default_advmss, | 156 | .default_advmss = ipv4_default_advmss, |
158 | .mtu = ipv4_mtu, | 157 | .mtu = ipv4_mtu, |
@@ -2225,7 +2224,6 @@ static u32 *ipv4_rt_blackhole_cow_metrics(struct dst_entry *dst, | |||
2225 | 2224 | ||
2226 | static struct dst_ops ipv4_dst_blackhole_ops = { | 2225 | static struct dst_ops ipv4_dst_blackhole_ops = { |
2227 | .family = AF_INET, | 2226 | .family = AF_INET, |
2228 | .protocol = cpu_to_be16(ETH_P_IP), | ||
2229 | .check = ipv4_blackhole_dst_check, | 2227 | .check = ipv4_blackhole_dst_check, |
2230 | .mtu = ipv4_blackhole_mtu, | 2228 | .mtu = ipv4_blackhole_mtu, |
2231 | .default_advmss = ipv4_default_advmss, | 2229 | .default_advmss = ipv4_default_advmss, |
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index 6156f68a1e90..c224c856247b 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -232,7 +232,6 @@ static void xfrm4_dst_ifdown(struct dst_entry *dst, struct net_device *dev, | |||
232 | 232 | ||
233 | static struct dst_ops xfrm4_dst_ops = { | 233 | static struct dst_ops xfrm4_dst_ops = { |
234 | .family = AF_INET, | 234 | .family = AF_INET, |
235 | .protocol = cpu_to_be16(ETH_P_IP), | ||
236 | .gc = xfrm4_garbage_collect, | 235 | .gc = xfrm4_garbage_collect, |
237 | .update_pmtu = xfrm4_update_pmtu, | 236 | .update_pmtu = xfrm4_update_pmtu, |
238 | .redirect = xfrm4_redirect, | 237 | .redirect = xfrm4_redirect, |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 4688bd4d7f59..06fa819c43c9 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -194,7 +194,6 @@ static struct neighbour *ip6_neigh_lookup(const struct dst_entry *dst, | |||
194 | 194 | ||
195 | static struct dst_ops ip6_dst_ops_template = { | 195 | static struct dst_ops ip6_dst_ops_template = { |
196 | .family = AF_INET6, | 196 | .family = AF_INET6, |
197 | .protocol = cpu_to_be16(ETH_P_IPV6), | ||
198 | .gc = ip6_dst_gc, | 197 | .gc = ip6_dst_gc, |
199 | .gc_thresh = 1024, | 198 | .gc_thresh = 1024, |
200 | .check = ip6_dst_check, | 199 | .check = ip6_dst_check, |
@@ -236,7 +235,6 @@ static u32 *ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, | |||
236 | 235 | ||
237 | static struct dst_ops ip6_dst_blackhole_ops = { | 236 | static struct dst_ops ip6_dst_blackhole_ops = { |
238 | .family = AF_INET6, | 237 | .family = AF_INET6, |
239 | .protocol = cpu_to_be16(ETH_P_IPV6), | ||
240 | .destroy = ip6_dst_destroy, | 238 | .destroy = ip6_dst_destroy, |
241 | .check = ip6_dst_check, | 239 | .check = ip6_dst_check, |
242 | .mtu = ip6_blackhole_mtu, | 240 | .mtu = ip6_blackhole_mtu, |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 48bf5a06847b..8ddf2b545151 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -292,7 +292,6 @@ static void xfrm6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, | |||
292 | 292 | ||
293 | static struct dst_ops xfrm6_dst_ops = { | 293 | static struct dst_ops xfrm6_dst_ops = { |
294 | .family = AF_INET6, | 294 | .family = AF_INET6, |
295 | .protocol = cpu_to_be16(ETH_P_IPV6), | ||
296 | .gc = xfrm6_garbage_collect, | 295 | .gc = xfrm6_garbage_collect, |
297 | .update_pmtu = xfrm6_update_pmtu, | 296 | .update_pmtu = xfrm6_update_pmtu, |
298 | .redirect = xfrm6_redirect, | 297 | .redirect = xfrm6_redirect, |