]> git.baikalelectronics.ru Git - kernel.git/commit
net: rate-limit warn-bad-offload splats.
authorBen Greear <greearb@candelatech.com>
Fri, 19 Apr 2013 10:45:52 +0000 (10:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 21:57:49 +0000 (17:57 -0400)
commit43efa604dd68d1cc1821f2dee4777f22f7dcb81e
tree93c3e6e09b134a53d0c9f696d1a7ca3a5f438e3a
parentdb69b7a37b418768f25fee775dc0c5f948fa026b
net: rate-limit warn-bad-offload splats.

If one does do something unfortunate and allow a
bad offload bug into the kernel, this the
skb_warn_bad_offload can effectively live-lock the
system, filling the logs with the same error over
and over.

Add rate limitation to this so that box remains otherwise
functional in this case.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c