]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[MLX4] added support for NOP operation. [mlnx: 4579]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 16 Aug 2009 13:58:05 +0000 (13:58 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 16 Aug 2009 13:58:05 +0000 (13:58 +0000)
One can now post WQE with WR_NOP operation just to get interrupt on completion.

git-svn-id: svn://openib.tc.cornell.edu/gen1@2354 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mlx4/kernel/bus/ib/qp.c
trunk/hw/mlx4/kernel/bus/inc/ib_verbs.h
trunk/inc/iba/ib_types.h

index 4198f477a4ce0fc5e80259d47f7bf6f0f02f818a..0a64de2bd0efd2625d51c30da0683293c41b1452 100644 (file)
@@ -73,7 +73,8 @@ static const __be32 mlx4_ib_opcode[] = {
        __constant_cpu_to_be32(MLX4_OPCODE_RDMA_READ),          /*      [IB_WR_RDMA_READ]                       */\r
        __constant_cpu_to_be32(MLX4_OPCODE_ATOMIC_CS),          /*      [IB_WR_ATOMIC_CMP_AND_SWP]      */\r
        __constant_cpu_to_be32(MLX4_OPCODE_ATOMIC_FA),          /*      [IB_WR_ATOMIC_FETCH_AND_ADD]*/\r
-       __constant_cpu_to_be32(MLX4_OPCODE_LSO | (1 << 6))                              /* [IB_WR_LSO]                                  */\r
+       __constant_cpu_to_be32(MLX4_OPCODE_LSO | (1 << 6)),     /*      [IB_WR_LSO]                                     */\r
+       __constant_cpu_to_be32(MLX4_OPCODE_NOP)                         /*      [IB_WR_NOP]                                     */\r
 };\r
 \r
 static struct mlx4_ib_sqp *to_msqp(struct mlx4_ib_qp *mqp)\r
@@ -1150,6 +1151,9 @@ static enum ib_wr_opcode to_wr_opcode(struct _ib_send_wr *wr)
                case WR_FETCH_ADD:\r
                        opcode = IB_WR_ATOMIC_FETCH_AND_ADD;\r
                        break;\r
+               case WR_NOP:\r
+                       opcode = IB_WR_NOP;\r
+                       break;\r
        }\r
        return opcode;\r
 }\r
index d4964e451a33509abab65f6bf3dca9773de38eb3..a832ae83be12787c0b57b9b303753bfd9ea62364 100644 (file)
@@ -632,7 +632,8 @@ enum ib_wr_opcode {
        IB_WR_RDMA_READ,\r
        IB_WR_ATOMIC_CMP_AND_SWP,\r
        IB_WR_ATOMIC_FETCH_AND_ADD,\r
-       IB_WR_LSO\r
+       IB_WR_LSO,\r
+       IB_WR_NOP\r
 };\r
 \r
 enum ib_send_flags {\r
index 74d16c6ccdaec4b3996c16a3c8fca3e9db9d3ec3..583b3175f219ae6ad9a78fbc35cfceee4c17c34d 100644 (file)
@@ -9632,6 +9632,7 @@ typedef enum _ib_wr_type_t
        WR_COMPARE_SWAP,\r
        WR_FETCH_ADD,\r
        WR_LSO,\r
+       WR_NOP,\r
        WR_UNKNOWN\r
 \r
 }      ib_wr_type_t;\r