]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: eliminate warning from NETIF_F_UFO on bridge
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 12 Dec 2008 18:27:08 +0000 (10:27 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 18 Dec 2008 17:13:37 +0000 (09:13 -0800)
commitd79c98afbdd27d20777d9b7558240db66d69ca37
treedb788dd9b0dd042c86b33886bf7daa76c6e54947
parentd3bbe24b08edbfb28f68dea0187933b6908d4d85
net: eliminate warning from NETIF_F_UFO on bridge

Based on commit b63365a2d60268a3988285d6c3c6003d7066f93a upstream, but
drastically cut down for 2.6.27.y

The bridge device always causes a warning because when it is first created
it has the no checksum flag set along with all the segmentation/fragmentation
offload bits.  The code in register_netdevice incorrectly checks for only
hardware checksum bit and ignores no checksum bit.

Similar code is already in 2.6.28:
   commit b63365a2d60268a3988285d6c3c6003d7066f93a
   net: Fix disjunct computation of netdev features

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Cc: David Miller <davem@davemloft.net>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/dev.c