]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: EEPROM dump no longer works for tg3 and natsemi
authorMandeep Singh Baines <msb@google.com>
Fri, 25 Apr 2008 03:55:56 +0000 (20:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Apr 2008 03:55:56 +0000 (20:55 -0700)
commit2e8004949e949c50ec86e618a3b6ec8edca6b0c7
tree9c4a6c938ac864793089c044e9e131c84a177339
parent05ec1f880b1a2ae9fcdcd71aae82c3746e905169
ethtool: EEPROM dump no longer works for tg3 and natsemi

In the ethtool user-space application, tg3 and natsemi over-ride the
default implementation of dump_eeprom(). In both tg3_dump_eeprom() and
natsemi_dump_eeprom(), there is a magic number check which is not
present in the default implementation.

Commit cefdf635 ("[ETHTOOL]: Add support for large eeproms") snipped
the code which copied the ethtool_eeprom structure back to
user-space. tg3 and natsemi are over-writing the magic number field
and then checking it in user-space. With the ethtool_eeprom copy
removed, the check is failing.

The fix is simple. Add the ethtool_eeprom copy back.

Signed-off-by: Mandeep Singh Baines <msb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c