Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130535
b: refs/heads/master
c: 2d18835
h: refs/heads/master
i:
  130533: 0885022
  130531: 0a6dbcc
  130527: 675d6ec
v: v3
  • Loading branch information
Steve Hodgson authored and David S. Miller committed Jan 30, 2009
1 parent 53fdaca commit 97642f7
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 869b5b3888fbd2024af632e3648c00860ba3cca6
refs/heads/master: 2d18835d65b7433e7e6583f65395f8c01e7874af
4 changes: 0 additions & 4 deletions trunk/drivers/net/sfc/falcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,10 +824,6 @@ static void falcon_handle_rx_not_ok(struct efx_rx_queue *rx_queue,
rx_ev_pause_frm ? " [PAUSE]" : "");
}
#endif

if (unlikely(rx_ev_eth_crc_err && EFX_WORKAROUND_10750(efx) &&
efx->phy_type == PHY_TYPE_SFX7101))
tenxpress_crc_err(efx);
}

/* Handle receive events that are not in-order. */
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/sfc/phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ extern struct efx_phy_operations falcon_sfx7101_phy_ops;
extern struct efx_phy_operations falcon_sft9001_phy_ops;

extern void tenxpress_phy_blink(struct efx_nic *efx, bool blink);
extern void tenxpress_crc_err(struct efx_nic *efx);

/****************************************************************************
* Exported functions from the driver for XFP optical PHYs
Expand Down
20 changes: 0 additions & 20 deletions trunk/drivers/net/sfc/tenxpress.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,25 +189,12 @@
* rails */
#define LNPGA_PDOWN_WAIT (HZ / 5)

static int crc_error_reset_threshold = 100;
module_param(crc_error_reset_threshold, int, 0644);
MODULE_PARM_DESC(crc_error_reset_threshold,
"Max number of CRC errors before XAUI reset");

struct tenxpress_phy_data {
enum efx_loopback_mode loopback_mode;
atomic_t bad_crc_count;
enum efx_phy_mode phy_mode;
int bad_lp_tries;
};

void tenxpress_crc_err(struct efx_nic *efx)
{
struct tenxpress_phy_data *phy_data = efx->phy_data;
if (phy_data != NULL)
atomic_inc(&phy_data->bad_crc_count);
}

static ssize_t show_phy_short_reach(struct device *dev,
struct device_attribute *attr, char *buf)
{
Expand Down Expand Up @@ -627,13 +614,6 @@ static void tenxpress_phy_poll(struct efx_nic *efx)

if (phy_data->phy_mode != PHY_MODE_NORMAL)
return;

if (EFX_WORKAROUND_10750(efx) &&
atomic_read(&phy_data->bad_crc_count) > crc_error_reset_threshold) {
EFX_ERR(efx, "Resetting XAUI due to too many CRC errors\n");
falcon_reset_xaui(efx);
atomic_set(&phy_data->bad_crc_count, 0);
}
}

static void tenxpress_phy_fini(struct efx_nic *efx)
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/net/sfc/workarounds.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define EFX_WORKAROUND_ALWAYS(efx) 1
#define EFX_WORKAROUND_FALCON_A(efx) (falcon_rev(efx) <= FALCON_REV_A1)
#define EFX_WORKAROUND_10G(efx) EFX_IS10G(efx)
#define EFX_WORKAROUND_SFX7101(efx) ((efx)->phy_type == PHY_TYPE_SFX7101)
#define EFX_WORKAROUND_SFT9001A(efx) ((efx)->phy_type == PHY_TYPE_SFT9001A)

/* XAUI resets if link not detected */
Expand All @@ -29,8 +28,6 @@
#define EFX_WORKAROUND_7884 EFX_WORKAROUND_10G
/* TX pkt parser problem with <= 16 byte TXes */
#define EFX_WORKAROUND_9141 EFX_WORKAROUND_ALWAYS
/* Low rate CRC errors require XAUI reset */
#define EFX_WORKAROUND_10750 EFX_WORKAROUND_SFX7101
/* TX_EV_PKT_ERR can be caused by a dangling TX descriptor
* or a PCIe error (bug 11028) */
#define EFX_WORKAROUND_10727 EFX_WORKAROUND_ALWAYS
Expand Down

0 comments on commit 97642f7

Please sign in to comment.