Commit 2f499166 authored by Alexey Kuznetsov's avatar Alexey Kuznetsov Committed by Hideaki Yoshifuji

[NET]: Kill reroute from DST ops, unused.

parent ca77d319
...@@ -78,8 +78,6 @@ struct dst_ops ...@@ -78,8 +78,6 @@ struct dst_ops
int (*gc)(void); int (*gc)(void);
struct dst_entry * (*check)(struct dst_entry *, __u32 cookie); struct dst_entry * (*check)(struct dst_entry *, __u32 cookie);
struct dst_entry * (*reroute)(struct dst_entry *,
struct sk_buff *);
void (*destroy)(struct dst_entry *); void (*destroy)(struct dst_entry *);
struct dst_entry * (*negative_advice)(struct dst_entry *); struct dst_entry * (*negative_advice)(struct dst_entry *);
void (*link_failure)(struct sk_buff *); void (*link_failure)(struct sk_buff *);
......
...@@ -100,7 +100,6 @@ static unsigned long dn_rt_deadline = 0; ...@@ -100,7 +100,6 @@ static unsigned long dn_rt_deadline = 0;
static int dn_dst_gc(void); static int dn_dst_gc(void);
static struct dst_entry *dn_dst_check(struct dst_entry *, __u32); static struct dst_entry *dn_dst_check(struct dst_entry *, __u32);
static struct dst_entry *dn_dst_reroute(struct dst_entry *, struct sk_buff *skb);
static struct dst_entry *dn_dst_negative_advice(struct dst_entry *); static struct dst_entry *dn_dst_negative_advice(struct dst_entry *);
static void dn_dst_link_failure(struct sk_buff *); static void dn_dst_link_failure(struct sk_buff *);
static int dn_route_input(struct sk_buff *); static int dn_route_input(struct sk_buff *);
...@@ -119,7 +118,6 @@ static struct dst_ops dn_dst_ops = { ...@@ -119,7 +118,6 @@ static struct dst_ops dn_dst_ops = {
.gc_thresh = 128, .gc_thresh = 128,
.gc = dn_dst_gc, .gc = dn_dst_gc,
.check = dn_dst_check, .check = dn_dst_check,
.reroute = dn_dst_reroute,
.negative_advice = dn_dst_negative_advice, .negative_advice = dn_dst_negative_advice,
.link_failure = dn_dst_link_failure, .link_failure = dn_dst_link_failure,
.entry_size = sizeof(struct dn_route), .entry_size = sizeof(struct dn_route),
...@@ -202,12 +200,6 @@ static struct dst_entry *dn_dst_check(struct dst_entry *dst, __u32 cookie) ...@@ -202,12 +200,6 @@ static struct dst_entry *dn_dst_check(struct dst_entry *dst, __u32 cookie)
return NULL; return NULL;
} }
static struct dst_entry *dn_dst_reroute(struct dst_entry *dst,
struct sk_buff *skb)
{
return NULL;
}
/* /*
* This is called through sendmsg() when you specify MSG_TRYHARD * This is called through sendmsg() when you specify MSG_TRYHARD
* and there is already a route in cache. * and there is already a route in cache.
......
...@@ -130,8 +130,6 @@ static struct timer_list rt_periodic_timer; ...@@ -130,8 +130,6 @@ static struct timer_list rt_periodic_timer;
*/ */
static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie); static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie);
static struct dst_entry *ipv4_dst_reroute(struct dst_entry *dst,
struct sk_buff *skb);
static void ipv4_dst_destroy(struct dst_entry *dst); static void ipv4_dst_destroy(struct dst_entry *dst);
static struct dst_entry *ipv4_negative_advice(struct dst_entry *dst); static struct dst_entry *ipv4_negative_advice(struct dst_entry *dst);
static void ipv4_link_failure(struct sk_buff *skb); static void ipv4_link_failure(struct sk_buff *skb);
...@@ -143,7 +141,6 @@ struct dst_ops ipv4_dst_ops = { ...@@ -143,7 +141,6 @@ struct dst_ops ipv4_dst_ops = {
.protocol = __constant_htons(ETH_P_IP), .protocol = __constant_htons(ETH_P_IP),
.gc = rt_garbage_collect, .gc = rt_garbage_collect,
.check = ipv4_dst_check, .check = ipv4_dst_check,
.reroute = ipv4_dst_reroute,
.destroy = ipv4_dst_destroy, .destroy = ipv4_dst_destroy,
.negative_advice = ipv4_negative_advice, .negative_advice = ipv4_negative_advice,
.link_failure = ipv4_link_failure, .link_failure = ipv4_link_failure,
...@@ -1112,12 +1109,6 @@ static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie) ...@@ -1112,12 +1109,6 @@ static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie)
return NULL; return NULL;
} }
static struct dst_entry *ipv4_dst_reroute(struct dst_entry *dst,
struct sk_buff *skb)
{
return NULL;
}
static void ipv4_dst_destroy(struct dst_entry *dst) static void ipv4_dst_destroy(struct dst_entry *dst)
{ {
struct rtable *rt = (struct rtable *) dst; struct rtable *rt = (struct rtable *) dst;
......
...@@ -78,8 +78,6 @@ static int ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40; ...@@ -78,8 +78,6 @@ static int ip6_rt_min_advmss = IPV6_MIN_MTU - 20 - 40;
static struct rt6_info * ip6_rt_copy(struct rt6_info *ort); static struct rt6_info * ip6_rt_copy(struct rt6_info *ort);
static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie); static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie);
static struct dst_entry *ip6_dst_reroute(struct dst_entry *dst,
struct sk_buff *skb);
static struct dst_entry *ip6_negative_advice(struct dst_entry *); static struct dst_entry *ip6_negative_advice(struct dst_entry *);
static int ip6_dst_gc(void); static int ip6_dst_gc(void);
...@@ -93,7 +91,6 @@ static struct dst_ops ip6_dst_ops = { ...@@ -93,7 +91,6 @@ static struct dst_ops ip6_dst_ops = {
ip6_dst_gc, ip6_dst_gc,
ip6_dst_check, ip6_dst_check,
ip6_dst_reroute,
NULL, NULL,
ip6_negative_advice, ip6_negative_advice,
ip6_link_failure, ip6_link_failure,
...@@ -510,16 +507,6 @@ static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie) ...@@ -510,16 +507,6 @@ static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie)
return NULL; return NULL;
} }
static struct dst_entry *ip6_dst_reroute(struct dst_entry *dst, struct sk_buff *skb)
{
/*
* FIXME
*/
RDBG(("ip6_dst_reroute(%p,%p)[%p] (AIEEE)\n", dst, skb,
__builtin_return_address(0)));
return NULL;
}
static struct dst_entry *ip6_negative_advice(struct dst_entry *dst) static struct dst_entry *ip6_negative_advice(struct dst_entry *dst)
{ {
struct rt6_info *rt = (struct rt6_info *) dst; struct rt6_info *rt = (struct rt6_info *) dst;
......
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