aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-09 14:14:37 -0400
committerDavid S. Miller <davem@davemloft.net>2015-03-09 16:06:10 -0400
commitddb3b6033ca68d71a5f0611b58b2642729342245 (patch)
tree73f04d0f75a1ee417b80a7c3dd4b2f76096b1d09 /net/ipv4/route.c
parent13259db53ff42c9033d749e01e7d6d3c4859dfd9 (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>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 0 insertions, 2 deletions
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
153static struct dst_ops ipv4_dst_ops = { 153static 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
2226static struct dst_ops ipv4_dst_blackhole_ops = { 2225static 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,