Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_cls.c1032 return port->rss_ctx[port_rss_ctx]; in mvpp22_rss_ctx()
1380 input.rss_ctx = info->rss_context; in mvpp2_ethtool_cls_rule_ins()
1477 u32 rss_ctx) in mvpp22_rss_fill_table() argument
1483 u32 sel = MVPP22_RSS_INDEX_TABLE(rss_ctx) | in mvpp22_rss_fill_table()
1492 static int mvpp22_rss_context_create(struct mvpp2_port *port, u32 *rss_ctx) in mvpp22_rss_context_create() argument
1511 *rss_ctx = ctx; in mvpp22_rss_context_create()
1527 u32 rss_ctx; in mvpp22_port_rss_ctx_create() local
1530 ret = mvpp22_rss_context_create(port, &rss_ctx); in mvpp22_port_rss_ctx_create()
1538 if (port->rss_ctx[i] < 0) in mvpp22_port_rss_ctx_create()
1545 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.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c810 kfree(rss->rss_ctx[ctx_id]); in otx2_rss_ctx_delete()
811 rss->rss_ctx[ctx_id] = NULL; in otx2_rss_ctx_delete()
823 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
829 rss->rss_ctx[ctx] = kzalloc(sizeof(*rss->rss_ctx[ctx]), GFP_KERNEL); in otx2_rss_ctx_create()
830 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
843 struct otx2_rss_ctx *rss_ctx; in otx2_set_rxfh_context() local
874 rss_ctx = rss->rss_ctx[*rss_context]; in otx2_set_rxfh_context()
876 rss_ctx->ind_tbl[idx] = indir[idx]; in otx2_set_rxfh_context()
887 struct otx2_rss_ctx *rss_ctx; in otx2_get_rxfh_context() local
908 rss_ctx = rss->rss_ctx[rss_context]; in otx2_get_rxfh_context()
[all …]
Dotx2_common.c315 struct otx2_rss_ctx *rss_ctx; in otx2_set_rss_table() local
320 rss_ctx = rss->rss_ctx[ctx_id]; in otx2_set_rss_table()
340 aq->rss.rq = rss_ctx->ind_tbl[idx]; in otx2_set_rss_table()
378 struct otx2_rss_ctx *rss_ctx; in otx2_rss_init() local
381 rss->rss_size = sizeof(*rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]); in otx2_rss_init()
390 rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP] = kzalloc(rss->rss_size, in otx2_rss_init()
392 if (!rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]) in otx2_rss_init()
395 rss_ctx = rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]; in otx2_rss_init()
397 rss_ctx->ind_tbl[idx] = in otx2_rss_init()
Dotx2_common.h90 struct otx2_rss_ctx *rss_ctx[MAX_RSS_GROUPS]; member
Dotx2_pf.c1969 kfree(rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]); in otx2_stop()
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dqp.c552 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()
[all …]
Dmlx4_ib.h369 struct mlx4_ib_rss *rss_ctx; member
/linux-6.6.21/include/linux/
Dethtool.h926 u32 rss_ctx; member
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c745 if (pfvf->rss_ctx) in nix_ctx_free()
746 qmem_free(rvu->dev, pfvf->rss_ctx); in nix_ctx_free()
758 pfvf->rss_ctx = NULL; in nix_ctx_free()
777 err = qmem_alloc(rvu->dev, &pfvf->rss_ctx, num_indices, hwctx_size); in nixlf_rss_ctx_init()
782 (u64)pfvf->rss_ctx->iova); in nixlf_rss_ctx_init()
918 if (!(cfg & BIT_ULL(4)) || !pfvf->rss_ctx || in rvu_nix_blk_aq_enq_inst()
Drvu.h221 struct qmem *rss_ctx; member
/linux-6.6.21/net/ethtool/
Dioctl.c3374 act->queue.ctx = input->rss_ctx; in ethtool_rx_flow_rule_create()