/linux/net/ethtool/ |
H A D | rss.c | 8 u32 rss_context; member 41 request->rss_context = nla_get_u32(tb[ETHTOOL_A_RSS_CONTEXT]); in rss_parse_request() 110 ctx = xa_load(&dev->ethtool->rss_ctx, request->rss_context); in rss_prepare_ctx() 152 if (request->rss_context) { in rss_prepare_data() 186 if (request->rss_context && in rss_fill_reply() 187 nla_put_u32(skb, ETHTOOL_A_RSS_CONTEXT, request->rss_context)) in rss_fill_reply() 266 struct net_device *dev, u32 rss_context) in rss_dump_one_ctx() argument 274 req.rss_context = rss_context; in rss_dump_one_ctx() 285 if (!rss_context) in rss_dump_one_ctx()
|
H A D | ioctl.c | 1239 if (rxfh.rss_context && !(ops->cap_rss_ctx_supported || in ethtool_get_rxfh() 1264 if (rxfh.rss_context) { in ethtool_get_rxfh() 1265 ctx = xa_load(&dev->ethtool->rss_ctx, rxfh.rss_context); in ethtool_get_rxfh() 1380 if (rxfh.rss_context && !(ops->cap_rss_ctx_supported || in ethtool_set_rxfh() 1391 create = rxfh.rss_context == ETH_RXFH_CONTEXT_ALLOC; in ethtool_set_rxfh() 1412 if (rxfh.rss_context && !ops->rxfh_per_ctx_key) in ethtool_set_rxfh() 1443 if (rxfh.rss_context == 0) { in ethtool_set_rxfh() 1467 if (rxfh.rss_context) { in ethtool_set_rxfh() 1472 if (rxfh.rss_context && rxfh_dev.rss_delete) { in ethtool_set_rxfh() 1473 ret = ethtool_check_rss_ctx_busy(dev, rxfh.rss_context); in ethtool_set_rxfh() [all …]
|
H A D | common.h | 50 int ethtool_check_rss_ctx_busy(struct net_device *dev, u32 rss_context);
|
H A D | common.c | 598 rule_info.rss_context); in ethtool_get_max_rxnfc_channel() 705 int ethtool_check_rss_ctx_busy(struct net_device *dev, u32 rss_context) in ethtool_check_rss_ctx_busy() argument 742 rule_info.rss_context == rss_context) { in ethtool_check_rss_ctx_busy()
|
/linux/drivers/net/ethernet/sfc/ |
H A 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.priv; 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.priv) ? in efx_mcdi_filter_remove_internal() 617 new_spec.rss_context = 0; in efx_mcdi_filter_remove_internal() 620 &efx->rss_context.priv, in efx_mcdi_filter_remove_internal() 767 filter_flags = efx_rss_active(&efx->rss_context.priv) ? EFX_FILTER_FLAG_RX_RSS : 0; in efx_mcdi_filter_insert_addr_list() 836 filter_flags = efx_rss_active(&efx->rss_context.priv) ? EFX_FILTER_FLAG_RX_RSS : 0; in efx_mcdi_filter_insert_def() 1407 if (spec->rss_context) in efx_mcdi_filter_table_restore() [all …]
|
H A D | filter.h | 158 u32 rss_context; member 186 spec->rss_context = 0; in efx_filter_init_rx()
|
H A D | ethtool_common.h | 62 u32 rss_context,
|
H A D | ef100_netdev.c | 475 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in ef100_probe_netdev() 476 sizeof(efx->rss_context.rx_hash_key)); in ef100_probe_netdev()
|
H A D | efx.c | 301 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in efx_probe_nic() 302 sizeof(efx->rss_context.rx_hash_key)); in efx_probe_nic() 303 efx_set_default_rx_indir_table(efx, efx->rss_context.rx_indir_table); in efx_probe_nic()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 807 u32 *rss_context) in otx2_rss_ctx_create() argument 822 *rss_context = ctx; in otx2_rss_ctx_create() 832 u32 rss_context = DEFAULT_RSS_CONTEXT_GROUP; in otx2_set_rxfh() local 842 if (rxfh->rss_context) in otx2_set_rxfh() 843 rss_context = rxfh->rss_context; in otx2_set_rxfh() 845 if (rss_context != ETH_RXFH_CONTEXT_ALLOC && in otx2_set_rxfh() 846 rss_context >= MAX_RSS_GROUPS) in otx2_set_rxfh() 861 return otx2_rss_ctx_delete(pfvf, rss_context); in otx2_set_rxfh() 863 if (rss_context == ETH_RXFH_CONTEXT_ALLOC) { in otx2_set_rxfh() 864 ret = otx2_rss_ctx_create(pfvf, &rss_context); in otx2_set_rxfh() [all …]
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 640 u32 *rss_context) in efx_ethtool_get_class_rule() argument 798 *rss_context = spec.rss_context; in efx_ethtool_get_class_rule() 808 u32 rss_context = 0; in efx_siena_ethtool_get_rxnfc() local 820 if (!efx_rss_active(&efx->rss_context)) /* No RSS */ in efx_siena_ethtool_get_rxnfc() 826 if (efx->rss_context.rx_hash_udp_4tuple) in efx_siena_ethtool_get_rxnfc() 865 rc = efx_ethtool_get_class_rule(efx, &info->fs, &rss_context); in efx_siena_ethtool_get_rxnfc() 869 info->rss_context = rss_context; in efx_siena_ethtool_get_rxnfc() 900 u32 rss_context) in efx_ethtool_set_class_rule() argument 942 spec.rss_context = rss_context; in efx_ethtool_set_class_rule() 1121 info->rss_context); in efx_siena_ethtool_set_rxnfc() [all …]
|
H A D | filter.h | 159 u32 rss_context; member 186 spec->rss_context = 0; in efx_filter_init_rx()
|
H A D | efx.c | 310 netdev_rss_key_fill(efx->rss_context.rx_hash_key, in efx_probe_nic() 311 sizeof(efx->rss_context.rx_hash_key)); in efx_probe_nic() 312 efx_siena_set_default_rx_indir_table(efx, &efx->rss_context); in efx_probe_nic()
|
H A 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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 425 u32 rss_context, u32 *tirn) in flow_get_tirn() argument 434 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn() 460 struct ethtool_rx_flow_spec *fs, u32 rss_context) in add_ethtool_flow_rule() argument 485 err = flow_get_tirn(priv, eth_rule, fs, rss_context, &dst->tir_num); in add_ethtool_flow_rule() 725 struct ethtool_rx_flow_spec *fs, u32 rss_context) in mlx5e_ethtool_flow_replace() argument 753 rule = add_ethtool_flow_rule(priv, eth_rule, eth_ft->ft, fs, rss_context); in mlx5e_ethtool_flow_replace() 812 info->rss_context = index; in mlx5e_ethtool_get_flow() 905 rss_idx = nfc->rss_context; in mlx5e_set_rss_hash_opt() 951 rss_idx = nfc->rss_context; in mlx5e_get_rss_hash_opt() 982 err = mlx5e_ethtool_flow_replace(priv, &cmd->fs, cmd->rss_context); in mlx5e_ethtool_set_rxnfc()
|
H A D | en_ethtool.c | 1460 u32 rss_context = rxfh->rss_context; in mlx5e_get_rxfh() local 1464 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, in mlx5e_get_rxfh() 1474 u32 *rss_context = &rxfh->rss_context; in mlx5e_set_rxfh() local 1494 if (*rss_context && rxfh->rss_delete) { in mlx5e_set_rxfh() 1495 err = mlx5e_rx_res_rss_destroy(priv->rx_res, *rss_context); in mlx5e_set_rxfh() 1499 if (*rss_context == ETH_RXFH_CONTEXT_ALLOC) { in mlx5e_set_rxfh() 1500 err = mlx5e_rx_res_rss_init(priv->rx_res, rss_context, count); in mlx5e_set_rxfh() 1505 err = mlx5e_rx_res_rss_set_rxfh(priv->rx_res, *rss_context, in mlx5e_set_rxfh()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | filter.h | 133 u32 rss_context; member 160 spec->rss_context = EF4_FILTER_RSS_CONTEXT_DEFAULT; in ef4_filter_init_rx()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_rx.c | 1200 struct mlx4_rss_context *rss_context; in mlx4_en_config_rss_steer() local 1264 rss_context = ptr; in mlx4_en_config_rss_steer() 1265 rss_context->base_qpn = cpu_to_be32(ilog2(rss_rings) << 24 | in mlx4_en_config_rss_steer() 1267 rss_context->default_qpn = cpu_to_be32(rss_map->base_qpn); in mlx4_en_config_rss_steer() 1270 rss_context->base_qpn_udp = rss_context->default_qpn; in mlx4_en_config_rss_steer() 1278 rss_context->flags = rss_mask; in mlx4_en_config_rss_steer() 1279 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1281 rss_context->hash_fn = MLX4_RSS_HASH_XOR; in mlx4_en_config_rss_steer() 1283 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in mlx4_en_config_rss_steer() 1284 memcpy(rss_context->rss_key, priv->rss_key, in mlx4_en_config_rss_steer()
|
/linux/include/linux/ |
H A D | ethtool.h | 704 u32 rss_context; member 1039 u32 rss_context,
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool.c | 3611 u32 rss_context = rxfh->rss_context; in ice_get_rxfh() local 3623 if (rss_context && !ice_is_adq_active(pf)) { in ice_get_rxfh() 3628 qcount = vsi->mqprio_qopt.qopt.count[rss_context]; in ice_get_rxfh() 3629 offset = vsi->mqprio_qopt.qopt.offset[rss_context]; in ice_get_rxfh() 3631 if (rss_context && ice_is_adq_active(pf)) { in ice_get_rxfh() 3633 if (rss_context >= num_tc) { in ice_get_rxfh() 3635 rss_context, num_tc); in ice_get_rxfh() 3639 vsi = vsi->tc_map_vsi[rss_context]; in ice_get_rxfh() 3700 if (rxfh->rss_context) in ice_set_rxfh()
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1491 __u32 rss_context; member 1550 __u32 rss_context; member
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 2090 struct mlx4_rss_context *rss_context; in fill_qp_rss_context() local 2092 rss_context = (void *)context + offsetof(struct mlx4_qp_context, in fill_qp_rss_context() 2095 rss_context->base_qpn = cpu_to_be32(qp->rss_ctx->base_qpn_tbl_sz); in fill_qp_rss_context() 2096 rss_context->default_qpn = in fill_qp_rss_context() 2099 rss_context->base_qpn_udp = rss_context->default_qpn; in fill_qp_rss_context() 2100 rss_context->flags = qp->rss_ctx->flags; in fill_qp_rss_context() 2102 rss_context->hash_fn = MLX4_RSS_HASH_TOP; in fill_qp_rss_context() 2104 memcpy(rss_context->rss_key, qp->rss_ctx->rss_key, in fill_qp_rss_context()
|
/linux/drivers/net/ethernet/marvell/mvpp2/ |
H A D | mvpp2_main.c | 5667 u32 rss_context = rxfh->rss_context; in mvpp2_ethtool_get_rxfh() local 5672 if (rss_context >= MVPP22_N_RSS_TABLES) in mvpp2_ethtool_get_rxfh() 5678 ret = mvpp22_port_rss_ctx_indir_get(port, rss_context, in mvpp2_ethtool_get_rxfh() 5713 ret = mvpp22_port_rss_ctx_create(port, rxfh->rss_context); in mvpp2_create_rxfh_context() 5718 ret = mvpp22_port_rss_ctx_indir_get(port, rxfh->rss_context, in mvpp2_create_rxfh_context() 5721 ret = mvpp22_port_rss_ctx_indir_set(port, rxfh->rss_context, in mvpp2_create_rxfh_context() 5738 ret = mvpp22_port_rss_ctx_indir_set(port, rxfh->rss_context, in mvpp2_modify_rxfh_context() 5745 u32 rss_context, in mvpp2_remove_rxfh_context() argument 5750 return mvpp22_port_rss_ctx_delete(port, rss_context); in mvpp2_remove_rxfh_context()
|
H A D | mvpp2_cls.c | 1380 input.rss_ctx = info->rss_context; in mvpp2_ethtool_cls_rule_ins() 1568 rxnfc->rss_context != port_ctx) in mvpp22_port_rss_ctx_delete()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1194 cmd->rss_context = fltr->base.fw_vnic_id; in bnxt_grxclsrule() 1445 rss_ctx = bnxt_get_rss_ctx_from_index(bp, cmd->rss_context); in bnxt_add_ntuple_cls_rule() 1816 if (rxfh->rss_context) { in bnxt_get_rxfh() 1819 ctx = xa_load(&bp->dev->ethtool->rss_ctx, rxfh->rss_context); in bnxt_get_rxfh() 1951 rss_ctx->index = rxfh->rss_context; in bnxt_create_rxfh_context() 1980 u32 rss_context, in bnxt_remove_rxfh_context() argument
|