/linux-6.1.9/drivers/net/ethernet/sfc/ |
D | mcdi_filters.c | 385 if (spec->rss_context) in efx_mcdi_filter_insert_locked() 386 ctx = efx_find_rss_context_entry(efx, spec->rss_context); in efx_mcdi_filter_insert_locked() 388 ctx = &efx->rss_context; in efx_mcdi_filter_insert_locked() 492 saved_spec->rss_context = spec->rss_context; in efx_mcdi_filter_insert_locked() 614 (efx_rss_active(&efx->rss_context) ? in efx_mcdi_filter_remove_internal() 617 new_spec.rss_context = 0; in efx_mcdi_filter_remove_internal() 620 &efx->rss_context, in efx_mcdi_filter_remove_internal() 767 filter_flags = efx_rss_active(&efx->rss_context) ? EFX_FILTER_FLAG_RX_RSS : 0; in efx_mcdi_filter_insert_addr_list() 836 filter_flags = efx_rss_active(&efx->rss_context) ? EFX_FILTER_FLAG_RX_RSS : 0; in efx_mcdi_filter_insert_def() 1407 if (spec->rss_context) in efx_mcdi_filter_table_restore() [all …]
|
D | ethtool_common.c | 683 u32 *rss_context) in efx_ethtool_get_class_rule() argument 841 *rss_context = spec.rss_context; in efx_ethtool_get_class_rule() 851 u32 rss_context = 0; in efx_ethtool_get_rxnfc() local 860 struct efx_rss_context *ctx = &efx->rss_context; in efx_ethtool_get_rxnfc() 864 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_ethtool_get_rxnfc() 865 ctx = efx_find_rss_context_entry(efx, info->rss_context); in efx_ethtool_get_rxnfc() 920 rc = efx_ethtool_get_class_rule(efx, &info->fs, &rss_context); in efx_ethtool_get_rxnfc() 924 info->rss_context = rss_context; in efx_ethtool_get_rxnfc() 955 u32 rss_context) in efx_ethtool_set_class_rule() argument 997 spec.rss_context = rss_context; in efx_ethtool_set_class_rule() [all …]
|
D | ethtool_common.h | 54 u8 *key, u8 *hfunc, u32 rss_context); 57 const u8 hfunc, u32 *rss_context,
|
D | filter.h | 165 u32 rss_context; member 193 spec->rss_context = 0; in efx_filter_init_rx()
|
D | ef100_netdev.c | 402 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in ef100_probe_netdev() 403 sizeof(efx->rss_context.rx_hash_key)); in ef100_probe_netdev()
|
D | efx.c | 300 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in efx_probe_nic() 301 sizeof(efx->rss_context.rx_hash_key)); in efx_probe_nic() 302 efx_set_default_rx_indir_table(efx, &efx->rss_context); in efx_probe_nic()
|
D | rx_common.c | 561 struct list_head *head = &efx->rss_context.list; in efx_alloc_rss_context_entry() 594 struct list_head *head = &efx->rss_context.list; in efx_find_rss_context_entry()
|
/linux-6.1.9/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 646 u32 *rss_context) in efx_ethtool_get_class_rule() argument 804 *rss_context = spec.rss_context; in efx_ethtool_get_class_rule() 814 u32 rss_context = 0; in efx_siena_ethtool_get_rxnfc() local 823 struct efx_rss_context *ctx = &efx->rss_context; in efx_siena_ethtool_get_rxnfc() 827 if (info->flow_type & FLOW_RSS && info->rss_context) { in efx_siena_ethtool_get_rxnfc() 829 info->rss_context); in efx_siena_ethtool_get_rxnfc() 884 rc = efx_ethtool_get_class_rule(efx, &info->fs, &rss_context); in efx_siena_ethtool_get_rxnfc() 888 info->rss_context = rss_context; in efx_siena_ethtool_get_rxnfc() 919 u32 rss_context) in efx_ethtool_set_class_rule() argument 961 spec.rss_context = rss_context; in efx_ethtool_set_class_rule() [all …]
|
D | siena.c | 358 memcpy(efx->rss_context.rx_hash_key, &temp, sizeof(temp)); in siena_rx_pull_rss_config() 360 memcpy(efx->rss_context.rx_hash_key + sizeof(temp), &temp, sizeof(temp)); in siena_rx_pull_rss_config() 362 memcpy(efx->rss_context.rx_hash_key + 2 * sizeof(temp), &temp, in siena_rx_pull_rss_config() 375 memcpy(efx->rss_context.rx_hash_key, key, sizeof(temp)); in siena_rx_push_rss_config() 376 memcpy(&temp, efx->rss_context.rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config() 380 BUILD_BUG_ON(sizeof(efx->rss_context.rx_hash_key) < in siena_rx_push_rss_config() 383 memcpy(&temp, efx->rss_context.rx_hash_key, sizeof(temp)); in siena_rx_push_rss_config() 385 memcpy(&temp, efx->rss_context.rx_hash_key + sizeof(temp), sizeof(temp)); in siena_rx_push_rss_config() 389 memcpy(&temp, efx->rss_context.rx_hash_key + 2 * sizeof(temp), in siena_rx_push_rss_config() 393 memcpy(efx->rss_context.rx_indir_table, rx_indir_table, in siena_rx_push_rss_config() [all …]
|
D | ethtool_common.h | 49 u8 *key, u8 *hfunc, u32 rss_context); 52 const u8 hfunc, u32 *rss_context,
|
D | filter.h | 159 u32 rss_context; member 186 spec->rss_context = 0; in efx_filter_init_rx()
|
D | efx.c | 311 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in efx_probe_nic() 312 sizeof(efx->rss_context.rx_hash_key)); in efx_probe_nic() 313 efx_siena_set_default_rx_indir_table(efx, &efx->rss_context); in efx_probe_nic()
|
D | farch.c | 1634 BUILD_BUG_ON(ARRAY_SIZE(efx->rss_context.rx_indir_table) != in efx_farch_rx_push_indir_table() 1639 efx->rss_context.rx_indir_table[i]); in efx_farch_rx_push_indir_table() 1651 BUILD_BUG_ON(ARRAY_SIZE(efx->rss_context.rx_indir_table) != in efx_farch_rx_pull_indir_table() 1658 efx->rss_context.rx_indir_table[i] = EFX_DWORD_FIELD(dword, FRF_BZ_IT_QUEUE); in efx_farch_rx_pull_indir_table() 2038 if ((gen_spec->flags & EFX_FILTER_FLAG_RX_RSS) && gen_spec->rss_context) in efx_farch_filter_from_gen_spec()
|
D | efx_common.c | 1019 INIT_LIST_HEAD(&efx->rss_context.list); in efx_siena_init_struct() 1020 efx->rss_context.context_id = EFX_MCDI_RSS_CONTEXT_INVALID; in efx_siena_init_struct()
|
D | rx_common.c | 565 struct list_head *head = &efx->rss_context.list; in efx_siena_alloc_rss_context_entry() 599 struct list_head *head = &efx->rss_context.list; in efx_siena_find_rss_context_entry()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 802 u32 *rss_context) in otx2_rss_ctx_create() argument 817 *rss_context = ctx; in otx2_rss_ctx_create() 825 u32 *rss_context, bool delete) in otx2_set_rxfh_context() argument 835 if (*rss_context != ETH_RXFH_CONTEXT_ALLOC && in otx2_set_rxfh_context() 836 *rss_context >= MAX_RSS_GROUPS) in otx2_set_rxfh_context() 851 return otx2_rss_ctx_delete(pfvf, *rss_context); in otx2_set_rxfh_context() 853 if (*rss_context == ETH_RXFH_CONTEXT_ALLOC) { in otx2_set_rxfh_context() 854 ret = otx2_rss_ctx_create(pfvf, rss_context); in otx2_set_rxfh_context() 859 rss_ctx = rss->rss_ctx[*rss_context]; in otx2_set_rxfh_context() 863 otx2_set_rss_table(pfvf, *rss_context); in otx2_set_rxfh_context() [all …]
|
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/ |
D | filter.h | 133 u32 rss_context; member 160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | en_rx.c | 1144 struct mlx4_rss_context *rss_context; in mlx4_en_config_rss_steer() local 1208 rss_context = ptr; in mlx4_en_config_rss_steer() 1209 rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | in mlx4_en_config_rss_steer() 1211 rss_context->default_qpn = cpu_to_be32(rss_map->base_qpn); in mlx4_en_config_rss_steer() 1214 rss_context->base_qpn_udp = rss_context->default_qpn; in mlx4_en_config_rss_steer() 1222 rss_context->flags = rss_mask; in mlx4_en_config_rss_steer() 1223 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1225 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1227 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1228 memcpy(rss_context->rss_key, priv->rss_key, in mlx4_en_config_rss_steer()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 429 u32 rss_context, u32 *tirn) in flow_get_tirn() argument 438 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn() 464 struct ethtool_rx_flow_spec *fs, u32 rss_context) in add_ethtool_flow_rule() argument 489 err = flow_get_tirn(priv, eth_rule, fs, rss_context, &dst->tir_num); in add_ethtool_flow_rule() 729 struct ethtool_rx_flow_spec *fs, u32 rss_context) in mlx5e_ethtool_flow_replace() argument 757 rule = add_ethtool_flow_rule(priv, eth_rule, eth_ft->ft, fs, rss_context); in mlx5e_ethtool_flow_replace() 816 info->rss_context = index; in mlx5e_ethtool_get_flow() 971 err = mlx5e_ethtool_flow_replace(priv, &cmd->fs, cmd->rss_context); in mlx5e_ethtool_set_rxnfc()
|
D | en_ethtool.c | 1261 u8 *key, u8 *hfunc, u32 rss_context) in mlx5e_get_rxfh_context() argument 1267 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, indir, key, hfunc); in mlx5e_get_rxfh_context() 1274 u32 *rss_context, bool delete) in mlx5e_set_rxfh_context() argument 1281 err = mlx5e_rx_res_rss_destroy(priv->rx_res, *rss_context); in mlx5e_set_rxfh_context() 1285 if (*rss_context == ETH_RXFH_CONTEXT_ALLOC) { in mlx5e_set_rxfh_context() 1288 err = mlx5e_rx_res_rss_init(priv->rx_res, rss_context, count); in mlx5e_set_rxfh_context() 1293 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, *rss_context, indir, key, in mlx5e_set_rxfh_context()
|
/linux-6.1.9/include/linux/ |
D | ethtool.h | 704 u8 *hfunc, u32 rss_context); 707 u32 *rss_context, bool delete);
|
/linux-6.1.9/net/ethtool/ |
D | ioctl.c | 1198 if (rxfh.rss_context && !ops->get_rxfh_context) in ethtool_get_rxfh() 1222 if (rxfh.rss_context) in ethtool_get_rxfh() 1225 rxfh.rss_context); in ethtool_get_rxfh() 1274 if (rxfh.rss_context && !ops->set_rxfh_context) in ethtool_set_rxfh() 1314 if (rxfh.rss_context == 0) { in ethtool_set_rxfh() 1333 if (rxfh.rss_context) in ethtool_set_rxfh() 1335 &rxfh.rss_context, delete); in ethtool_set_rxfh() 1341 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, rss_context), in ethtool_set_rxfh() 1342 &rxfh.rss_context, sizeof(rxfh.rss_context))) in ethtool_set_rxfh() 1345 if (!rxfh.rss_context) { in ethtool_set_rxfh()
|
/linux-6.1.9/include/uapi/linux/ |
D | ethtool.h | 1186 __u32 rss_context; member 1243 __u32 rss_context; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool.c | 3161 u8 *key, u8 *hfunc, u32 rss_context) in ice_get_rxfh_context() argument 3175 if (rss_context && !ice_is_adq_active(pf)) { in ice_get_rxfh_context() 3180 qcount = vsi->mqprio_qopt.qopt.count[rss_context]; in ice_get_rxfh_context() 3181 offset = vsi->mqprio_qopt.qopt.offset[rss_context]; in ice_get_rxfh_context() 3183 if (rss_context && ice_is_adq_active(pf)) { in ice_get_rxfh_context() 3185 if (rss_context >= num_tc) { in ice_get_rxfh_context() 3187 rss_context, num_tc); in ice_get_rxfh_context() 3191 vsi = vsi->tc_map_vsi[rss_context]; in ice_get_rxfh_context()
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
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()
|