[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/trunk@2354 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

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

index 4198f47..0a64de2 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 d4964e4..a832ae8 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 74d16c6..583b317 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