]> Pileus Git - ~andy/linux/blobdiff - drivers/infiniband/hw/mlx4/qp.c
IB/mlx4: Disable VLAN stripping for RAW PACKET QPs
[~andy/linux] / drivers / infiniband / hw / mlx4 / qp.c
index 35cced2a4da835b1254f7e7a76bc1d6b84752057..d4e87c28507e7e7e9826b0ec6f3b2c62eb915fd0 100644 (file)
@@ -1292,6 +1292,8 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp,
        if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
                context->sq_size_stride |= !!qp->sq_no_prefetch << 7;
                context->xrcd = cpu_to_be32((u32) qp->xrcdn);
+               if (ibqp->qp_type == IB_QPT_RAW_PACKET)
+                       context->param3 |= cpu_to_be32(1 << 30);
        }
 
        if (qp->ibqp.uobject)