ixgb LR card support
Subsystems (2)
PATCH 1/1 ixgb LR card support
From: Phil Sorber <[email protected]>
This enables the ixgb driver to be used for LR cards as well.
Signed-off-by Andrew Morton <[email protected]>
---
25-akpm/drivers/net/ixgb/ixgb_hw.c | 1 + 25-akpm/drivers/net/ixgb/ixgb_ids.h | 1 + 25-akpm/drivers/net/ixgb/ixgb_main.c | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-)
drivers/net/ixgb/ixgb_hw.c renamed from drivers/net/ixgb/ixgb_hw.c~ixgb-lr-card-support +1 -0
@@ -198,6 +198,7 @@ static ixgb_phy_type ixgb_identify_phy(sbreak ;case IXGB_DEVICE_ID_82597EX_SR : +case IXGB_DEVICE_ID_82597EX_LR :/* The SR adapters carry two different types of XPAK optics * modules; read the vendor identifier to determine the exact * type of optics. */
drivers/net/ixgb/ixgb_ids.h renamed from drivers/net/ixgb/ixgb_ids.h~ixgb-lr-card-support +1 -0
@@ -38,6 +38,7 @@#define IXGB_DEVICE_ID_82597EX 0x1048#define IXGB_DEVICE_ID_82597EX_SR 0x1A48 +#define IXGB_DEVICE_ID_82597EX_LR 0x1B48#define IXGB_SUBDEVICE_ID_A11F 0xA11F#define IXGB_SUBDEVICE_ID_A01F 0xA01F
drivers/net/ixgb/ixgb_main.c renamed from drivers/net/ixgb/ixgb_main.c~ixgb-lr-card-support +4 -1
@@ -46,6 +46,8 @@ static struct pci_device_id ixgb_pci_tbl PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_SR, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, + {INTEL_VENDOR_ID, IXGB_DEVICE_ID_82597EX_LR, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},/* required last entry */ {0,}
@@ -511,7 +513,8 @@ static int __devinit ixgb_sw_init(struct hw->max_frame_size = netdev->mtu +ENET_HEADER_SIZE +ENET_FCS_LENGTH ;if ((hw->device_id ==IXGB_DEVICE_ID_82597EX ) - || (hw->device_id ==IXGB_DEVICE_ID_82597EX_SR )) + || (hw->device_id ==IXGB_DEVICE_ID_82597EX_SR ) + || (hw->device_id ==IXGB_DEVICE_ID_82597EX_LR )) hw->mac_type = ixgb_82597;else {/* should never have loaded on this device */
_