Home
last modified time | relevance | path

Searched refs:rss_ctx (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c1026 return port->rss_ctx[port_rss_ctx]; in mvpp22_rss_ctx()
1374 input.rss_ctx = info->rss_context; in mvpp2_ethtool_cls_rule_ins()
1471 u32 rss_ctx) in mvpp22_rss_fill_table() argument
1477 u32 sel = MVPP22_RSS_INDEX_TABLE(rss_ctx) | in mvpp22_rss_fill_table()
1486 static int mvpp22_rss_context_create(struct mvpp2_port *port, u32 *rss_ctx) in mvpp22_rss_context_create() argument
1505 *rss_ctx = ctx; in mvpp22_rss_context_create()
1521 u32 rss_ctx; in mvpp22_port_rss_ctx_create() local
1524 ret = mvpp22_rss_context_create(port, &rss_ctx); in mvpp22_port_rss_ctx_create()
1532 if (port->rss_ctx[i] < 0) in mvpp22_port_rss_ctx_create()
1539 port->rss_ctx[i] = rss_ctx; in mvpp22_port_rss_ctx_create()
[all …]
Dmvpp2_cls.h267 int mvpp22_port_rss_ctx_create(struct mvpp2_port *port, u32 *rss_ctx);
268 int mvpp22_port_rss_ctx_delete(struct mvpp2_port *port, u32 rss_ctx);
270 int mvpp22_port_rss_ctx_indir_set(struct mvpp2_port *port, u32 rss_ctx,
272 int mvpp22_port_rss_ctx_indir_get(struct mvpp2_port *port, u32 rss_ctx,
Dmvpp2.h1265 int rss_ctx[MVPP22_N_RSS_TABLES]; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c795 kfree(rss->rss_ctx[ctx_id]); in otx2_rss_ctx_delete()
796 rss->rss_ctx[ctx_id] = NULL; in otx2_rss_ctx_delete()
808 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
814 rss->rss_ctx[ctx] = kzalloc(sizeof(*rss->rss_ctx[ctx]), GFP_KERNEL); in otx2_rss_ctx_create()
815 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
828 struct otx2_rss_ctx *rss_ctx; in otx2_set_rxfh_context() local
859 rss_ctx = rss->rss_ctx[*rss_context]; in otx2_set_rxfh_context()
861 rss_ctx->ind_tbl[idx] = indir[idx]; in otx2_set_rxfh_context()
872 struct otx2_rss_ctx *rss_ctx; in otx2_get_rxfh_context() local
893 rss_ctx = rss->rss_ctx[rss_context]; in otx2_get_rxfh_context()
[all …]
Dotx2_common.c308 struct otx2_rss_ctx *rss_ctx; in otx2_set_rss_table() local
313 rss_ctx = rss->rss_ctx[ctx_id]; in otx2_set_rss_table()
333 aq->rss.rq = rss_ctx->ind_tbl[idx]; in otx2_set_rss_table()
371 struct otx2_rss_ctx *rss_ctx; in otx2_rss_init() local
374 rss->rss_size = sizeof(*rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]); in otx2_rss_init()
383 rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP] = kzalloc(rss->rss_size, in otx2_rss_init()
385 if (!rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]) in otx2_rss_init()
388 rss_ctx = rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]; in otx2_rss_init()
390 rss_ctx->ind_tbl[idx] = in otx2_rss_init()
Dotx2_common.h85 struct otx2_rss_ctx *rss_ctx[MAX_RSS_GROUPS]; member
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dqp.c513 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()
[all …]
Dmlx4_ib.h368 struct mlx4_ib_rss *rss_ctx; member
/linux-6.1.9/include/linux/
Dethtool.h774 u32 rss_ctx; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c732 if (pfvf->rss_ctx) in nix_ctx_free()
733 qmem_free(rvu->dev, pfvf->rss_ctx); in nix_ctx_free()
745 pfvf->rss_ctx = NULL; in nix_ctx_free()
764 err = qmem_alloc(rvu->dev, &pfvf->rss_ctx, num_indices, hwctx_size); in nixlf_rss_ctx_init()
769 (u64)pfvf->rss_ctx->iova); in nixlf_rss_ctx_init()
875 if (!(cfg & BIT_ULL(4)) || !pfvf->rss_ctx || in rvu_nix_blk_aq_enq_inst()
Drvu.h216 struct qmem *rss_ctx; member
/linux-6.1.9/net/ethtool/
Dioctl.c3325 act->queue.ctx = input->rss_ctx; in ethtool_rx_flow_rule_create()