KRT: Remove useless option

This commit is contained in:
Ondrej Zajicek (work) 2018-01-23 14:48:07 +01:00
parent def6efa1ef
commit e5ff7929c4
3 changed files with 1 additions and 3 deletions

View file

@ -78,7 +78,6 @@ kern_item:
cf_error("Learning of kernel routes not supported on this platform"); cf_error("Learning of kernel routes not supported on this platform");
#endif #endif
} }
| DEVICE ROUTES bool { THIS_KRT->devroutes = $3; }
| GRACEFUL RESTART bool { THIS_KRT->graceful_restart = $3; } | GRACEFUL RESTART bool { THIS_KRT->graceful_restart = $3; }
| MERGE PATHS bool kern_mp_limit { | MERGE PATHS bool kern_mp_limit {
krt_set_merge_paths(this_channel, $3, $4); krt_set_merge_paths(this_channel, $3, $4);

View file

@ -1159,7 +1159,7 @@ krt_reconfigure(struct proto *p, struct proto_config *CF)
return 0; return 0;
/* persist, graceful restart need not be the same */ /* persist, graceful restart need not be the same */
return o->scan_time == n->scan_time && o->learn == n->learn && o->devroutes == n->devroutes; return o->scan_time == n->scan_time && o->learn == n->learn;
} }
struct proto_config * struct proto_config *

View file

@ -49,7 +49,6 @@ struct krt_config {
btime scan_time; /* How often we re-scan routes */ btime scan_time; /* How often we re-scan routes */
int persist; /* Keep routes when we exit */ int persist; /* Keep routes when we exit */
int learn; /* Learn routes from other sources */ int learn; /* Learn routes from other sources */
int devroutes; /* XXX: remove */
int graceful_restart; /* Regard graceful restart recovery */ int graceful_restart; /* Regard graceful restart recovery */
}; };