Implement raw packet QPs for Ethernet ports.

Signed-off-by: Or Gerlitz <[email protected]>
---

changes from previous version:

 - addressed reviewer comment to add break on the post send
   flow for the new QP type 

 src/qp.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/qp.c b/src/qp.c
index 40a6689..aa03098 100644
--- a/src/qp.c
+++ b/src/qp.c
@@ -286,6 +286,12 @@ int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr 
*wr,
                        size += sizeof (struct mlx4_wqe_datagram_seg) / 16;
                        break;
 
+               case IBV_QPT_RAW_PACKET:
+                       /* For raw eth, the MLX4_WQE_CTRL_SOLICIT flag is used
+                        * to indicate that no icrc should be calculated */
+                       ctrl->srcrb_flags |= htonl(MLX4_WQE_CTRL_SOLICIT);
+                       break;
+
                default:
                        break;
                }
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to