aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index 121df1f676e3..6ee9fc8d8e77 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -9251,6 +9251,12 @@ static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp)
9251 val = SHMEM_RD(bp, dev_info.port_hw_config[port]. 9251 val = SHMEM_RD(bp, dev_info.port_hw_config[port].
9252 iscsi_mac_lower); 9252 iscsi_mac_lower);
9253 bnx2x_set_mac_buf(iscsi_mac, val, val2); 9253 bnx2x_set_mac_buf(iscsi_mac, val, val2);
9254
9255 val2 = SHMEM_RD(bp, dev_info.port_hw_config[port].
9256 fcoe_fip_mac_upper);
9257 val = SHMEM_RD(bp, dev_info.port_hw_config[port].
9258 fcoe_fip_mac_lower);
9259 bnx2x_set_mac_buf(fip_mac, val, val2);
9254#endif 9260#endif
9255 } 9261 }
9256 9262
@@ -9258,13 +9264,9 @@ static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp)
9258 memcpy(bp->dev->perm_addr, bp->dev->dev_addr, ETH_ALEN); 9264 memcpy(bp->dev->perm_addr, bp->dev->dev_addr, ETH_ALEN);
9259 9265
9260#ifdef BCM_CNIC 9266#ifdef BCM_CNIC
9261 /* Set the FCoE MAC in modes other then MF_SI */ 9267 /* Set the FCoE MAC in MF_SD mode */
9262 if (!CHIP_IS_E1x(bp)) { 9268 if (!CHIP_IS_E1x(bp) && IS_MF_SD(bp))
9263 if (IS_MF_SD(bp)) 9269 memcpy(fip_mac, bp->dev->dev_addr, ETH_ALEN);
9264 memcpy(fip_mac, bp->dev->dev_addr, ETH_ALEN);
9265 else if (!IS_MF(bp))
9266 memcpy(fip_mac, iscsi_mac, ETH_ALEN);
9267 }
9268 9270
9269 /* Disable iSCSI if MAC configuration is 9271 /* Disable iSCSI if MAC configuration is
9270 * invalid. 9272 * invalid.