/linux/drivers/net/ethernet/sfc/ |
A D | mcdi_filters.c | 382 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 D | ethtool_common.c | 645 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 D | siena.c | 355 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 D | ethtool_common.h | 52 u8 *key, u8 *hfunc, u32 rss_context); 55 const u8 hfunc, u32 *rss_context,
|
A D | filter.h | 159 u32 rss_context; member 186 spec->rss_context = 0; in efx_filter_init_rx()
|
A D | efx.c | 307 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 D | farch.c | 1632 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 D | rx_common.c | 574 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 D | efx_common.c | 1008 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 D | ef100_nic.c | 1227 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 D | net_driver.h | 1026 struct efx_rss_context rss_context; member
|
A D | ef10.c | 1369 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 D | otx2_ethtool.c | 736 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 D | otx2_flows.c | 458 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 D | en_rx.c | 1145 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 D | filter.h | 133 u32 rss_context; member 160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
|
A D | farch.c | 1969 gen_spec->rss_context != EF4_FILTER_RSS_CONTEXT_DEFAULT) in ef4_farch_filter_from_gen_spec()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs_ethtool.c | 411 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 D | en_ethtool.c | 1222 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 D | ethtool.h | 672 u8 *hfunc, u32 rss_context); 675 u32 *rss_context, bool delete);
|
/linux/net/ethtool/ |
A D | ioctl.c | 1206 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 D | ethtool.h | 1140 __u32 rss_context; member 1197 __u32 rss_context; member
|
/linux/drivers/infiniband/hw/mlx4/ |
A D | qp.c | 2051 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 D | mvpp2_cls.c | 1374 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 D | mvpp2_main.c | 5658 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()
|