net: Remove protocol from struct dst_ops
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 9 Mar 2015 18:14:37 +0000 (13:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Mar 2015 20:06:10 +0000 (16:06 -0400)
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>
include/net/dst_ops.h
net/bridge/br_nf_core.c
net/decnet/dn_route.c
net/ipv4/route.c
net/ipv4/xfrm4_policy.c
net/ipv6/route.c
net/ipv6/xfrm6_policy.c

index 1f99a1d..d642539 100644 (file)
@@ -12,7 +12,6 @@ struct sock;
 
 struct dst_ops {
        unsigned short          family;
-       __be16                  protocol;
        unsigned int            gc_thresh;
 
        int                     (*gc)(struct dst_ops *ops);
index 387cb3b..20cbb72 100644 (file)
@@ -54,7 +54,6 @@ static unsigned int fake_mtu(const struct dst_entry *dst)
 
 static struct dst_ops fake_dst_ops = {
        .family         = AF_INET,
-       .protocol       = cpu_to_be16(ETH_P_IP),
        .update_pmtu    = fake_update_pmtu,
        .redirect       = fake_redirect,
        .cow_metrics    = fake_cow_metrics,
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge