Home
last modified time | relevance | path

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

12345

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Drss.c89 void mlx5e_rss_free(struct mlx5e_rss *rss) in mlx5e_rss_free() argument
91 kvfree(rss); in mlx5e_rss_free()
94 static void mlx5e_rss_params_init(struct mlx5e_rss *rss) in mlx5e_rss_params_init() argument
98 rss->hash.hfunc = ETH_RSS_HASH_TOP; in mlx5e_rss_params_init()
99 netdev_rss_key_fill(rss->hash.toeplitz_hash_key, in mlx5e_rss_params_init()
100 sizeof(rss->hash.toeplitz_hash_key)); in mlx5e_rss_params_init()
102 rss->rx_hash_fields[tt] = in mlx5e_rss_params_init()
106 static struct mlx5e_tir **rss_get_tirp(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, in rss_get_tirp() argument
109 return inner ? &rss->inner_tir[tt] : &rss->tir[tt]; in rss_get_tirp()
112 static struct mlx5e_tir *rss_get_tir(struct mlx5e_rss *rss, enum mlx5_traffic_types tt, in rss_get_tir() argument
[all …]
Drx_res.c19 struct mlx5e_rss *rss[MLX5E_MAX_NUM_RSS]; member
41 struct mlx5e_rss *rss; in mlx5e_rx_res_rss_init_def() local
44 if (WARN_ON(res->rss[0])) in mlx5e_rx_res_rss_init_def()
47 rss = mlx5e_rss_alloc(); in mlx5e_rx_res_rss_init_def()
48 if (!rss) in mlx5e_rx_res_rss_init_def()
51 err = mlx5e_rss_init(rss, res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
56 mlx5e_rss_set_indir_uniform(rss, init_nch); in mlx5e_rx_res_rss_init_def()
58 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def()
63 mlx5e_rss_free(rss); in mlx5e_rx_res_rss_init_def()
70 struct mlx5e_rss *rss; in mlx5e_rx_res_rss_init() local
[all …]
Drss.h17 void mlx5e_rss_free(struct mlx5e_rss *rss);
18 int mlx5e_rss_init(struct mlx5e_rss *rss, struct mlx5_core_dev *mdev,
21 int mlx5e_rss_init_no_tirs(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);
29 u32 mlx5e_rss_get_tirn(struct mlx5e_rss *rss, enum mlx5_traffic_types tt,
31 int mlx5e_rss_obtain_tirn(struct mlx5e_rss *rss,
36 void mlx5e_rss_enable(struct mlx5e_rss *rss, u32 *rqns, unsigned int num_rqns);
[all …]
/linux-6.6.21/drivers/net/ethernet/amazon/ena/
Dena_com.c1088 return ena_dev->rss.hash_func; in ena_com_get_current_hash_function()
1094 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1105 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_allocate() local
1111 rss->hash_key = in ena_com_hash_key_allocate()
1112 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1113 &rss->hash_key_dma_addr, GFP_KERNEL); in ena_com_hash_key_allocate()
1115 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1123 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_destroy() local
1125 if (rss->hash_key) in ena_com_hash_key_destroy()
1126 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_adv_rss.c152 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()
Diavf_virtchnl.c1792 struct iavf_adv_rss *rss; in iavf_add_adv_rss_cfg() local
1809 list_for_each_entry(rss, &adapter->adv_rss_list_head, list) { in iavf_add_adv_rss_cfg()
1810 if (rss->state == IAVF_ADV_RSS_ADD_REQUEST) { in iavf_add_adv_rss_cfg()
1812 rss->state = IAVF_ADV_RSS_ADD_PENDING; in iavf_add_adv_rss_cfg()
1813 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_add_adv_rss_cfg()
1814 iavf_print_adv_rss_cfg(adapter, rss, in iavf_add_adv_rss_cfg()
1843 struct iavf_adv_rss *rss; in iavf_del_adv_rss_cfg() local
1860 list_for_each_entry(rss, &adapter->adv_rss_list_head, list) { in iavf_del_adv_rss_cfg()
1861 if (rss->state == IAVF_ADV_RSS_DEL_REQUEST) { in iavf_del_adv_rss_cfg()
1863 rss->state = IAVF_ADV_RSS_DEL_PENDING; in iavf_del_adv_rss_cfg()
[all …]
Diavf_adv_rss.h93 iavf_print_adv_rss_cfg(struct iavf_adapter *adapter, struct iavf_adv_rss *rss,
/linux-6.6.21/include/linux/
Dpercpu-rwsem.h13 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-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c575 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_get_rss_hash_opts() local
577 if (!(rss->flowkey_cfg & in otx2_get_rss_hash_opts()
583 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_VLAN) in otx2_get_rss_hash_opts()
589 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_TCP) in otx2_get_rss_hash_opts()
594 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_UDP) in otx2_get_rss_hash_opts()
599 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_SCTP) in otx2_get_rss_hash_opts()
604 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_ESP) in otx2_get_rss_hash_opts()
625 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_hash_opts() local
627 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts()
629 if (!rss->enable) { in otx2_set_rss_hash_opts()
[all …]
Dotx2_common.c278 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_flowkey_cfg() local
290 req->flowkey_cfg = rss->flowkey_cfg; in otx2_set_flowkey_cfg()
312 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_table() local
313 const int index = rss->rss_size * ctx_id; in otx2_set_rss_table()
320 rss_ctx = rss->rss_ctx[ctx_id]; in otx2_set_rss_table()
322 for (idx = 0; idx < rss->rss_size; idx++) { in otx2_set_rss_table()
340 aq->rss.rq = rss_ctx->ind_tbl[idx]; in otx2_set_rss_table()
354 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_key() local
355 u64 *key = (u64 *)&rss->key[4]; in otx2_set_rss_key()
367 (u64)(*((u32 *)&rss->key)) << 32); in otx2_set_rss_key()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c41 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-6.6.21/kernel/locking/
Dpercpu-rwsem.c21 rcu_sync_init(&sem->rss); in __percpu_init_rwsem()
42 rcu_sync_dtor(&sem->rss); in percpu_free_rwsem()
231 rcu_sync_enter(&sem->rss); in percpu_down_write()
280 rcu_sync_exit(&sem->rss); in percpu_up_write()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c66 struct mlx5e_rss *rss; member
429 struct mlx5e_rss *rss; in flow_get_tirn() local
434 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn()
435 if (!rss) in flow_get_tirn()
444 err = mlx5e_rss_obtain_tirn(rss, tt, &pkt_merge_param, false, tirn); in flow_get_tirn()
447 eth_rule->rss = rss; in flow_get_tirn()
448 mlx5e_rss_refcnt_inc(eth_rule->rss); in flow_get_tirn()
514 if (eth_rule->rss) in del_ethtool_rule()
515 mlx5e_rss_refcnt_dec(eth_rule->rss); in del_ethtool_rule()
807 if (!eth_rule->rss) in mlx5e_ethtool_get_flow()
[all …]
/linux-6.6.21/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c566 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rss_hash_opts() local
569 if (!rss->enable) in nicvf_set_rss_hash_opts()
660 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_get_rxfh() local
664 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_get_rxfh()
665 indir[idx] = rss->ind_tbl[idx]; in nicvf_get_rxfh()
669 memcpy(hkey, rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_get_rxfh()
681 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rxfh() local
687 if (!rss->enable) { in nicvf_set_rxfh()
694 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_set_rxfh()
695 rss->ind_tbl[idx] = indir[idx]; in nicvf_set_rxfh()
[all …]
Dnicvf_main.c336 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()
350 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; 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()
[all …]
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c1017 struct rss_params *rss = &adapter->params.rss; in t4vf_get_rss_glb_config() local
1040 rss->mode = FW_RSS_GLB_CONFIG_CMD_MODE_G( in t4vf_get_rss_glb_config()
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()
1051 rss->u.basicvirtual.syn2tupenipv6 = in t4vf_get_rss_glb_config()
1053 rss->u.basicvirtual.syn4tupenipv4 = in t4vf_get_rss_glb_config()
1055 rss->u.basicvirtual.syn2tupenipv4 = 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()
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c2375 struct qed_rss_params *rss) in qed_update_vport_rss() argument
2380 rss->update_rss_config = 1; in qed_update_vport_rss()
2381 rss->rss_enable = 1; in qed_update_vport_rss()
2382 rss->update_rss_capabilities = 1; in qed_update_vport_rss()
2383 rss->update_rss_ind_table = 1; in qed_update_vport_rss()
2384 rss->update_rss_key = 1; in qed_update_vport_rss()
2385 rss->rss_caps = input->rss_caps; in qed_update_vport_rss()
2386 memcpy(rss->rss_key, input->rss_key, QED_RSS_KEY_SIZE * sizeof(u32)); in qed_update_vport_rss()
2395 memcpy(rss->rss_ind_table, in qed_update_vport_rss()
2398 rss->rss_table_size_log = 7; in qed_update_vport_rss()
[all …]
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c1118 return sizeof(priv->rss.key); in stmmac_get_rxfh_key_size()
1125 return ARRAY_SIZE(priv->rss.table); in stmmac_get_rxfh_indir_size()
1135 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_get_rxfh()
1136 indir[i] = priv->rss.table[i]; in stmmac_get_rxfh()
1140 memcpy(key, priv->rss.key, sizeof(priv->rss.key)); in stmmac_get_rxfh()
1157 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_set_rxfh()
1158 priv->rss.table[i] = indir[i]; in stmmac_set_rxfh()
1162 memcpy(priv->rss.key, key, sizeof(priv->rss.key)); in stmmac_set_rxfh()
1164 return stmmac_rss_configure(priv, priv->hw, &priv->rss, in stmmac_set_rxfh()
Dstmmac_selftests.c824 if (!priv->dma_cap.rssen || !priv->rss.enable) in stmmac_test_rss()
1345 if (priv->rss.enable) { in __stmmac_test_l3filt()
1346 old_enable = priv->rss.enable; in __stmmac_test_l3filt()
1347 priv->rss.enable = false; in __stmmac_test_l3filt()
1419 priv->rss.enable = old_enable; in __stmmac_test_l3filt()
1420 stmmac_rss_configure(priv, priv->hw, &priv->rss, in __stmmac_test_l3filt()
1471 if (priv->rss.enable) { in __stmmac_test_l4filt()
1472 old_enable = priv->rss.enable; in __stmmac_test_l4filt()
1473 priv->rss.enable = false; in __stmmac_test_l4filt()
1550 priv->rss.enable = old_enable; in __stmmac_test_l4filt()
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c1984 struct bnx2x_config_rss_params rss; in bnx2x_vf_mbx_update_rss() local
1996 memset(&rss, 0, sizeof(struct bnx2x_config_rss_params)); in bnx2x_vf_mbx_update_rss()
1999 memcpy(rss.ind_table, rss_tlv->ind_table, in bnx2x_vf_mbx_update_rss()
2001 memcpy(rss.rss_key, rss_tlv->rss_key, sizeof(rss_tlv->rss_key)); in bnx2x_vf_mbx_update_rss()
2002 rss.rss_obj = &vf->rss_conf_obj; in bnx2x_vf_mbx_update_rss()
2003 rss.rss_result_mask = rss_tlv->rss_result_mask; in bnx2x_vf_mbx_update_rss()
2006 rss.rss_flags = 0; in bnx2x_vf_mbx_update_rss()
2007 rss.ramrod_flags = 0; in bnx2x_vf_mbx_update_rss()
2010 __set_bit(BNX2X_RSS_MODE_DISABLED, &rss.rss_flags); in bnx2x_vf_mbx_update_rss()
2012 __set_bit(BNX2X_RSS_MODE_REGULAR, &rss.rss_flags); in bnx2x_vf_mbx_update_rss()
[all …]
/linux-6.6.21/net/ethtool/
DMakefile7 ethtool_nl-y := netlink.o bitset.o strset.o linkinfo.o linkmodes.o rss.o \
/linux-6.6.21/mm/
Dmemory.c465 static inline void init_rss_vec(int *rss) in init_rss_vec() argument
467 memset(rss, 0, sizeof(int) * NR_MM_COUNTERS); in init_rss_vec()
470 static inline void add_mm_rss_vec(struct mm_struct *mm, int *rss) in add_mm_rss_vec() argument
477 if (rss[i]) in add_mm_rss_vec()
478 add_mm_counter(mm, i, rss[i]); in add_mm_rss_vec()
768 struct vm_area_struct *src_vma, unsigned long addr, int *rss) in copy_nonpresent_pte() argument
793 rss[MM_SWAPENTS]++; in copy_nonpresent_pte()
797 rss[mm_counter(page)]++; in copy_nonpresent_pte()
828 rss[mm_counter(page)]++; in copy_nonpresent_pte()
887 pte_t *dst_pte, pte_t *src_pte, unsigned long addr, int *rss, in copy_present_page() argument
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/mm/
Dhmm.rst343 内存 cgroup (memcg) 和 rss 统计
346 目前,设备内存被视为 rss 计数器中的任何常规页面(如果设备页面用于匿名,则为匿名,
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_base.h69 __le32 rss; /* RSS Hash */ member
/linux-6.6.21/arch/sparc/mm/
Dtsb.c396 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()

12345