Skip to content

Commit c159d30

Browse files
committed
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>
1 parent e143a1a commit c159d30

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

‎net/ipv6/route.c‎

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@
6262
#include <linux/sysctl.h>
6363
#endif
6464

65-
/* Set to 3 to get tracing. */
66-
#define RT6_DEBUG 2
67-
68-
#if RT6_DEBUG >= 3
69-
#define RDBG(x) printk x
70-
#define RT6_TRACE(x...) printk(KERN_DEBUG x)
71-
#else
72-
#define RDBG(x)
73-
#define RT6_TRACE(x...) do { ; } while (0)
74-
#endif
75-
7665
static struct rt6_info *ip6_rt_copy(const struct rt6_info *ort,
7766
const struct in6_addr *dest);
7867
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)
518507
struct rt6_info *match, *rt0;
519508
struct net *net;
520509

521-
RT6_TRACE("%s(fn->leaf=%p, oif=%d)\n",
522-
__func__, fn->leaf, oif);
523-
524510
rt0 = fn->rr_ptr;
525511
if (!rt0)
526512
fn->rr_ptr = rt0 = fn->leaf;
@@ -539,9 +525,6 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict)
539525
fn->rr_ptr = next;
540526
}
541527

542-
RT6_TRACE("%s() => %p\n",
543-
__func__, match);
544-
545528
net = dev_net(rt0->rt6i_dev);
546529
return match ? match : net->ipv6.ip6_null_entry;
547530
}
@@ -2173,10 +2156,9 @@ static int fib6_ifdown(struct rt6_info *rt, void *arg)
21732156
const struct net_device *dev = adn->dev;
21742157

21752158
if ((rt->rt6i_dev == dev || !dev) &&
2176-
rt != adn->net->ipv6.ip6_null_entry) {
2177-
RT6_TRACE("deleted by ifdown %p\n", rt);
2159+
rt != adn->net->ipv6.ip6_null_entry)
21782160
return -1;
2179-
}
2161+
21802162
return 0;
21812163
}
21822164

0 commit comments

Comments
 (0)