Skip to content

Commit c19d65c

Browse files
Ariel Eliordavem330
authored andcommitted
bnx2x: Fix configuration of doorbell block
As part of VF RSS feature doorbell block was configured not to use dpm, but a small part of configuration was left out, preventing the driver from sending tx messages to the device. This patch adds the missing configuration. Reported-by: Eric Dumazet <eric.dumazet@gmil.com> Signed-off-by: Ariel Elior <ariele@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Tested-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 300893b commit c19d65c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7645,6 +7645,7 @@ static int bnx2x_init_hw_func(struct bnx2x *bp)
76457645

76467646
bnx2x_init_block(bp, BLOCK_TM, init_phase);
76477647
bnx2x_init_block(bp, BLOCK_DORQ, init_phase);
7648+
REG_WR(bp, DORQ_REG_MODE_ACT, 1); /* no dpm */
76487649

76497650
bnx2x_iov_init_dq(bp);
76507651

‎drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,9 +1756,6 @@ void bnx2x_iov_init_dq(struct bnx2x *bp)
17561756
REG_WR(bp, DORQ_REG_VF_TYPE_MIN_MCID_0, 0);
17571757
REG_WR(bp, DORQ_REG_VF_TYPE_MAX_MCID_0, 0x1ffff);
17581758

1759-
/* set the number of VF allowed doorbells to the full DQ range */
1760-
REG_WR(bp, DORQ_REG_VF_NORM_MAX_CID_COUNT, 0x20000);
1761-
17621759
/* set the VF doorbell threshold */
17631760
REG_WR(bp, DORQ_REG_VF_USAGE_CT_LIMIT, 4);
17641761
}

0 commit comments

Comments
 (0)