diff options
author | Selvin Xavier <[email protected]> | 2020-08-24 11:14:33 -0700 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-08-27 09:30:43 -0300 |
commit | 84cf229f4001c1216afc3e4c7f05e1620a0dd4bc (patch) | |
tree | 5952f9ba5857a96c60311908a493dacc9b2b5893 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2d0e60ee322d512fa6bc62d23a6760b39a380847 (diff) |
RDMA/bnxt_re: Fix the qp table indexing
qp->id can be a value outside the max number of qp. Indexing the qp table
with the id can cause out of bounds crash. So changing the qp table
indexing by (qp->id % max_qp -1).
Allocating one extra entry for QP1. Some adapters create one more than the
max_qp requested to accommodate QP1. If the qp->id is 1, store the
inforamtion in the last entry of the qp table.
Fixes: f218d67ef004 ("RDMA/bnxt_re: Allow posting when QPs are in error")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Selvin Xavier <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions