Lines Matching refs:rss_ctx
513 static int set_qp_rss(struct mlx4_ib_dev *dev, struct mlx4_ib_rss *rss_ctx, in set_qp_rss() argument
517 rss_ctx->base_qpn_tbl_sz = init_attr->rwq_ind_tbl->ind_tbl[0]->wq_num | in set_qp_rss()
522 memcpy(rss_ctx->rss_key, ucmd->rx_hash_key, in set_qp_rss()
545 rss_ctx->flags = MLX4_RSS_IPV4; in set_qp_rss()
554 rss_ctx->flags |= MLX4_RSS_IPV6; in set_qp_rss()
568 if (rss_ctx->flags & MLX4_RSS_IPV4) in set_qp_rss()
569 rss_ctx->flags |= MLX4_RSS_UDP_IPV4; in set_qp_rss()
570 if (rss_ctx->flags & MLX4_RSS_IPV6) in set_qp_rss()
571 rss_ctx->flags |= MLX4_RSS_UDP_IPV6; in set_qp_rss()
572 if (!(rss_ctx->flags & (MLX4_RSS_IPV6 | MLX4_RSS_IPV4))) { in set_qp_rss()
584 if (rss_ctx->flags & MLX4_RSS_IPV4) in set_qp_rss()
585 rss_ctx->flags |= MLX4_RSS_TCP_IPV4; in set_qp_rss()
586 if (rss_ctx->flags & MLX4_RSS_IPV6) in set_qp_rss()
587 rss_ctx->flags |= MLX4_RSS_TCP_IPV6; in set_qp_rss()
588 if (!(rss_ctx->flags & (MLX4_RSS_IPV6 | MLX4_RSS_IPV4))) { in set_qp_rss()
605 rss_ctx->flags |= MLX4_RSS_BY_INNER_HEADERS_IPONLY; in set_qp_rss()
647 qp->rss_ctx = kzalloc(sizeof(*qp->rss_ctx), GFP_KERNEL); in create_qp_rss()
648 if (!qp->rss_ctx) { in create_qp_rss()
653 err = set_qp_rss(dev, qp->rss_ctx, init_attr, ucmd); in create_qp_rss()
660 kfree(qp->rss_ctx); in create_qp_rss()
2056 rss_context->base_qpn = cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz); in fill_qp_rss_context()
2058 cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz & 0xffffff); in fill_qp_rss_context()
2059 if (qp->rss_ctx->flags & (MLX4_RSS_UDP_IPV4 | MLX4_RSS_UDP_IPV6)) in fill_qp_rss_context()
2061 rss_context->flags = qp->rss_ctx->flags; in fill_qp_rss_context()
2065 memcpy(rss_context->rss_key, qp->rss_ctx->rss_key, in fill_qp_rss_context()