aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-07 16:33:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-07 16:33:07 -0500
commitab9f2faf8f40604551336e5b0a18e0910a57b92c (patch)
tree9068c73acf24452762d6e2b096df19e29436183e /include/linux/mlx4
parent75021d28594d9b6fb4d05bbc41f77948a0db0e02 (diff)
parentdb7489e07669073970358b6cacf6a9dd8dc9275e (diff)
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma
Pull rdma updates from Doug Ledford: "This is my initial round of 4.4 merge window patches. There are a few other things I wish to get in for 4.4 that aren't in this pull, as this represents what has gone through merge/build/run testing and not what is the last few items for which testing is not yet complete. - "Checksum offload support in user space" enablement - Misc cxgb4 fixes, add T6 support - Misc usnic fixes - 32 bit build warning fixes - Misc ocrdma fixes - Multicast loopback prevention extension - Extend the GID cache to store and return attributes of GIDs - Misc iSER updates - iSER clustering update - Network NameSpace support for rdma CM - Work Request cleanup series - New Memory Registration API" * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma: (76 commits) IB/core, cma: Make __attribute_const__ declarations sparse-friendly IB/core: Remove old fast registration API IB/ipath: Remove fast registration from the code IB/hfi1: Remove fast registration from the code RDMA/nes: Remove old FRWR API IB/qib: Remove old FRWR API iw_cxgb4: Remove old FRWR API RDMA/cxgb3: Remove old FRWR API RDMA/ocrdma: Remove old FRWR API IB/mlx4: Remove old FRWR API support IB/mlx5: Remove old FRWR API support IB/srp: Dont allocate a page vector when using fast_reg IB/srp: Remove srp_finish_mapping IB/srp: Convert to new registration API IB/srp: Split srp_map_sg RDS/IW: Convert to new memory registration API svcrdma: Port to new memory registration API xprtrdma: Port to new memory registration API iser-target: Port to new memory registration API IB/iser: Port to new fast registration API ...
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h2
-rw-r--r--include/linux/mlx4/qp.h24
2 files changed, 21 insertions, 5 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 5a8677bafe04..7501626ab529 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -214,6 +214,8 @@ enum {
214 MLX4_DEV_CAP_FLAG2_IGNORE_FCS = 1LL << 28, 214 MLX4_DEV_CAP_FLAG2_IGNORE_FCS = 1LL << 28,
215 MLX4_DEV_CAP_FLAG2_PHV_EN = 1LL << 29, 215 MLX4_DEV_CAP_FLAG2_PHV_EN = 1LL << 29,
216 MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN = 1LL << 30, 216 MLX4_DEV_CAP_FLAG2_SKIP_OUTER_VLAN = 1LL << 30,
217 MLX4_DEV_CAP_FLAG2_UPDATE_QP_SRC_CHECK_LB = 1ULL << 31,
218 MLX4_DEV_CAP_FLAG2_LB_SRC_CHK = 1ULL << 32,
217}; 219};
218 220
219enum { 221enum {
diff --git a/include/linux/mlx4/qp.h b/include/linux/mlx4/qp.h
index de45a51b3f04..fe052e234906 100644
--- a/include/linux/mlx4/qp.h
+++ b/include/linux/mlx4/qp.h
@@ -135,7 +135,10 @@ struct mlx4_rss_context {
135 135
136struct mlx4_qp_path { 136struct mlx4_qp_path {
137 u8 fl; 137 u8 fl;
138 u8 vlan_control; 138 union {
139 u8 vlan_control;
140 u8 control;
141 };
139 u8 disable_pkey_check; 142 u8 disable_pkey_check;
140 u8 pkey_index; 143 u8 pkey_index;
141 u8 counter_index; 144 u8 counter_index;
@@ -156,9 +159,16 @@ struct mlx4_qp_path {
156}; 159};
157 160
158enum { /* fl */ 161enum { /* fl */
159 MLX4_FL_CV = 1 << 6, 162 MLX4_FL_CV = 1 << 6,
160 MLX4_FL_ETH_HIDE_CQE_VLAN = 1 << 2 163 MLX4_FL_ETH_HIDE_CQE_VLAN = 1 << 2,
164 MLX4_FL_ETH_SRC_CHECK_MC_LB = 1 << 1,
165 MLX4_FL_ETH_SRC_CHECK_UC_LB = 1 << 0,
161}; 166};
167
168enum { /* control */
169 MLX4_CTRL_ETH_SRC_CHECK_IF_COUNTER = 1 << 7,
170};
171
162enum { /* vlan_control */ 172enum { /* vlan_control */
163 MLX4_VLAN_CTRL_ETH_TX_BLOCK_TAGGED = 1 << 6, 173 MLX4_VLAN_CTRL_ETH_TX_BLOCK_TAGGED = 1 << 6,
164 MLX4_VLAN_CTRL_ETH_TX_BLOCK_PRIO_TAGGED = 1 << 5, /* 802.1p priority tag */ 174 MLX4_VLAN_CTRL_ETH_TX_BLOCK_PRIO_TAGGED = 1 << 5, /* 802.1p priority tag */
@@ -254,6 +264,8 @@ enum {
254 MLX4_UPD_QP_PATH_MASK_SCHED_QUEUE = 14 + 32, 264 MLX4_UPD_QP_PATH_MASK_SCHED_QUEUE = 14 + 32,
255 MLX4_UPD_QP_PATH_MASK_IF_COUNTER_INDEX = 15 + 32, 265 MLX4_UPD_QP_PATH_MASK_IF_COUNTER_INDEX = 15 + 32,
256 MLX4_UPD_QP_PATH_MASK_FVL_RX = 16 + 32, 266 MLX4_UPD_QP_PATH_MASK_FVL_RX = 16 + 32,
267 MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_UC_LB = 18 + 32,
268 MLX4_UPD_QP_PATH_MASK_ETH_SRC_CHECK_MC_LB = 19 + 32,
257}; 269};
258 270
259enum { /* param3 */ 271enum { /* param3 */
@@ -436,11 +448,13 @@ enum mlx4_update_qp_attr {
436 MLX4_UPDATE_QP_VSD = 1 << 1, 448 MLX4_UPDATE_QP_VSD = 1 << 1,
437 MLX4_UPDATE_QP_RATE_LIMIT = 1 << 2, 449 MLX4_UPDATE_QP_RATE_LIMIT = 1 << 2,
438 MLX4_UPDATE_QP_QOS_VPORT = 1 << 3, 450 MLX4_UPDATE_QP_QOS_VPORT = 1 << 3,
439 MLX4_UPDATE_QP_SUPPORTED_ATTRS = (1 << 4) - 1 451 MLX4_UPDATE_QP_ETH_SRC_CHECK_MC_LB = 1 << 4,
452 MLX4_UPDATE_QP_SUPPORTED_ATTRS = (1 << 5) - 1
440}; 453};
441 454
442enum mlx4_update_qp_params_flags { 455enum mlx4_update_qp_params_flags {
443 MLX4_UPDATE_QP_PARAMS_FLAGS_VSD_ENABLE = 1 << 0, 456 MLX4_UPDATE_QP_PARAMS_FLAGS_ETH_CHECK_MC_LB = 1 << 0,
457 MLX4_UPDATE_QP_PARAMS_FLAGS_VSD_ENABLE = 1 << 1,
444}; 458};
445 459
446struct mlx4_update_qp_params { 460struct mlx4_update_qp_params {