Michael Chan
6ef982dec7
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: 08fe9d1816 ("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 >
2019-01-12 10:51:39 -08:00
..
2019-01-03 18:57:57 -08:00
2019-01-02 18:47:56 -08:00
2018-12-21 21:27:21 +01:00
2019-01-02 18:43:57 -08:00
2019-01-02 18:54:45 -08:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:56:59 -08:00
2018-12-25 15:44:08 -08:00
2018-12-27 10:43:24 -08:00
2018-12-27 10:43:24 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 12:11:47 -08:00
2019-01-01 15:55:29 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:00:21 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:00:21 -08:00
2018-12-28 20:54:57 -08:00
2018-12-29 13:03:29 -08:00
2018-12-29 13:03:29 -08:00
2018-12-28 13:19:59 -08:00
2018-12-28 20:39:58 -08:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:56:59 -08:00
2019-01-01 15:55:29 -08:00
2018-12-29 09:40:40 -08:00
2019-01-11 18:54:21 -08:00
2018-12-25 14:52:50 -08:00
2018-12-22 14:45:35 -07:00
2019-01-03 18:57:57 -08:00
2018-12-21 22:31:26 -06:00
2018-12-28 16:55:46 -08:00
2019-01-03 18:57:57 -08:00
2018-12-31 17:32:35 -08:00
2018-12-28 16:52:18 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 16:52:18 -08:00
2018-12-29 12:03:17 -08:00
2019-01-12 10:51:39 -08:00
2018-12-28 16:55:46 -08:00
2018-12-28 20:08:34 -08:00
2018-12-29 13:40:29 -08:00
2019-01-03 18:57:57 -08:00
2019-01-07 14:21:37 -05:00
2019-01-01 13:19:16 -08:00
2019-01-03 18:57:57 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:22:45 -08:00
2018-12-29 13:03:29 -08:00
2019-01-08 16:22:56 -05:00
2018-12-24 12:06:56 +01:00
2018-12-22 00:25:54 +09:00
2018-12-21 13:43:35 +00:00
2019-01-01 13:24:31 -08:00
2019-01-02 18:37:01 -08:00
2018-12-26 10:32:18 -08:00
2019-01-03 18:57:57 -08:00
2019-01-04 12:50:43 -08:00
2018-12-25 14:43:54 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 14:48:06 -08:00
2018-12-29 13:03:29 -08:00
2019-01-03 18:57:57 -08:00
2018-12-28 20:54:57 -08:00
2019-01-03 18:57:57 -08:00
2019-01-01 15:55:29 -08:00
2019-01-11 17:48:11 -08:00
2019-01-03 18:57:57 -08:00
2019-01-02 18:54:45 -08:00
2018-12-22 00:25:54 +09:00
2019-01-01 13:16:45 -08:00
2019-01-03 18:57:57 -08:00
2018-12-29 13:40:29 -08:00