Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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.1.9/drivers/net/ethernet/amazon/ena/
Dena_com.c1085 return ena_dev->rss.hash_func; in ena_com_get_current_hash_function()
1091 (ena_dev->rss).hash_key; in ena_com_hash_key_fill_default_key()
1102 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_allocate() local
1108 rss->hash_key = in ena_com_hash_key_allocate()
1109 dma_alloc_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_allocate()
1110 &rss->hash_key_dma_addr, GFP_KERNEL); in ena_com_hash_key_allocate()
1112 if (unlikely(!rss->hash_key)) in ena_com_hash_key_allocate()
1120 struct ena_rss *rss = &ena_dev->rss; in ena_com_hash_key_destroy() local
1122 if (rss->hash_key) in ena_com_hash_key_destroy()
1123 dma_free_coherent(ena_dev->dmadev, sizeof(*rss->hash_key), in ena_com_hash_key_destroy()
[all …]
/linux-6.1.9/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.c1769 struct iavf_adv_rss *rss; in iavf_add_adv_rss_cfg() local
1786 list_for_each_entry(rss, &adapter->adv_rss_list_head, list) { in iavf_add_adv_rss_cfg()
1787 if (rss->state == IAVF_ADV_RSS_ADD_REQUEST) { in iavf_add_adv_rss_cfg()
1789 rss->state = IAVF_ADV_RSS_ADD_PENDING; in iavf_add_adv_rss_cfg()
1790 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_add_adv_rss_cfg()
1791 iavf_print_adv_rss_cfg(adapter, rss, in iavf_add_adv_rss_cfg()
1820 struct iavf_adv_rss *rss; in iavf_del_adv_rss_cfg() local
1837 list_for_each_entry(rss, &adapter->adv_rss_list_head, list) { in iavf_del_adv_rss_cfg()
1838 if (rss->state == IAVF_ADV_RSS_DEL_REQUEST) { in iavf_del_adv_rss_cfg()
1840 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.1.9/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.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c561 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_get_rss_hash_opts() local
563 if (!(rss->flowkey_cfg & in otx2_get_rss_hash_opts()
569 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_VLAN) in otx2_get_rss_hash_opts()
575 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_TCP) in otx2_get_rss_hash_opts()
580 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_UDP) in otx2_get_rss_hash_opts()
585 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_SCTP) in otx2_get_rss_hash_opts()
590 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_ESP) in otx2_get_rss_hash_opts()
611 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_hash_opts() local
613 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts()
615 if (!rss->enable) { in otx2_set_rss_hash_opts()
[all …]
Dotx2_common.c271 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_flowkey_cfg() local
283 req->flowkey_cfg = rss->flowkey_cfg; in otx2_set_flowkey_cfg()
305 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_table() local
306 const int index = rss->rss_size * ctx_id; in otx2_set_rss_table()
313 rss_ctx = rss->rss_ctx[ctx_id]; in otx2_set_rss_table()
315 for (idx = 0; idx < rss->rss_size; idx++) { in otx2_set_rss_table()
333 aq->rss.rq = rss_ctx->ind_tbl[idx]; in otx2_set_rss_table()
347 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_key() local
348 u64 *key = (u64 *)&rss->key[4]; in otx2_set_rss_key()
360 (u64)(*((u32 *)&rss->key)) << 32); in otx2_set_rss_key()
[all …]
/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c66 struct mlx5e_rss *rss; member
433 struct mlx5e_rss *rss; in flow_get_tirn() local
438 rss = mlx5e_rx_res_rss_get(priv->rx_res, rss_context); in flow_get_tirn()
439 if (!rss) in flow_get_tirn()
448 err = mlx5e_rss_obtain_tirn(rss, tt, &pkt_merge_param, false, tirn); in flow_get_tirn()
451 eth_rule->rss = rss; in flow_get_tirn()
452 mlx5e_rss_refcnt_inc(eth_rule->rss); in flow_get_tirn()
518 if (eth_rule->rss) in del_ethtool_rule()
519 mlx5e_rss_refcnt_dec(eth_rule->rss); in del_ethtool_rule()
811 if (!eth_rule->rss) in mlx5e_ethtool_get_flow()
[all …]
/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_ethtool.c1006 return sizeof(priv->rss.key); in stmmac_get_rxfh_key_size()
1013 return ARRAY_SIZE(priv->rss.table); in stmmac_get_rxfh_indir_size()
1023 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_get_rxfh()
1024 indir[i] = priv->rss.table[i]; in stmmac_get_rxfh()
1028 memcpy(key, priv->rss.key, sizeof(priv->rss.key)); in stmmac_get_rxfh()
1045 for (i = 0; i < ARRAY_SIZE(priv->rss.table); i++) in stmmac_set_rxfh()
1046 priv->rss.table[i] = indir[i]; in stmmac_set_rxfh()
1050 memcpy(priv->rss.key, key, sizeof(priv->rss.key)); in stmmac_set_rxfh()
1052 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.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c2366 struct qed_rss_params *rss) in qed_update_vport_rss() argument
2371 rss->update_rss_config = 1; in qed_update_vport_rss()
2372 rss->rss_enable = 1; in qed_update_vport_rss()
2373 rss->update_rss_capabilities = 1; in qed_update_vport_rss()
2374 rss->update_rss_ind_table = 1; in qed_update_vport_rss()
2375 rss->update_rss_key = 1; in qed_update_vport_rss()
2376 rss->rss_caps = input->rss_caps; in qed_update_vport_rss()
2377 memcpy(rss->rss_key, input->rss_key, QED_RSS_KEY_SIZE * sizeof(u32)); in qed_update_vport_rss()
2386 memcpy(rss->rss_ind_table, in qed_update_vport_rss()
2389 rss->rss_table_size_log = 7; in qed_update_vport_rss()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c1981 struct bnx2x_config_rss_params rss; in bnx2x_vf_mbx_update_rss() local
1993 memset(&rss, 0, sizeof(struct bnx2x_config_rss_params)); in bnx2x_vf_mbx_update_rss()
1996 memcpy(rss.ind_table, rss_tlv->ind_table, in bnx2x_vf_mbx_update_rss()
1998 memcpy(rss.rss_key, rss_tlv->rss_key, sizeof(rss_tlv->rss_key)); 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()
2007 __set_bit(BNX2X_RSS_MODE_DISABLED, &rss.rss_flags); in bnx2x_vf_mbx_update_rss()
2009 __set_bit(BNX2X_RSS_MODE_REGULAR, &rss.rss_flags); in bnx2x_vf_mbx_update_rss()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/igc/
Digc_base.h64 __le32 rss; /* RSS Hash */ member
/linux-6.1.9/mm/
Dmemory.c496 static inline void init_rss_vec(int *rss) in init_rss_vec() argument
498 memset(rss, 0, sizeof(int) * NR_MM_COUNTERS); in init_rss_vec()
501 static inline void add_mm_rss_vec(struct mm_struct *mm, int *rss) in add_mm_rss_vec() argument
508 if (rss[i]) in add_mm_rss_vec()
509 add_mm_counter(mm, i, rss[i]); in add_mm_rss_vec()
787 struct vm_area_struct *src_vma, unsigned long addr, int *rss) in copy_nonpresent_pte() argument
811 rss[MM_SWAPENTS]++; in copy_nonpresent_pte()
815 rss[mm_counter(page)]++; in copy_nonpresent_pte()
846 rss[mm_counter(page)]++; in copy_nonpresent_pte()
906 pte_t *dst_pte, pte_t *src_pte, unsigned long addr, int *rss, in copy_present_page() argument
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dhmm.rst343 内存 cgroup (memcg) 和 rss 统计
346 目前,设备内存被视为 rss 计数器中的任何常规页面(如果设备页面用于匿名,则为匿名,
/linux-6.1.9/drivers/net/
Dvirtio_net.c202 struct virtio_net_ctrl_rss rss; member
2437 sg_set_buf(&sgs[0], &vi->ctrl->rss, sg_buf_size); in virtnet_commit_rss_command()
2439 sg_buf_size = sizeof(uint16_t) * (vi->ctrl->rss.indirection_table_mask + 1); in virtnet_commit_rss_command()
2440 sg_set_buf(&sgs[1], vi->ctrl->rss.indirection_table, sg_buf_size); in virtnet_commit_rss_command()
2444 sg_set_buf(&sgs[2], &vi->ctrl->rss.max_tx_vq, sg_buf_size); in virtnet_commit_rss_command()
2447 sg_set_buf(&sgs[3], vi->ctrl->rss.key, sg_buf_size); in virtnet_commit_rss_command()
2463 vi->ctrl->rss.hash_types = vi->rss_hash_types_supported; in virtnet_init_default_rss()
2465 vi->ctrl->rss.indirection_table_mask = vi->rss_indir_table_size in virtnet_init_default_rss()
2467 vi->ctrl->rss.unclassified_queue = 0; in virtnet_init_default_rss()
2471 vi->ctrl->rss.indirection_table[i] = indir_val; in virtnet_init_default_rss()
[all …]
/linux-6.1.9/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