diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-08-02 17:58:30 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-08-02 17:58:30 -0400 |
| commit | abe0308070d23d4b68db093683b7dbc1396b1fbd (patch) | |
| tree | 8625b0c879090a43b64b70dfde311dffbe31625c /include/linux | |
| parent | 1cb39a6cb9528581cd1d7ec0e7a1f33d74c2ab37 (diff) | |
| parent | 569935db80fd5338005d977ffc3428d43aad84ba (diff) | |
Merge tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
Pull infiniband/rdma fixes from Roland Dreier:
- Fixes for the newly merged mlx5 hardware driver
- Stack info leak fixes from Dan Carpenter
- Fixes for pkey table handling with SR-IOV
- A few other small things
* tag 'rdma-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
IPoIB: Fix pkey change flow for virtualization environments
IPoIB: Make sure child devices use valid/proper pkeys
IB/core: Create QP1 using the pkey index which contains the default pkey
mlx5_core: Variable may be used uninitialized
mlx5_core: Implement new initialization sequence
mlx5_core: Fix use after free in mlx5_cmd_comp_handler()
IB/mlx5: Fix stack info leak in mlx5_ib_alloc_ucontext()
IB/mlx5: Fix error return code in init_one()
IB/mlx4: Use default pkey when creating tunnel QPs
RDMA/cma: Only call cma_save_ib_info() for CM REQs
RDMA/cma: Fix accessing invalid private data for UD
RDMA/cma: Fix gcc warning
Revert "RDMA/nes: Fix compilation error when nes_debug is enabled"
IB/qib: Add err_decode() call for ring dump
RDMA/cxgb3: Fix stack info leak in iwch_create_cq()
RDMA/nes: Fix info leaks in nes_create_qp() and nes_create_cq()
RDMA/ocrdma: Fix several stack info leaks
RDMA/cxgb4: Fix stack info leak in c4iw_create_qp()
RDMA/ocrdma: Remove unused include
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mlx5/device.h | 20 | ||||
| -rw-r--r-- | include/linux/mlx5/driver.h | 4 |
2 files changed, 23 insertions, 1 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 8de8d8f22384..737685e9e852 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h | |||
| @@ -690,6 +690,26 @@ struct mlx5_query_cq_mbox_out { | |||
| 690 | __be64 pas[0]; | 690 | __be64 pas[0]; |
| 691 | }; | 691 | }; |
| 692 | 692 | ||
| 693 | struct mlx5_enable_hca_mbox_in { | ||
| 694 | struct mlx5_inbox_hdr hdr; | ||
| 695 | u8 rsvd[8]; | ||
| 696 | }; | ||
| 697 | |||
| 698 | struct mlx5_enable_hca_mbox_out { | ||
| 699 | struct mlx5_outbox_hdr hdr; | ||
| 700 | u8 rsvd[8]; | ||
| 701 | }; | ||
| 702 | |||
| 703 | struct mlx5_disable_hca_mbox_in { | ||
| 704 | struct mlx5_inbox_hdr hdr; | ||
| 705 | u8 rsvd[8]; | ||
| 706 | }; | ||
| 707 | |||
| 708 | struct mlx5_disable_hca_mbox_out { | ||
| 709 | struct mlx5_outbox_hdr hdr; | ||
| 710 | u8 rsvd[8]; | ||
| 711 | }; | ||
| 712 | |||
| 693 | struct mlx5_eq_context { | 713 | struct mlx5_eq_context { |
| 694 | u8 status; | 714 | u8 status; |
| 695 | u8 ec_oi; | 715 | u8 ec_oi; |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index f22e4419839b..2aa258b0ced1 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -101,6 +101,8 @@ enum { | |||
| 101 | MLX5_CMD_OP_QUERY_ADAPTER = 0x101, | 101 | MLX5_CMD_OP_QUERY_ADAPTER = 0x101, |
| 102 | MLX5_CMD_OP_INIT_HCA = 0x102, | 102 | MLX5_CMD_OP_INIT_HCA = 0x102, |
| 103 | MLX5_CMD_OP_TEARDOWN_HCA = 0x103, | 103 | MLX5_CMD_OP_TEARDOWN_HCA = 0x103, |
| 104 | MLX5_CMD_OP_ENABLE_HCA = 0x104, | ||
| 105 | MLX5_CMD_OP_DISABLE_HCA = 0x105, | ||
| 104 | MLX5_CMD_OP_QUERY_PAGES = 0x107, | 106 | MLX5_CMD_OP_QUERY_PAGES = 0x107, |
| 105 | MLX5_CMD_OP_MANAGE_PAGES = 0x108, | 107 | MLX5_CMD_OP_MANAGE_PAGES = 0x108, |
| 106 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, | 108 | MLX5_CMD_OP_SET_HCA_CAP = 0x109, |
| @@ -690,7 +692,7 @@ int mlx5_pagealloc_start(struct mlx5_core_dev *dev); | |||
| 690 | void mlx5_pagealloc_stop(struct mlx5_core_dev *dev); | 692 | void mlx5_pagealloc_stop(struct mlx5_core_dev *dev); |
| 691 | void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id, | 693 | void mlx5_core_req_pages_handler(struct mlx5_core_dev *dev, u16 func_id, |
| 692 | s16 npages); | 694 | s16 npages); |
| 693 | int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev); | 695 | int mlx5_satisfy_startup_pages(struct mlx5_core_dev *dev, int boot); |
| 694 | int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev); | 696 | int mlx5_reclaim_startup_pages(struct mlx5_core_dev *dev); |
| 695 | void mlx5_register_debugfs(void); | 697 | void mlx5_register_debugfs(void); |
| 696 | void mlx5_unregister_debugfs(void); | 698 | void mlx5_unregister_debugfs(void); |
