diff options
author | Michael Chan <michael.chan@broadcom.com> | 2019-01-12 00:13:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-12 10:51:39 -0800 |
commit | 6ef982dec7eda9affa81a2bb84f75441deb56d06 (patch) | |
tree | 7a58838481cb7dcd3981da30097deaddb1b7bdd1 /tools | |
parent | 0b815023a1d479aa8f8851ee880d5388e53b7ae5 (diff) | |
download | linux-6ef982dec7eda9affa81a2bb84f75441deb56d06.tar.bz2 |
bnxt_en: Fix context memory allocation.
When allocating memory pages for context memory, if the last page table
should be fully populated, the current code will set nr_pages to 0 when
calling bnxt_alloc_ctx_mem_blk(). This will cause the last page table
to be completely blank and causing some RDMA failures.
Fix it by setting the last page table's nr_pages to the remainder only
if it is non-zero.
Fixes: 08fe9d181606 ("bnxt_en: Add Level 2 context memory paging support.")
Reported-by: Eric Davis <eric.davis@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions