mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
ipv6: Kill useless route tracing bits in net/ipv6/route.c
RDBG() wasn't even used, and the messages printed by RT6_DEBUG() were far from useful. Just get rid of all this stuff, we can replace it with something more suitable if we want. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e143a1ada3
commit
c159d30c59
1 changed files with 2 additions and 20 deletions
|
@ -62,17 +62,6 @@
|
||||||
#include <linux/sysctl.h>
|
#include <linux/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set to 3 to get tracing. */
|
|
||||||
#define RT6_DEBUG 2
|
|
||||||
|
|
||||||
#if RT6_DEBUG >= 3
|
|
||||||
#define RDBG(x) printk x
|
|
||||||
#define RT6_TRACE(x...) printk(KERN_DEBUG x)
|
|
||||||
#else
|
|
||||||
#define RDBG(x)
|
|
||||||
#define RT6_TRACE(x...) do { ; } while (0)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static struct rt6_info *ip6_rt_copy(const struct rt6_info *ort,
|
static struct rt6_info *ip6_rt_copy(const struct rt6_info *ort,
|
||||||
const struct in6_addr *dest);
|
const struct in6_addr *dest);
|
||||||
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);
|
||||||
|
@ -518,9 +507,6 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict)
|
||||||
struct rt6_info *match, *rt0;
|
struct rt6_info *match, *rt0;
|
||||||
struct net *net;
|
struct net *net;
|
||||||
|
|
||||||
RT6_TRACE("%s(fn->leaf=%p, oif=%d)\n",
|
|
||||||
__func__, fn->leaf, oif);
|
|
||||||
|
|
||||||
rt0 = fn->rr_ptr;
|
rt0 = fn->rr_ptr;
|
||||||
if (!rt0)
|
if (!rt0)
|
||||||
fn->rr_ptr = rt0 = fn->leaf;
|
fn->rr_ptr = rt0 = fn->leaf;
|
||||||
|
@ -539,9 +525,6 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict)
|
||||||
fn->rr_ptr = next;
|
fn->rr_ptr = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
RT6_TRACE("%s() => %p\n",
|
|
||||||
__func__, match);
|
|
||||||
|
|
||||||
net = dev_net(rt0->rt6i_dev);
|
net = dev_net(rt0->rt6i_dev);
|
||||||
return match ? match : net->ipv6.ip6_null_entry;
|
return match ? match : net->ipv6.ip6_null_entry;
|
||||||
}
|
}
|
||||||
|
@ -2173,10 +2156,9 @@ static int fib6_ifdown(struct rt6_info *rt, void *arg)
|
||||||
const struct net_device *dev = adn->dev;
|
const struct net_device *dev = adn->dev;
|
||||||
|
|
||||||
if ((rt->rt6i_dev == dev || !dev) &&
|
if ((rt->rt6i_dev == dev || !dev) &&
|
||||||
rt != adn->net->ipv6.ip6_null_entry) {
|
rt != adn->net->ipv6.ip6_null_entry)
|
||||||
RT6_TRACE("deleted by ifdown %p\n", rt);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue