]> git.baikalelectronics.ru Git - kernel.git/commit
tun: avoid BUG, dump packet on GSO errors
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Jul 2010 04:32:45 +0000 (04:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2010 03:47:20 +0000 (20:47 -0700)
commitd72ab187ba536aff0c1e0ca58eef7078927258f6
treed440fc0cf90ce8ccdd525a85bdeb70c98b052e87
parent4bc655765c3936bd6cd085a1ce521ed9fa6970c1
tun: avoid BUG, dump packet on GSO errors

There are still some LRO cards that cause GSO errors in tun,
and BUG on this is an unfriendly way to tell the admin
to disable LRO.

Further, experience shows we might have more GSO bugs lurking.
See https://bugzilla.kernel.org/show_bug.cgi?id=16413
as a recent example.
dumping a packet will make it easier to figure it out.

Replace BUG with warning+dump+drop the packet to make
GSO errors in tun less critical and easier to debug.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Alex Unigovsky <unik@compot.ru>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c