diff options
author | Haggai Eran <haggaie@mellanox.com> | 2014-12-11 10:04:23 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-12-15 21:19:03 -0500 |
commit | 6aec21f6a8322fa8d43df3ea7f051dfd8967f1b9 (patch) | |
tree | de572339272023be68f0d5c2512cd719fb033f40 /include/linux/mlx5/driver.h | |
parent | 832a6b06ab5e13c228fc27e333ad360aa03ace6f (diff) |
IB/mlx5: Page faults handling infrastructure
* Refactor MR registration and cleanup, and fix reg_pages accounting.
* Create a work queue to handle page fault events in a kthread context.
* Register a fault handler to get events from the core for each QP.
The registered fault handler is empty in this patch, and only a later
patch implements it.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Shachar Raindel <raindel@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 7088dcd19214..166d9315fe4b 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -474,7 +474,7 @@ struct mlx5_priv { | |||
474 | struct workqueue_struct *pg_wq; | 474 | struct workqueue_struct *pg_wq; |
475 | struct rb_root page_root; | 475 | struct rb_root page_root; |
476 | int fw_pages; | 476 | int fw_pages; |
477 | int reg_pages; | 477 | atomic_t reg_pages; |
478 | struct list_head free_list; | 478 | struct list_head free_list; |
479 | 479 | ||
480 | struct mlx5_core_health health; | 480 | struct mlx5_core_health health; |