net: filter: Use WARN_RATELIMIT
A mis-configured filter can spam the logs with lots of stack traces. Rate-limit the warnings and add printout of the bogus filter information. Original-patch-by: Ben Greear <greearb@candelatech.com> Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b3eec79b07
commit
6c4a5cb219
@ -350,7 +350,9 @@ load_b:
|
||||
continue;
|
||||
}
|
||||
default:
|
||||
WARN_ON(1);
|
||||
WARN_RATELIMIT(1, "Unknown code:%u jt:%u tf:%u k:%u\n",
|
||||
fentry->code, fentry->jt,
|
||||
fentry->jf, fentry->k);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user