Lines Matching refs:rss_ctx

552 static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx,  in set_qp_rss()  argument
556 rss_ctx->base_qpn_tbl_sz = init_attr->rwq_ind_tbl->ind_tbl[0]->wq_num | in set_qp_rss()
561 memcpy(rss_ctx->rss_key, ucmd->rx_hash_key, in set_qp_rss()
584 rss_ctx->flags = MLX4_RSS_IPV4; in set_qp_rss()
593 rss_ctx->flags |= MLX4_RSS_IPV6; in set_qp_rss()
607 if (rss_ctx->flags & MLX4_RSS_IPV4) in set_qp_rss()
608 rss_ctx->flags |= MLX4_RSS_UDP_IPV4; in set_qp_rss()
609 if (rss_ctx->flags & MLX4_RSS_IPV6) in set_qp_rss()
610 rss_ctx->flags |= MLX4_RSS_UDP_IPV6; in set_qp_rss()
611 if (!(rss_ctx->flags & (MLX4_RSS_IPV6 | MLX4_RSS_IPV4))) { in set_qp_rss()
623 if (rss_ctx->flags & MLX4_RSS_IPV4) in set_qp_rss()
624 rss_ctx->flags |= MLX4_RSS_TCP_IPV4; in set_qp_rss()
625 if (rss_ctx->flags & MLX4_RSS_IPV6) in set_qp_rss()
626 rss_ctx->flags |= MLX4_RSS_TCP_IPV6; in set_qp_rss()
627 if (!(rss_ctx->flags & (MLX4_RSS_IPV6 | MLX4_RSS_IPV4))) { in set_qp_rss()
644 rss_ctx->flags |= MLX4_RSS_BY_INNER_HEADERS_IPONLY; in set_qp_rss()
686 qp->rss_ctx = kzalloc(sizeof(*qp->rss_ctx), GFP_KERNEL); in create_qp_rss()
687 if (!qp->rss_ctx) { in create_qp_rss()
692 err = set_qp_rss(dev, qp->rss_ctx, init_attr, ucmd); in create_qp_rss()
699 kfree(qp->rss_ctx); in create_qp_rss()
2095 rss_context->base_qpn = cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz); in fill_qp_rss_context()
2097 cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz & 0xffffff); in fill_qp_rss_context()
2098 if (qp->rss_ctx->flags & (MLX4_RSS_UDP_IPV4 | MLX4_RSS_UDP_IPV6)) in fill_qp_rss_context()
2100 rss_context->flags = qp->rss_ctx->flags; in fill_qp_rss_context()
2104 memcpy(rss_context->rss_key, qp->rss_ctx->rss_key, in fill_qp_rss_context()