37#include "../common/routing_table.h"
47 volatile bool *stop_compressing) {
50 int target_length = 0;
51 if (compress_as_much_as_possible == 0) {
54 log_info(
"target length of %d", target_length);
59 if (*stop_compressing) {
60 log_info(
"Not compressing as asked to stop");
65 if (
minimise_run(target_length, failed_by_malloc, stop_compressing)) {
bool run_compressor(int compress_as_much_as_possible, bool *failed_by_malloc, volatile bool *stop_compressing)
The callback for setting off the router compressor.
SpiNNaker debug header file.
void log_debug(const char *message,...)
This function logs debugging messages. This level of message is normally not printed except when the ...
void log_info(const char *message,...)
This function logs informational messages. This is the lowest level of message normally printed.
bool minimise_run(int target_length, bool *failed_by_malloc, volatile bool *stop_compressing)
Apply the ordered covering algorithm to a routing table.
An ordered covering of routing table entries.
SpiNNaker routing table minimisation.
How to remove default routes from a routing table.
static bool remove_default_routes_minimise(int target_length)
Remove defaultable routes from a routing table if that helps.
int routing_table_get_n_entries(void)
Get the number of entries in the routing table.