Skip to content

Commit e93b30d

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Set the db_offset on 57500 chips for the RDMA MSIX entries.
The driver provides completion ring or NQ doorbell offset for each MSIX entry requested by the RDMA driver. The NQ offset on 57500 chips is different than legacy chips. Set it correctly based on chip type for correctness. The RDMA driver is ignoring this field for the 57500 chips so it is not causing any problem. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ebdf73d commit e93b30d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,13 @@ static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent)
104104
for (i = 0; i < num_msix; i++) {
105105
ent[i].vector = bp->irq_tbl[idx + i].vector;
106106
ent[i].ring_idx = idx + i;
107-
ent[i].db_offset = (idx + i) * 0x80;
107+
if (bp->flags & BNXT_FLAG_CHIP_P5) {
108+
ent[i].db_offset = DB_PF_OFFSET_P5;
109+
if (BNXT_VF(bp))
110+
ent[i].db_offset = DB_VF_OFFSET_P5;
111+
} else {
112+
ent[i].db_offset = (idx + i) * 0x80;
113+
}
108114
}
109115
}
110116

0 commit comments

Comments
 (0)