diff options
Diffstat (limited to 'include/linux/mlx4')
| -rw-r--r-- | include/linux/mlx4/device.h | 17 | ||||
| -rw-r--r-- | include/linux/mlx4/driver.h | 1 | ||||
| -rw-r--r-- | include/linux/mlx4/qp.h | 5 |
3 files changed, 15 insertions, 8 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index aea61905499b..834c96c5d879 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -101,10 +101,6 @@ enum { | |||
| 101 | #define MLX4_ATTR_EXTENDED_PORT_INFO cpu_to_be16(0xff90) | 101 | #define MLX4_ATTR_EXTENDED_PORT_INFO cpu_to_be16(0xff90) |
| 102 | 102 | ||
| 103 | enum { | 103 | enum { |
| 104 | MLX_EXT_PORT_CAP_FLAG_EXTENDED_PORT_INFO = 1 << 0 | ||
| 105 | }; | ||
| 106 | |||
| 107 | enum { | ||
| 108 | MLX4_BMME_FLAG_LOCAL_INV = 1 << 6, | 104 | MLX4_BMME_FLAG_LOCAL_INV = 1 << 6, |
| 109 | MLX4_BMME_FLAG_REMOTE_INV = 1 << 7, | 105 | MLX4_BMME_FLAG_REMOTE_INV = 1 << 7, |
| 110 | MLX4_BMME_FLAG_TYPE_2_WIN = 1 << 9, | 106 | MLX4_BMME_FLAG_TYPE_2_WIN = 1 << 9, |
| @@ -133,6 +129,7 @@ enum mlx4_event { | |||
| 133 | MLX4_EVENT_TYPE_CMD = 0x0a, | 129 | MLX4_EVENT_TYPE_CMD = 0x0a, |
| 134 | MLX4_EVENT_TYPE_VEP_UPDATE = 0x19, | 130 | MLX4_EVENT_TYPE_VEP_UPDATE = 0x19, |
| 135 | MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18, | 131 | MLX4_EVENT_TYPE_COMM_CHANNEL = 0x18, |
| 132 | MLX4_EVENT_TYPE_FATAL_WARNING = 0x1b, | ||
| 136 | MLX4_EVENT_TYPE_FLR_EVENT = 0x1c, | 133 | MLX4_EVENT_TYPE_FLR_EVENT = 0x1c, |
| 137 | MLX4_EVENT_TYPE_NONE = 0xff, | 134 | MLX4_EVENT_TYPE_NONE = 0xff, |
| 138 | }; | 135 | }; |
| @@ -143,6 +140,10 @@ enum { | |||
| 143 | }; | 140 | }; |
| 144 | 141 | ||
| 145 | enum { | 142 | enum { |
| 143 | MLX4_FATAL_WARNING_SUBTYPE_WARMING = 0, | ||
| 144 | }; | ||
| 145 | |||
| 146 | enum { | ||
| 146 | MLX4_PERM_LOCAL_READ = 1 << 10, | 147 | MLX4_PERM_LOCAL_READ = 1 << 10, |
| 147 | MLX4_PERM_LOCAL_WRITE = 1 << 11, | 148 | MLX4_PERM_LOCAL_WRITE = 1 << 11, |
| 148 | MLX4_PERM_REMOTE_READ = 1 << 12, | 149 | MLX4_PERM_REMOTE_READ = 1 << 12, |
| @@ -273,6 +274,7 @@ struct mlx4_caps { | |||
| 273 | int num_comp_vectors; | 274 | int num_comp_vectors; |
| 274 | int comp_pool; | 275 | int comp_pool; |
| 275 | int num_mpts; | 276 | int num_mpts; |
| 277 | int max_fmr_maps; | ||
| 276 | int num_mtts; | 278 | int num_mtts; |
| 277 | int fmr_reserved_mtts; | 279 | int fmr_reserved_mtts; |
| 278 | int reserved_mtts; | 280 | int reserved_mtts; |
| @@ -308,7 +310,7 @@ struct mlx4_caps { | |||
| 308 | u32 port_mask[MLX4_MAX_PORTS + 1]; | 310 | u32 port_mask[MLX4_MAX_PORTS + 1]; |
| 309 | enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1]; | 311 | enum mlx4_port_type possible_type[MLX4_MAX_PORTS + 1]; |
| 310 | u32 max_counters; | 312 | u32 max_counters; |
| 311 | u8 ext_port_cap[MLX4_MAX_PORTS + 1]; | 313 | u8 port_ib_mtu[MLX4_MAX_PORTS + 1]; |
| 312 | }; | 314 | }; |
| 313 | 315 | ||
| 314 | struct mlx4_buf_list { | 316 | struct mlx4_buf_list { |
| @@ -622,7 +624,10 @@ int mlx4_replace_mac(struct mlx4_dev *dev, u8 port, int qpn, u64 new_mac); | |||
| 622 | int mlx4_get_eth_qp(struct mlx4_dev *dev, u8 port, u64 mac, int *qpn); | 624 | int mlx4_get_eth_qp(struct mlx4_dev *dev, u8 port, u64 mac, int *qpn); |
| 623 | void mlx4_put_eth_qp(struct mlx4_dev *dev, u8 port, u64 mac, int qpn); | 625 | void mlx4_put_eth_qp(struct mlx4_dev *dev, u8 port, u64 mac, int qpn); |
| 624 | void mlx4_set_stats_bitmap(struct mlx4_dev *dev, u64 *stats_bitmap); | 626 | void mlx4_set_stats_bitmap(struct mlx4_dev *dev, u64 *stats_bitmap); |
| 625 | 627 | int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu, | |
| 628 | u8 pptx, u8 pfctx, u8 pprx, u8 pfcrx); | ||
| 629 | int mlx4_SET_PORT_qpn_calc(struct mlx4_dev *dev, u8 port, u32 base_qpn, | ||
| 630 | u8 promisc); | ||
| 626 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); | 631 | int mlx4_find_cached_vlan(struct mlx4_dev *dev, u8 port, u16 vid, int *idx); |
| 627 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); | 632 | int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index); |
| 628 | void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index); | 633 | void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index); |
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h index e1eebf78caba..5f1298b1b5ef 100644 --- a/include/linux/mlx4/driver.h +++ b/include/linux/mlx4/driver.h | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #ifndef MLX4_DRIVER_H | 33 | #ifndef MLX4_DRIVER_H |
| 34 | #define MLX4_DRIVER_H | 34 | #define MLX4_DRIVER_H |
| 35 | 35 | ||
| 36 | #include <linux/device.h> | ||
| 37 | #include <linux/mlx4/device.h> | 36 | #include <linux/mlx4/device.h> |
| 38 | 37 | ||
| 39 | struct mlx4_dev; | 38 | struct mlx4_dev; |
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h index bee8fa231276..091f9e7dc8b9 100644 --- a/include/linux/mlx4/qp.h +++ b/include/linux/mlx4/qp.h | |||
| @@ -212,7 +212,10 @@ struct mlx4_wqe_ctrl_seg { | |||
| 212 | * [1] SE (solicited event) | 212 | * [1] SE (solicited event) |
| 213 | * [0] FL (force loopback) | 213 | * [0] FL (force loopback) |
| 214 | */ | 214 | */ |
| 215 | __be32 srcrb_flags; | 215 | union { |
| 216 | __be32 srcrb_flags; | ||
| 217 | __be16 srcrb_flags16[2]; | ||
| 218 | }; | ||
| 216 | /* | 219 | /* |
| 217 | * imm is immediate data for send/RDMA write w/ immediate; | 220 | * imm is immediate data for send/RDMA write w/ immediate; |
| 218 | * also invalidation key for send with invalidate; input | 221 | * also invalidation key for send with invalidate; input |
