/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | rss.c | 91 kvfree(rss); in mlx5e_rss_free() 109 return inner ? &rss->inner_tir[tt] : &rss->tir[tt]; in rss_get_tirp() 288 rss->mdev = mdev; in mlx5e_rss_init_no_tirs() 398 err = mlx5e_rqt_redirect_indir(&rss->rqt, rqns, num_rqns, rss->hash.hfunc, &rss->indir); in mlx5e_rss_apply() 407 rss->enabled = true; in mlx5e_rss_enable() 415 rss->enabled = false; in mlx5e_rss_disable() 416 err = mlx5e_rqt_redirect_direct(&rss->rqt, rss->drop_rqn); in mlx5e_rss_disable() 419 mlx5e_rqt_get_rqtn(&rss->rqt), rss->drop_rqn, err); in mlx5e_rss_disable() 502 *old_rss = *rss; in mlx5e_rss_set_rxfh() 537 *rss = *old_rss; in mlx5e_rss_set_rxfh() [all …]
|
A D | rx_res.c | 61 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def() 95 res->rss[i] = rss; in mlx5e_rx_res_rss_init() 127 rss = res->rss[rss_idx]; in mlx5e_rx_res_rss_destroy() 139 struct mlx5e_rss *rss = res->rss[i]; in mlx5e_rx_res_rss_destroy_all() local 164 struct mlx5e_rss *rss = res->rss[i]; in mlx5e_rx_res_rss_enable() local 179 struct mlx5e_rss *rss = res->rss[i]; in mlx5e_rx_res_rss_disable() local 202 rss = res->rss[rss_idx]; in mlx5e_rx_res_rss_get_rxfh() 217 rss = res->rss[rss_idx]; in mlx5e_rx_res_rss_set_rxfh() 226 struct mlx5e_rss *rss = res->rss[0]; in mlx5e_rx_res_rss_get_hash_fields() local 234 struct mlx5e_rss *rss = res->rss[0]; in mlx5e_rx_res_rss_set_hash_fields() local [all …]
|
A D | rss.h | 17 void mlx5e_rss_free(struct mlx5e_rss *rss); 18 int mlx5e_rss_init(struct mlx5e_rss *rss, struct mlx5_core_dev *mdev, 23 int mlx5e_rss_cleanup(struct mlx5e_rss *rss); 25 void mlx5e_rss_refcnt_inc(struct mlx5e_rss *rss); 26 void mlx5e_rss_refcnt_dec(struct mlx5e_rss *rss); 27 unsigned int mlx5e_rss_refcnt_read(struct mlx5e_rss *rss); 31 int mlx5e_rss_obtain_tirn(struct mlx5e_rss *rss, 37 void mlx5e_rss_disable(struct mlx5e_rss *rss); 39 int mlx5e_rss_packet_merge_set_param(struct mlx5e_rss *rss, 42 int mlx5e_rss_set_rxfh(struct mlx5e_rss *rss, const u32 *indir, [all …]
|
/linux/drivers/net/ethernet/amazon/ena/ |
A D | ena_com.c | 1102 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_allocate() local 1120 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_destroy() local 1130 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_ctrl_init() local 1144 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_ctrl_destroy() local 1155 struct ena_rss *rss = &ena_dev->rss; in ena_com_indirect_table_allocate() local 1207 struct ena_rss *rss = &ena_dev->rss; in ena_com_indirect_table_destroy() local 1300 struct ena_rss *rss = &ena_dev->rss; in ena_com_ind_tbl_convert_to_device() local 2306 struct ena_rss *rss = &ena_dev->rss; in ena_com_set_hash_function() local 2373 struct ena_rss *rss = &ena_dev->rss; in ena_com_fill_hash_function() local 2432 struct ena_rss *rss = &ena_dev->rss; in ena_com_get_hash_function() local [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 497 if (!(rss->flowkey_cfg & in otx2_get_rss_hash_opts() 549 if (!rss->enable) { in otx2_set_rss_hash_opts() 714 rss = &pfvf->hw.rss_info; in otx2_get_rxfh_key_size() 716 return sizeof(rss->key); in otx2_get_rxfh_key_size() 742 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create() 748 rss->rss_ctx[ctx] = kzalloc(sizeof(*rss->rss_ctx[ctx]), GFP_KERNEL); in otx2_rss_ctx_create() 749 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create() 773 rss = &pfvf->hw.rss_info; in otx2_set_rxfh_context() 775 if (!rss->enable) { in otx2_set_rxfh_context() 781 memcpy(rss->key, hkey, sizeof(rss->key)); in otx2_set_rxfh_context() [all …]
|
A D | otx2_common.c | 280 req->flowkey_cfg = rss->flowkey_cfg; in otx2_set_flowkey_cfg() 310 rss_ctx = rss->rss_ctx[ctx_id]; in otx2_set_rss_table() 330 aq->rss.rq = rss_ctx->ind_tbl[idx]; in otx2_set_rss_table() 345 u64 *key = (u64 *)&rss->key[4]; in otx2_set_rss_key() 358 idx = sizeof(rss->key) / sizeof(u64); in otx2_set_rss_key() 371 rss->rss_size = sizeof(*rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP]); in otx2_rss_init() 374 if (!rss->enable) in otx2_rss_init() 375 netdev_rss_key_fill(rss->key, sizeof(rss->key)); in otx2_rss_init() 380 rss->rss_ctx[DEFAULT_RSS_CONTEXT_GROUP] = kzalloc(rss->rss_size, in otx2_rss_init() 396 rss->flowkey_cfg = rss->enable ? rss->flowkey_cfg : in otx2_rss_init() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_adv_rss.c | 152 struct iavf_adv_rss *rss; in iavf_find_adv_rss_cfg_by_hdrs() local 154 list_for_each_entry(rss, &adapter->adv_rss_list_head, list) in iavf_find_adv_rss_cfg_by_hdrs() 155 if (rss->packet_hdrs == packet_hdrs) in iavf_find_adv_rss_cfg_by_hdrs() 156 return rss; in iavf_find_adv_rss_cfg_by_hdrs() 171 iavf_print_adv_rss_cfg(struct iavf_adapter *adapter, struct iavf_adv_rss *rss, in iavf_print_adv_rss_cfg() argument 174 u32 packet_hdrs = rss->packet_hdrs; in iavf_print_adv_rss_cfg() 175 u64 hash_flds = rss->hash_flds; in iavf_print_adv_rss_cfg()
|
A D | iavf_virtchnl.c | 1361 struct iavf_adv_rss *rss; in iavf_add_adv_rss_cfg() local 1412 struct iavf_adv_rss *rss; in iavf_del_adv_rss_cfg() local 1652 struct iavf_adv_rss *rss, *rss_tmp; in iavf_virtchnl_completion() local 1662 list_del(&rss->list); in iavf_virtchnl_completion() 1663 kfree(rss); in iavf_virtchnl_completion() 1670 struct iavf_adv_rss *rss; in iavf_virtchnl_completion() local 1905 struct iavf_adv_rss *rss; in iavf_virtchnl_completion() local 1913 rss->state = IAVF_ADV_RSS_ACTIVE; in iavf_virtchnl_completion() 1920 struct iavf_adv_rss *rss, *rss_tmp; in iavf_virtchnl_completion() local 1926 list_del(&rss->list); in iavf_virtchnl_completion() [all …]
|
A D | iavf_adv_rss.h | 93 iavf_print_adv_rss_cfg(struct iavf_adapter *adapter, struct iavf_adv_rss *rss,
|
A D | iavf_type.h | 211 __le32 rss; /* RSS Hash */ member 241 __le32 rss; /* RSS Hash */ member
|
/linux/include/linux/ |
A D | percpu-rwsem.h | 13 struct rcu_sync rss; member 32 .rss = __RCU_SYNC_INITIALIZER(name.rss), \ 62 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read() 81 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read_trylock() 105 if (likely(rcu_sync_is_idle(&sem->rss))) { in percpu_up_read()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_resources.c | 41 int is_tx, int rss, int qpn, int cqn, in mlx4_en_fill_qp_context() argument 48 context->flags = cpu_to_be32(7 << 16 | rss << MLX4_RSS_QPC_FLAG_OFFSET); in mlx4_en_fill_qp_context() 51 if (!is_tx && !rss) in mlx4_en_fill_qp_context() 74 if (!rss && in mlx4_en_fill_qp_context() 87 if (!is_tx && !rss && in mlx4_en_fill_qp_context()
|
/linux/kernel/locking/ |
A D | percpu-rwsem.c | 19 rcu_sync_init(&sem->rss); in __percpu_init_rwsem() 40 rcu_sync_dtor(&sem->rss); in percpu_free_rwsem() 220 rcu_sync_enter(&sem->rss); in percpu_down_write() 268 rcu_sync_exit(&sem->rss); in percpu_up_write()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs_ethtool.c | 50 struct mlx5e_rss *rss; member 415 struct mlx5e_rss *rss; in flow_get_tirn() local 420 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn() 421 if (!rss) in flow_get_tirn() 430 err = mlx5e_rss_obtain_tirn(rss, tt, &pkt_merge_param, false, tirn); in flow_get_tirn() 433 eth_rule->rss = rss; in flow_get_tirn() 434 mlx5e_rss_refcnt_inc(eth_rule->rss); in flow_get_tirn() 507 if (eth_rule->rss) in del_ethtool_rule() 508 mlx5e_rss_refcnt_dec(eth_rule->rss); in del_ethtool_rule() 802 if (!eth_rule->rss) in mlx5e_ethtool_get_flow() [all …]
|
/linux/drivers/net/ethernet/cavium/thunder/ |
A D | nicvf_ethtool.c | 562 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rss_hash_opts() local 565 if (!rss->enable) in nicvf_set_rss_hash_opts() 656 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_get_rxfh() local 660 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_get_rxfh() 661 indir[idx] = rss->ind_tbl[idx]; in nicvf_get_rxfh() 665 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh() 677 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rxfh() local 683 if (!rss->enable) { in nicvf_set_rxfh() 690 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_set_rxfh() 691 rss->ind_tbl[idx] = indir[idx]; in nicvf_set_rxfh() [all …]
|
A D | nicvf_main.c | 336 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_config_rss() local 337 int ind_tbl_len = rss->rss_size; in nicvf_config_rss() 341 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss() 360 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rss_key() local 365 nicvf_reg_write(nic, key_addr, rss->key[idx]); in nicvf_set_rss_key() 372 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_rss_init() local 378 rss->enable = false; in nicvf_rss_init() 379 rss->hash_bits = 0; in nicvf_rss_init() 383 rss->enable = true; in nicvf_rss_init() 391 rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size)); in nicvf_rss_init() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
A D | t4vf_hw.c | 1017 struct rss_params *rss = &adapter->params.rss; in t4vf_get_rss_glb_config() local 1042 switch (rss->mode) { in t4vf_get_rss_glb_config() 1047 rss->u.basicvirtual.synmapen = in t4vf_get_rss_glb_config() 1049 rss->u.basicvirtual.syn4tupenipv6 = in t4vf_get_rss_glb_config() 1058 rss->u.basicvirtual.ofdmapen = in t4vf_get_rss_glb_config() 1061 rss->u.basicvirtual.tnlmapen = in t4vf_get_rss_glb_config() 1063 rss->u.basicvirtual.tnlalllookup = in t4vf_get_rss_glb_config() 1066 rss->u.basicvirtual.hashtoeplitz = in t4vf_get_rss_glb_config() 1070 if (!rss->u.basicvirtual.tnlmapen) in t4vf_get_rss_glb_config() 1159 switch (adapter->params.rss.mode) { in t4vf_read_rss_vi_config() [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
A D | stmmac_ethtool.c | 996 return sizeof(priv->rss.key); in stmmac_get_rxfh_key_size() 1003 return ARRAY_SIZE(priv->rss.table); in stmmac_get_rxfh_indir_size() 1013 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_get_rxfh() 1014 indir[i] = priv->rss.table[i]; in stmmac_get_rxfh() 1018 memcpy(key, priv->rss.key, sizeof(priv->rss.key)); in stmmac_get_rxfh() 1035 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_set_rxfh() 1036 priv->rss.table[i] = indir[i]; in stmmac_set_rxfh() 1040 memcpy(priv->rss.key, key, sizeof(priv->rss.key)); in stmmac_set_rxfh() 1042 return stmmac_rss_configure(priv, priv->hw, &priv->rss, in stmmac_set_rxfh()
|
A D | stmmac_selftests.c | 824 if (!priv->dma_cap.rssen || !priv->rss.enable) in stmmac_test_rss() 1346 if (priv->rss.enable) { in __stmmac_test_l3filt() 1347 old_enable = priv->rss.enable; in __stmmac_test_l3filt() 1348 priv->rss.enable = false; in __stmmac_test_l3filt() 1420 priv->rss.enable = old_enable; in __stmmac_test_l3filt() 1421 stmmac_rss_configure(priv, priv->hw, &priv->rss, in __stmmac_test_l3filt() 1472 if (priv->rss.enable) { in __stmmac_test_l4filt() 1473 old_enable = priv->rss.enable; in __stmmac_test_l4filt() 1474 priv->rss.enable = false; in __stmmac_test_l4filt() 1551 priv->rss.enable = old_enable; in __stmmac_test_l4filt() [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_l2.c | 2371 rss->update_rss_config = 1; in qed_update_vport_rss() 2372 rss->rss_enable = 1; in qed_update_vport_rss() 2375 rss->update_rss_key = 1; in qed_update_vport_rss() 2386 memcpy(rss->rss_ind_table, in qed_update_vport_rss() 2394 memcpy(&rss[1], &rss[0], sizeof(struct qed_rss_params)); in qed_update_vport_rss() 2402 t_rss = &rss[0]; in qed_update_vport_rss() 2404 t_rss = &rss[1]; in qed_update_vport_rss() 2431 struct qed_rss_params *rss; in qed_update_vport() local 2437 rss = vzalloc(array_size(sizeof(*rss), cdev->num_hwfns)); in qed_update_vport() 2438 if (!rss) in qed_update_vport() [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
A D | bnx2x_vfpf.c | 1981 struct bnx2x_config_rss_params rss; in bnx2x_vf_mbx_update_rss() local 1996 memcpy(rss.ind_table, rss_tlv->ind_table, in bnx2x_vf_mbx_update_rss() 1999 rss.rss_obj = &vf->rss_conf_obj; in bnx2x_vf_mbx_update_rss() 2000 rss.rss_result_mask = rss_tlv->rss_result_mask; in bnx2x_vf_mbx_update_rss() 2003 rss.rss_flags = 0; in bnx2x_vf_mbx_update_rss() 2004 rss.ramrod_flags = 0; in bnx2x_vf_mbx_update_rss() 2011 __set_bit(BNX2X_RSS_SET_SRCH, &rss.rss_flags); in bnx2x_vf_mbx_update_rss() 2013 __set_bit(BNX2X_RSS_IPV4, &rss.rss_flags); in bnx2x_vf_mbx_update_rss() 2015 __set_bit(BNX2X_RSS_IPV4_TCP, &rss.rss_flags); in bnx2x_vf_mbx_update_rss() 2019 __set_bit(BNX2X_RSS_IPV6, &rss.rss_flags); in bnx2x_vf_mbx_update_rss() [all …]
|
/linux/mm/ |
A D | memory.c | 504 if (rss[i]) in add_mm_rss_vec() 795 rss[MM_SWAPENTS]++; in copy_nonpresent_pte() 799 rss[mm_counter(page)]++; in copy_nonpresent_pte() 829 rss[mm_counter(page)]++; in copy_nonpresent_pte() 1016 int rss[NR_MM_COUNTERS]; in copy_pte_range() local 1022 init_rss_vec(rss); in copy_pte_range() 1055 addr, rss); in copy_pte_range() 1314 int rss[NR_MM_COUNTERS]; in zap_pte_range() local 1322 init_rss_vec(rss); in zap_pte_range() 1390 rss[MM_SWAPENTS]--; in zap_pte_range() [all …]
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_base.h | 64 __le32 rss; /* RSS Hash */ member
|
/linux/arch/sparc/mm/ |
A D | tsb.c | 396 void tsb_grow(struct mm_struct *mm, unsigned long tsb_index, unsigned long rss) in tsb_grow() argument 411 if (new_rss_limit > rss) in tsb_grow() 487 (rss < mm->context.tsb_block[tsb_index].tsb_rss_limit))) { in tsb_grow()
|
/linux/Documentation/devicetree/bindings/net/ |
A D | hisilicon-hns-dsaf.txt | 9 "6port-16rss", 60 mode = "6port-16rss";
|