Home
last modified time | relevance | path

Searched refs:rss_cfg (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c636 const u8 *indir = hdev->rss_cfg.rss_indirection_tbl; in hclgevf_set_rss_indir_table()
708 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_hash_key() local
731 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key()
735 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key()
746 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss() local
752 switch (rss_cfg->hash_algo) { in hclgevf_get_rss()
767 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss()
776 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss()
783 indir[i] = rss_cfg->rss_indirection_tbl[i]; in hclgevf_get_rss()
799 *hash_algo = hdev->rss_cfg.hash_algo; in hclgevf_parse_rss_hfunc()
[all …]
Dhclgevf_main.h269 struct hclgevf_rss_cfg rss_cfg; member
/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c656 struct hinic_rss_indir_table rss_cfg = { 0 }; in hinic_rss_get_indir_tbl() local
660 u16 out_size = sizeof(rss_cfg); in hinic_rss_get_indir_tbl()
663 rss_cfg.func_id = HINIC_HWIF_FUNC_IDX(hwif); in hinic_rss_get_indir_tbl()
664 rss_cfg.template_id = tmpl_idx; in hinic_rss_get_indir_tbl()
668 &rss_cfg, sizeof(rss_cfg), &rss_cfg, in hinic_rss_get_indir_tbl()
670 if (err || !out_size || rss_cfg.status) { in hinic_rss_get_indir_tbl()
672 err, rss_cfg.status, out_size); in hinic_rss_get_indir_tbl()
676 hinic_be32_to_cpu(rss_cfg.indir, HINIC_RSS_INDIR_SIZE); in hinic_rss_get_indir_tbl()
678 indir_table[i] = rss_cfg.indir[i]; in hinic_rss_get_indir_tbl()
905 struct hinic_rss_config rss_cfg = { 0 }; in hinic_rss_cfg() local
[all …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c473 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts() local
486 rss_cfg |= NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts()
488 rss_cfg &= ~NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts()
498 rss_cfg &= ~NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts()
501 rss_cfg |= NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts()
511 rss_cfg &= ~NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts()
514 rss_cfg |= NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts()
524 rss_cfg &= ~NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts()
527 rss_cfg |= NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts()
535 rss_cfg = NIX_FLOW_KEY_TYPE_IPV4 | NIX_FLOW_KEY_TYPE_IPV6; in otx2_set_rss_hash_opts()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c560 u64 rss_cfg = nicvf_reg_read(nic, NIC_VNIC_RSS_CFG); in nicvf_set_rss_hash_opts() local
577 rss_cfg &= ~(1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts()
580 rss_cfg |= (1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts()
590 rss_cfg &= ~(1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts()
593 rss_cfg |= (1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts()
603 rss_cfg &= ~(1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts()
606 rss_cfg |= (1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts()
614 rss_cfg = RSS_HASH_IP; in nicvf_set_rss_hash_opts()
620 nicvf_reg_write(nic, NIC_VNIC_RSS_CFG, rss_cfg); in nicvf_set_rss_hash_opts()
Dnicvf_main.c341 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss()
342 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
344 mbx.rss_cfg.tbl_offset = nextq; in nicvf_config_rss()
345 mbx.rss_cfg.tbl_len = min(ind_tbl_len, in nicvf_config_rss()
347 mbx.rss_cfg.msg = mbx.rss_cfg.tbl_offset ? in nicvf_config_rss()
350 for (i = 0; i < mbx.rss_cfg.tbl_len; i++) in nicvf_config_rss()
351 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; in nicvf_config_rss()
355 ind_tbl_len -= mbx.rss_cfg.tbl_len; in nicvf_config_rss()
Dnic.h594 struct rss_cfg_msg rss_cfg; member
Dnic_main.c1050 nic_config_rss(nic, &mbx.rss_cfg); in nic_handle_mbx_intr()
/drivers/net/ethernet/intel/ice/
Dice_flow.c1308 struct ice_rss_cfg *r, *rss_cfg; in ice_add_rss_list() local
1317 rss_cfg = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*rss_cfg), in ice_add_rss_list()
1319 if (!rss_cfg) in ice_add_rss_list()
1322 rss_cfg->hashed_flds = prof->segs[prof->segs_cnt - 1].match; in ice_add_rss_list()
1323 rss_cfg->packet_hdr = prof->segs[prof->segs_cnt - 1].hdrs; in ice_add_rss_list()
1324 set_bit(vsi_handle, rss_cfg->vsis); in ice_add_rss_list()
1326 list_add_tail(&rss_cfg->l_entry, &hw->rss_list_head); in ice_add_rss_list()
/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c913 if (nn->rss_cfg & nfp_rss_flag) in nfp_net_get_rss_hash_opts()
938 u32 new_rss_cfg = nn->rss_cfg; in nfp_net_set_rss_hash_opt()
973 if (new_rss_cfg == nn->rss_cfg) in nfp_net_set_rss_hash_opt()
981 nn->rss_cfg = new_rss_cfg; in nfp_net_set_rss_hash_opt()
983 nn_dbg(nn, "Changed RSS config to 0x%x\n", nn->rss_cfg); in nfp_net_set_rss_hash_opt()
Dnfp_net.h616 u32 rss_cfg; member
Dnfp_net_common.c2821 nn_writel(nn, NFP_NET_CFG_RSS_CTRL, nn->rss_cfg); in nfp_net_set_config_and_enable()
3884 nn->rss_cfg = NFP_NET_CFG_RSS_IPV4_TCP | in nfp_net_rss_init()
/drivers/net/ethernet/brocade/bna/
Dbna_types.h764 struct bna_rss_config rss_cfg; member
Dbna_tx_rx.c321 req->cfg.type = rxf->rss_cfg.hash_type; in bna_bfi_rss_cfg()
322 req->cfg.mask = rxf->rss_cfg.hash_mask; in bna_bfi_rss_cfg()
325 htonl(rxf->rss_cfg.toeplitz_hash_key[i]); in bna_bfi_rss_cfg()
633 rxf->rss_cfg = q_config->rss_config; in bna_rxf_init()