]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: provide a default dev->ethtool_ops
authorEric Dumazet <edumazet@google.com>
Sun, 16 Sep 2012 09:17:26 +0000 (09:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2012 19:40:15 +0000 (15:40 -0400)
commit2c60db037034d27f8c636403355d52872da92f81
tree68efc9ad7d95069bbc84feeb24bc58d250610ba3
parent828de4f6bf6e785f7b5497f8f7cfd4d4fbcfdb7e
net: provide a default dev->ethtool_ops

Instead of forcing device drivers to provide empty ethtool_ops or tweak
net/core/ethtool.c again, we could provide a generic ethtool_ops.

This occurred to me when I wanted to add GSO support to GRE tunnels.
ethtool -k support should be generic for all drivers.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Maciej Żenczykowski <maze@google.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
net/core/ethtool.c