sfc: remove RESET_TYPE_RX_RECOVERY
authorEdward Cree <ecree@solarflare.com>
Thu, 1 Dec 2016 17:01:19 +0000 (17:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Dec 2016 20:39:38 +0000 (15:39 -0500)
It's no longer used now that Falcon is gone.

Also remove a reference in a comment to an ioctl that doesn't exist.

Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/enum.h

index 4a234a8d38965fa78f22baf140f3c885c47a9954..da7028df3fb6332912b3712dc8945812ea6b44d5 100644 (file)
@@ -82,7 +82,6 @@ const char *const efx_reset_type_names[] = {
        [RESET_TYPE_DISABLE]            = "DISABLE",
        [RESET_TYPE_TX_WATCHDOG]        = "TX_WATCHDOG",
        [RESET_TYPE_INT_ERROR]          = "INT_ERROR",
-       [RESET_TYPE_RX_RECOVERY]        = "RX_RECOVERY",
        [RESET_TYPE_DMA_ERROR]          = "DMA_ERROR",
        [RESET_TYPE_TX_SKIP]            = "TX_SKIP",
        [RESET_TYPE_MC_FAILURE]         = "MC_FAILURE",
index c94f56271dd451eba1990720034ccc217cdf5ed2..6fa824211d914f0fa6673f215f98ed056e59d37d 100644 (file)
@@ -148,7 +148,6 @@ enum efx_loopback_mode {
  * @RESET_TYPE_DISABLE: Reset datapath, MAC and PHY; leave NIC disabled
  * @RESET_TYPE_TX_WATCHDOG: reset due to TX watchdog
  * @RESET_TYPE_INT_ERROR: reset due to internal error
- * @RESET_TYPE_RX_RECOVERY: reset to recover from RX datapath errors
  * @RESET_TYPE_DMA_ERROR: DMA error
  * @RESET_TYPE_TX_SKIP: hardware completed empty tx descriptors
  * @RESET_TYPE_MC_FAILURE: MC reboot/assertion
@@ -166,15 +165,13 @@ enum reset_type {
        RESET_TYPE_MAX_METHOD,
        RESET_TYPE_TX_WATCHDOG,
        RESET_TYPE_INT_ERROR,
-       RESET_TYPE_RX_RECOVERY,
        RESET_TYPE_DMA_ERROR,
        RESET_TYPE_TX_SKIP,
        RESET_TYPE_MC_FAILURE,
        /* RESET_TYPE_MCDI_TIMEOUT is actually a method, not just a reason, but
         * it doesn't fit the scope hierarchy (not well-ordered by inclusion).
         * We encode this by having its enum value be greater than
-        * RESET_TYPE_MAX_METHOD. This also prevents issuing it with
-        * efx_ioctl_reset.
+        * RESET_TYPE_MAX_METHOD.
         */
        RESET_TYPE_MCDI_TIMEOUT,
        RESET_TYPE_MAX,