Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278535
b: refs/heads/master
c: 7185bb3
h: refs/heads/master
i:
  278533: f8e4a09
  278531: 5af6f58
  278527: 60182f3
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Dec 9, 2011
1 parent eae9d81 commit b021a41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 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: 6d4cdf47d2cc9d40227c67c79a4942e36ed1b0ba
refs/heads/master: 7185bb335a1493f0ce27e9e94a1645a15db0fc0f
2 changes: 0 additions & 2 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
Original file line number Diff line number Diff line change
Expand Up @@ -1491,15 +1491,13 @@ static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg)
return max_cfg;
}

#ifdef BCM_CNIC
/**
* bnx2x_get_iscsi_info - update iSCSI params according to licensing info.
*
* @bp: driver handle
*
*/
void bnx2x_get_iscsi_info(struct bnx2x *bp);
#endif

/* returns func by VN for current port */
static inline int func_by_vn(struct bnx2x *bp, int vn)
Expand Down
12 changes: 8 additions & 4 deletions trunk/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9478,9 +9478,9 @@ static void __devinit bnx2x_get_port_hwinfo(struct bnx2x *bp)
bp->common.shmem2_base);
}

#ifdef BCM_CNIC
void bnx2x_get_iscsi_info(struct bnx2x *bp)
{
#ifdef BCM_CNIC
int port = BP_PORT(bp);

u32 max_iscsi_conn = FW_ENCODE_32BIT_PATTERN ^ SHMEM_RD(bp,
Expand All @@ -9500,10 +9500,14 @@ void bnx2x_get_iscsi_info(struct bnx2x *bp)
*/
if (!bp->cnic_eth_dev.max_iscsi_conn)
bp->flags |= NO_ISCSI_FLAG;
#else
bp->flags |= NO_ISCSI_FLAG;
#endif
}

static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp)
{
#ifdef BCM_CNIC
int port = BP_PORT(bp);
int func = BP_ABS_FUNC(bp);

Expand Down Expand Up @@ -9570,6 +9574,9 @@ static void __devinit bnx2x_get_fcoe_info(struct bnx2x *bp)
*/
if (!bp->cnic_eth_dev.max_fcoe_conn)
bp->flags |= NO_FCOE_FLAG;
#else
bp->flags |= NO_FCOE_FLAG;
#endif
}

static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp)
Expand All @@ -9582,7 +9589,6 @@ static void __devinit bnx2x_get_cnic_info(struct bnx2x *bp)
bnx2x_get_iscsi_info(bp);
bnx2x_get_fcoe_info(bp);
}
#endif

static void __devinit bnx2x_get_mac_hwinfo(struct bnx2x *bp)
{
Expand Down Expand Up @@ -9907,9 +9913,7 @@ static int __devinit bnx2x_get_hwinfo(struct bnx2x *bp)
/* Get MAC addresses */
bnx2x_get_mac_hwinfo(bp);

#ifdef BCM_CNIC
bnx2x_get_cnic_info(bp);
#endif

/* Get current FW pulse sequence */
if (!BP_NOMCP(bp)) {
Expand Down

0 comments on commit b021a41

Please sign in to comment.