Home
last modified time | relevance | path

Searched refs:rss_context (Results 1 – 25 of 25) sorted by relevance

/linux/drivers/net/ethernet/sfc/
A Dmcdi_filters.c382 if (spec->rss_context) in efx_mcdi_filter_insert_locked()
385 ctx = &efx->rss_context; in efx_mcdi_filter_insert_locked()
489 saved_spec->rss_context = spec->rss_context; in efx_mcdi_filter_insert_locked()
610 (efx_rss_active(&efx->rss_context) ? in efx_mcdi_filter_remove_internal()
613 new_spec.rss_context = 0; in efx_mcdi_filter_remove_internal()
616 &efx->rss_context, in efx_mcdi_filter_remove_internal()
1403 if (spec->rss_context) in efx_mcdi_filter_table_restore()
1406 ctx = &efx->rss_context; in efx_mcdi_filter_table_restore()
1411 spec->rss_context); in efx_mcdi_filter_table_restore()
1418 spec->rss_context); in efx_mcdi_filter_table_restore()
[all …]
A Dethtool_common.c645 u32 *rss_context) in efx_ethtool_get_class_rule() argument
803 *rss_context = spec.rss_context; in efx_ethtool_get_class_rule()
813 u32 rss_context = 0; in efx_ethtool_get_rxnfc() local
886 info->rss_context = rss_context; in efx_ethtool_get_rxnfc()
917 u32 rss_context) in efx_ethtool_set_class_rule() argument
959 spec.rss_context = rss_context; in efx_ethtool_set_class_rule()
1138 info->rss_context); in efx_ethtool_set_rxnfc()
1198 key = efx->rss_context.rx_hash_key; in efx_ethtool_set_rxfh()
1206 u8 *key, u8 *hfunc, u32 rss_context) in efx_ethtool_get_rxfh_context() argument
1238 const u8 hfunc, u32 *rss_context, in efx_ethtool_set_rxfh_context() argument
[all …]
A Dsiena.c355 memcpy(efx->rss_context.rx_hash_key, &temp, sizeof(temp)); in siena_rx_pull_rss_config()
357 memcpy(efx->rss_context.rx_hash_key + sizeof(temp), &temp, sizeof(temp)); in siena_rx_pull_rss_config()
359 memcpy(efx->rss_context.rx_hash_key + 2 * sizeof(temp), &temp, in siena_rx_pull_rss_config()
372 memcpy(efx->rss_context.rx_hash_key, key, sizeof(temp)); in siena_rx_push_rss_config()
373 memcpy(&temp, efx->rss_context.rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config()
377 BUILD_BUG_ON(sizeof(efx->rss_context.rx_hash_key) < in siena_rx_push_rss_config()
380 memcpy(&temp, efx->rss_context.rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config()
386 memcpy(&temp, efx->rss_context.rx_hash_key + 2 * sizeof(temp), in siena_rx_push_rss_config()
390 memcpy(efx->rss_context.rx_indir_table, rx_indir_table, in siena_rx_push_rss_config()
391 sizeof(efx->rss_context.rx_indir_table)); in siena_rx_push_rss_config()
[all …]
A Dethtool_common.h52 u8 *key, u8 *hfunc, u32 rss_context);
55 const u8 hfunc, u32 *rss_context,
A Dfilter.h159 u32 rss_context; member
186 spec->rss_context = 0; in efx_filter_init_rx()
A Defx.c307 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in efx_probe_nic()
308 sizeof(efx->rss_context.rx_hash_key)); in efx_probe_nic()
309 efx_set_default_rx_indir_table(efx, &efx->rss_context); in efx_probe_nic()
A Dfarch.c1632 BUILD_BUG_ON(ARRAY_SIZE(efx->rss_context.rx_indir_table) != in efx_farch_rx_push_indir_table()
1637 efx->rss_context.rx_indir_table[i]); in efx_farch_rx_push_indir_table()
1649 BUILD_BUG_ON(ARRAY_SIZE(efx->rss_context.rx_indir_table) != in efx_farch_rx_pull_indir_table()
1656 efx->rss_context.rx_indir_table[i] = EFX_DWORD_FIELD(dword, FRF_BZ_IT_QUEUE); in efx_farch_rx_pull_indir_table()
2036 if ((gen_spec->flags & EFX_FILTER_FLAG_RX_RSS) && gen_spec->rss_context) in efx_farch_filter_from_gen_spec()
A Drx_common.c574 struct list_head *head = &efx->rss_context.list; in efx_alloc_rss_context_entry()
607 struct list_head *head = &efx->rss_context.list; in efx_find_rss_context_entry()
A Defx_common.c1008 INIT_LIST_HEAD(&efx->rss_context.list); in efx_init_struct()
1009 efx->rss_context.context_id = EFX_MCDI_RSS_CONTEXT_INVALID; in efx_init_struct()
A Def100_nic.c1227 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in ef100_probe_main()
1228 sizeof(efx->rss_context.rx_hash_key)); in ef100_probe_main()
A Dnet_driver.h1026 struct efx_rss_context rss_context; member
A Def10.c1369 efx->rss_context.rx_indir_table, NULL); in efx_ef10_init_nic()
1386 efx->rss_context.context_id = EFX_MCDI_RSS_CONTEXT_INVALID; in efx_ef10_table_reset_mc_allocations()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c736 u32 *rss_context) in otx2_rss_ctx_create() argument
751 *rss_context = ctx; in otx2_rss_ctx_create()
759 u32 *rss_context, bool delete) in otx2_set_rxfh_context() argument
769 if (*rss_context != ETH_RXFH_CONTEXT_ALLOC && in otx2_set_rxfh_context()
770 *rss_context >= MAX_RSS_GROUPS) in otx2_set_rxfh_context()
793 rss_ctx = rss->rss_ctx[*rss_context]; in otx2_set_rxfh_context()
797 otx2_set_rss_table(pfvf, *rss_context); in otx2_set_rxfh_context()
803 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context() argument
824 if (rss_context >= MAX_RSS_GROUPS) in otx2_get_rxfh_context()
827 rss_ctx = rss->rss_ctx[rss_context]; in otx2_get_rxfh_context()
[all …]
A Dotx2_flows.c458 nfc->rss_context = iter->rss_ctx_id; in otx2_get_flow()
1028 flow->rss_ctx_id = nfc->rss_context; in otx2_add_flow()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_rx.c1145 struct mlx4_rss_context *rss_context; in mlx4_en_config_rss_steer() local
1209 rss_context = ptr; in mlx4_en_config_rss_steer()
1210 rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | in mlx4_en_config_rss_steer()
1212 rss_context->default_qpn = cpu_to_be32(rss_map->base_qpn); in mlx4_en_config_rss_steer()
1215 rss_context->base_qpn_udp = rss_context->default_qpn; in mlx4_en_config_rss_steer()
1223 rss_context->flags = rss_mask; in mlx4_en_config_rss_steer()
1224 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
1226 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer()
1228 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer()
1229 memcpy(rss_context->rss_key, priv->rss_key, in mlx4_en_config_rss_steer()
/linux/drivers/net/ethernet/sfc/falcon/
A Dfilter.h133 u32 rss_context; member
160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
A Dfarch.c1969 gen_spec->rss_context != EF4_FILTER_RSS_CONTEXT_DEFAULT) in ef4_farch_filter_from_gen_spec()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c411 u32 rss_context, u32 *tirn) in flow_get_tirn() argument
420 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn()
454 struct ethtool_rx_flow_spec *fs, u32 rss_context) in add_ethtool_flow_rule() argument
479 err = flow_get_tirn(priv, eth_rule, fs, rss_context, &dst->tir_num); in add_ethtool_flow_rule()
718 struct ethtool_rx_flow_spec *fs, u32 rss_context) in mlx5e_ethtool_flow_replace() argument
749 rule = add_ethtool_flow_rule(priv, eth_rule, eth_ft->ft, fs, rss_context); in mlx5e_ethtool_flow_replace()
807 info->rss_context = index; in mlx5e_ethtool_get_flow()
946 err = mlx5e_ethtool_flow_replace(priv, &cmd->fs, cmd->rss_context); in mlx5e_ethtool_set_rxnfc()
A Den_ethtool.c1222 u8 *key, u8 *hfunc, u32 rss_context) in mlx5e_get_rxfh_context() argument
1228 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, indir, key, hfunc); in mlx5e_get_rxfh_context()
1235 u32 *rss_context, bool delete) in mlx5e_set_rxfh_context() argument
1242 err = mlx5e_rx_res_rss_destroy(priv->rx_res, *rss_context); in mlx5e_set_rxfh_context()
1246 if (*rss_context == ETH_RXFH_CONTEXT_ALLOC) { in mlx5e_set_rxfh_context()
1249 err = mlx5e_rx_res_rss_init(priv->rx_res, rss_context, count); in mlx5e_set_rxfh_context()
1254 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, *rss_context, indir, key, in mlx5e_set_rxfh_context()
/linux/include/linux/
A Dethtool.h672 u8 *hfunc, u32 rss_context);
675 u32 *rss_context, bool delete);
/linux/net/ethtool/
A Dioctl.c1206 if (rxfh.rss_context && !ops->get_rxfh_context) in ethtool_get_rxfh()
1230 if (rxfh.rss_context) in ethtool_get_rxfh()
1233 rxfh.rss_context); in ethtool_get_rxfh()
1282 if (rxfh.rss_context && !ops->set_rxfh_context) in ethtool_set_rxfh()
1322 if (rxfh.rss_context == 0) { in ethtool_set_rxfh()
1341 if (rxfh.rss_context) in ethtool_set_rxfh()
1343 &rxfh.rss_context, delete); in ethtool_set_rxfh()
1349 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, rss_context), in ethtool_set_rxfh()
1350 &rxfh.rss_context, sizeof(rxfh.rss_context))) in ethtool_set_rxfh()
1353 if (!rxfh.rss_context) { in ethtool_set_rxfh()
/linux/include/uapi/linux/
A Dethtool.h1140 __u32 rss_context; member
1197 __u32 rss_context; member
/linux/drivers/infiniband/hw/mlx4/
A Dqp.c2051 struct mlx4_rss_context *rss_context; in fill_qp_rss_context() local
2053 rss_context = (void *)context + offsetof(struct mlx4_qp_context, in fill_qp_rss_context()
2056 rss_context->base_qpn = cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz); in fill_qp_rss_context()
2057 rss_context->default_qpn = in fill_qp_rss_context()
2060 rss_context->base_qpn_udp = rss_context->default_qpn; in fill_qp_rss_context()
2061 rss_context->flags = qp->rss_ctx->flags; in fill_qp_rss_context()
2063 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context()
2065 memcpy(rss_context->rss_key, qp->rss_ctx->rss_key, in fill_qp_rss_context()
/linux/drivers/net/ethernet/marvell/mvpp2/
A Dmvpp2_cls.c1374 input.rss_ctx = info->rss_context; in mvpp2_ethtool_cls_rule_ins()
1572 rxnfc->rss_context != port_ctx) in mvpp22_port_rss_ctx_delete()
A Dmvpp2_main.c5658 u8 *key, u8 *hfunc, u32 rss_context) in mvpp2_ethtool_get_rxfh_context() argument
5665 if (rss_context >= MVPP22_N_RSS_TABLES) in mvpp2_ethtool_get_rxfh_context()
5672 ret = mvpp22_port_rss_ctx_indir_get(port, rss_context, indir); in mvpp2_ethtool_get_rxfh_context()
5679 const u8 hfunc, u32 *rss_context, in mvpp2_ethtool_set_rxfh_context() argument
5695 return mvpp22_port_rss_ctx_delete(port, *rss_context); in mvpp2_ethtool_set_rxfh_context()
5697 if (*rss_context == ETH_RXFH_CONTEXT_ALLOC) { in mvpp2_ethtool_set_rxfh_context()
5698 ret = mvpp22_port_rss_ctx_create(port, rss_context); in mvpp2_ethtool_set_rxfh_context()
5703 return mvpp22_port_rss_ctx_indir_set(port, *rss_context, indir); in mvpp2_ethtool_set_rxfh_context()

Completed in 139 milliseconds