Patchwork obsolete config in kernel source (IP_ROUTE_PERVASIVE)

mail settings
Submitter Christoph Egger
Date Feb. 3, 2010, 4:05 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/44389/
State Accepted
Delegated to: David Miller
Headers show


Christoph Egger - Feb. 3, 2010, 4:05 p.m.
Hi all!

	As part of the VAMOS[0] research project at the University of
Erlangen we're checking referential integrity between kernel KConfig
options and in-code Conditional blocks.

	According to my search CONFIG_IP_ROUTE_PERVASIVE is not
defined in any 2.4-2.6 kernel (not #define d and not in
KConfig). However some tiny piece of code still checks it. If this is
really a leftover (as I expect) it might be a good idea to actually
remove that unreachable bit of code.

	Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.


	Christoph Egger



From 3c33c76fba95a529b67799cefbddbb688807c0fa Mon Sep 17 00:00:00 2001
From: Christoph Egger <>
Date: Wed, 3 Feb 2010 16:37:43 +0100

CONFIG_IP_ROUTE_PERVASIVE is missing a corresponding config
IP_ROUTE_PERVASIVE somewhere in KConfig (and missing it for ages
already) so it looks like some aging artefact no longer needed.

Therefor this patch kills of the only remaining reference to that
config Item removing the already unrechable code snipet.

Signed-off-by: Christoph Egger <>
 net/ipv4/fib_semantics.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index ed19aa6..235c1ac 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -527,10 +527,6 @@  static int fib_check_nh(struct fib_config *cfg, struct fib_info *fi,
 	if (nh->nh_gw) {
 		struct fib_result res;
-		if (nh->nh_flags&RTNH_F_PERVASIVE)
-			return 0;
 		if (nh->nh_flags&RTNH_F_ONLINK) {
 			struct net_device *dev;