[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1318563481-19631-1-git-send-email-mchan@broadcom.com>
Date: Thu, 13 Oct 2011 20:38:01 -0700
From: "Michael Chan" <mchan@...adcom.com>
To: davem@...emloft.net
cc: netdev@...r.kernel.org, dmitry@...adcom.com, eilong@...adcom.com
Subject: [PATCH net-next] bnx2x: Disable LRO on FCoE or iSCSI boot
device
From: Dmitry Kravkov <dmitry@...adcom.com>
For an FCoE or iSCSI boot device, the networking side must stay "up" all
the time. Otherwise, the FCoE/iSCSI interface driven by bnx2i/bnx2fc
will be reset and we'll lose the root file system.
If LRO is enabled, scripts that enable IP forwarding or bridging will
disable LRO and cause the device to be reset. Disabling LRO on these
boot devices will prevent the reset.
Signed-off-by: Dmitry Kravkov <dmitry@...adcom.com>
Signed-off-by: Michael Chan <mchan@...adcom.com>
---
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 6486ab8..4960048 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -9794,6 +9794,7 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
int func;
int timer_interval;
int rc;
+ u32 cnic_boot_device;
mutex_init(&bp->port.phy_mutex);
mutex_init(&bp->fw_mb_mutex);
@@ -9840,8 +9841,11 @@ static int __devinit bnx2x_init_bp(struct bnx2x *bp)
bp->multi_mode = multi_mode;
+ cnic_boot_device =
+ !!SHMEM_RD(bp, func_mb[BP_FW_MB_IDX(bp)].iscsi_boot_signature);
+
/* Set TPA flags */
- if (disable_tpa) {
+ if (disable_tpa || cnic_boot_device) {
bp->flags &= ~TPA_ENABLE_FLAG;
bp->dev->features &= ~NETIF_F_LRO;
} else {
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists