]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 May 2013 16:41:10 +0000 (09:41 -0700)
commit4087320fd8d0164c4b53fe5f9c26c0d3eaba7d2d
treeeec3227d92d224f68f1902f866bef7fa1613c8d2
parent7575f50ffc847587909648242efdfd0951eb27b9
net: rate-limit warn-bad-offload splats.

[ Upstream commit c846ad9b880ece01bb4d8d07ba917734edf0324f ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c