diff options
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r-- | include/linux/mlx5/driver.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 85c4786427e4..ecc451d89ccd 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -418,8 +418,12 @@ struct mlx5_core_health { | |||
418 | u32 prev; | 418 | u32 prev; |
419 | int miss_counter; | 419 | int miss_counter; |
420 | bool sick; | 420 | bool sick; |
421 | /* wq spinlock to synchronize draining */ | ||
422 | spinlock_t wq_lock; | ||
421 | struct workqueue_struct *wq; | 423 | struct workqueue_struct *wq; |
424 | unsigned long flags; | ||
422 | struct work_struct work; | 425 | struct work_struct work; |
426 | struct delayed_work recover_work; | ||
423 | }; | 427 | }; |
424 | 428 | ||
425 | struct mlx5_cq_table { | 429 | struct mlx5_cq_table { |
@@ -626,10 +630,6 @@ struct mlx5_db { | |||
626 | }; | 630 | }; |
627 | 631 | ||
628 | enum { | 632 | enum { |
629 | MLX5_DB_PER_PAGE = PAGE_SIZE / L1_CACHE_BYTES, | ||
630 | }; | ||
631 | |||
632 | enum { | ||
633 | MLX5_COMP_EQ_SIZE = 1024, | 633 | MLX5_COMP_EQ_SIZE = 1024, |
634 | }; | 634 | }; |
635 | 635 | ||
@@ -638,13 +638,6 @@ enum { | |||
638 | MLX5_PTYS_EN = 1 << 2, | 638 | MLX5_PTYS_EN = 1 << 2, |
639 | }; | 639 | }; |
640 | 640 | ||
641 | struct mlx5_db_pgdir { | ||
642 | struct list_head list; | ||
643 | DECLARE_BITMAP(bitmap, MLX5_DB_PER_PAGE); | ||
644 | __be32 *db_page; | ||
645 | dma_addr_t db_dma; | ||
646 | }; | ||
647 | |||
648 | typedef void (*mlx5_cmd_cbk_t)(int status, void *context); | 641 | typedef void (*mlx5_cmd_cbk_t)(int status, void *context); |
649 | 642 | ||
650 | struct mlx5_cmd_work_ent { | 643 | struct mlx5_cmd_work_ent { |
@@ -789,6 +782,7 @@ void mlx5_health_cleanup(struct mlx5_core_dev *dev); | |||
789 | int mlx5_health_init(struct mlx5_core_dev *dev); | 782 | int mlx5_health_init(struct mlx5_core_dev *dev); |
790 | void mlx5_start_health_poll(struct mlx5_core_dev *dev); | 783 | void mlx5_start_health_poll(struct mlx5_core_dev *dev); |
791 | void mlx5_stop_health_poll(struct mlx5_core_dev *dev); | 784 | void mlx5_stop_health_poll(struct mlx5_core_dev *dev); |
785 | void mlx5_drain_health_wq(struct mlx5_core_dev *dev); | ||
792 | int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size, | 786 | int mlx5_buf_alloc_node(struct mlx5_core_dev *dev, int size, |
793 | struct mlx5_buf *buf, int node); | 787 | struct mlx5_buf *buf, int node); |
794 | int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, struct mlx5_buf *buf); | 788 | int mlx5_buf_alloc(struct mlx5_core_dev *dev, int size, struct mlx5_buf *buf); |