fib_algo(4): Lower level of algorithm switching messages to LOG_INFO

Otherwise, with the default flm_debug_level of LOG_NOTICE, it's rather
easy to trigger debug messages such as:
[fib_algo] inet.0 (bsearch4#18) rebuild_fd_flm: switching algo to
radix4_lockless

Also, the "severity" of these events generally only justifies LOG_INFO
and not LOG_NOTICE.

Reviewed by:	melifaro

(cherry picked from commit ed81a15517b8a8f587fd7282c3690513bb798242)
This commit is contained in:
Marius Strobl 2024-02-05 20:36:13 +01:00 committed by Franco Fichtner
parent 94d51c89b5
commit eb5aa52e2f
1 changed files with 1 additions and 1 deletions

View File

@ -1382,7 +1382,7 @@ rebuild_fd_flm(struct fib_data *fd, struct fib_lookup_module *flm_new)
if (flm_new == fd->fd_flm)
fd_tmp = fd;
else
FD_PRINTF(LOG_NOTICE, fd, "switching algo to %s", flm_new->flm_name);
FD_PRINTF(LOG_INFO, fd, "switching algo to %s", flm_new->flm_name);
result = setup_fd_instance(flm_new, fd->fd_rh, fd_tmp, &fd_new, true);
if (result != FLM_SUCCESS) {