From: Stephen Hemminger Date: Fri, 31 Aug 2007 05:16:22 +0000 (-0700) Subject: [BRIDGE]: Fix OOPS when bridging device without ethtool. X-Git-Tag: v2.6.23-rc5~37^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4a488d1824a2cc3514f9ee1298d805bd5edc893;p=pandora-kernel.git [BRIDGE]: Fix OOPS when bridging device without ethtool. Bridge code calls ethtool to get speed. The conversion to using only ethtool_ops broke the case of devices without ethtool_ops. This is a new regression in 2.6.23. Rearranged the switch to a logical order, and use gcc initializer. Ps: speed should have been part of the network device structure from the start rather than burying it in ethtool. Signed-off-by: Stephen Hemminger Acked-by: Matthew Wilcox Signed-off-by: David S. Miller --- Reading git-diff-tree failed