net: Use device model to get driver name in skb_gso_segment()
authorBen Hutchings <bhutchings@solarflare.com>
Mon, 16 Jan 2012 12:38:59 +0000 (12:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2012 15:31:12 +0000 (10:31 -0500)
commite52ac3398c3d772d372b9b62ab408fd5eec96840
tree1291fbc00c9fec755be01f49be865219d676b540
parent27a429383b399fc0f68bea55c422d7179f3c8b05
net: Use device model to get driver name in skb_gso_segment()

ethtool operations generally require the caller to hold RTNL and are
not safe to call in atomic context.  The device model provides this
information for most devices; we'll only lose it for some old ISA
drivers.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c