Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 129795
b: refs/heads/master
c: 26c8fa4
h: refs/heads/master
i:
  129793: 0f775a1
  129791: bb48d71
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jan 15, 2009
1 parent e855977 commit 6993564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: f5ba6772f226be0266f95642c8162493246d3b79
refs/heads/master: 26c8fa4d8a08b6e7a61f23339e2236218957ecc0
9 changes: 4 additions & 5 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4524,7 +4524,7 @@ static void bnx2x_init_context(struct bnx2x *bp)

static void bnx2x_init_ind_table(struct bnx2x *bp)
{
int port = BP_PORT(bp);
int func = BP_FUNC(bp);
int i;

if (!is_multi(bp))
Expand All @@ -4533,10 +4533,8 @@ static void bnx2x_init_ind_table(struct bnx2x *bp)
DP(NETIF_MSG_IFUP, "Initializing indirection table\n");
for (i = 0; i < TSTORM_INDIRECTION_TABLE_SIZE; i++)
REG_WR8(bp, BAR_TSTRORM_INTMEM +
TSTORM_INDIRECTION_TABLE_OFFSET(port) + i,
i % bp->num_queues);

REG_WR(bp, PRS_REG_A_PRSU_20, 0xf);
TSTORM_INDIRECTION_TABLE_OFFSET(func) + i,
BP_CL_ID(bp) + (i % bp->num_queues));
}

static void bnx2x_set_client_config(struct bnx2x *bp)
Expand Down Expand Up @@ -5240,6 +5238,7 @@ static int bnx2x_init_common(struct bnx2x *bp)
}

bnx2x_init_block(bp, PRS_COMMON_START, PRS_COMMON_END);
REG_WR(bp, PRS_REG_A_PRSU_20, 0xf);
/* set NIC mode */
REG_WR(bp, PRS_REG_NIC_MODE, 1);
if (CHIP_IS_E1H(bp))
Expand Down

0 comments on commit 6993564

Please sign in to comment.