sfc: revert changes to NIC revision numbers

The revision enum values (eg EFX_REV_HUNT_A0) form part of our API,
 and are included in ethtool. If these are inconsistent then ethtool
 will print garbage for a register dump (ethtool -d).

Fixes: 5a6681e22c ("sfc: separate out SFC4000 ("Falcon") support into new sfc-falcon driver")
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Bert Kenward 2017-05-12 17:18:50 +01:00 committed by David S. Miller
parent b12ca80ca1
commit 42e6cae1b3
1 changed files with 6 additions and 2 deletions

View File

@ -18,8 +18,12 @@
#include "mcdi.h" #include "mcdi.h"
enum { enum {
EFX_REV_SIENA_A0 = 0, /* Revisions 0-2 were Falcon A0, A1 and B0 respectively.
EFX_REV_HUNT_A0 = 1, * They are not supported by this driver but these revision numbers
* form part of the ethtool API for register dumping.
*/
EFX_REV_SIENA_A0 = 3,
EFX_REV_HUNT_A0 = 4,
}; };
static inline int efx_nic_rev(struct efx_nic *efx) static inline int efx_nic_rev(struct efx_nic *efx)