Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c565 u64 rss_cfg = nicvf_reg_read(nic, NIC_VNIC_RSS_CFG); in nicvf_set_rss_hash_opts() local
582 rss_cfg &= ~(1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts()
585 rss_cfg |= (1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts()
595 rss_cfg &= ~(1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts()
598 rss_cfg |= (1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts()
608 rss_cfg &= ~(1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts()
611 rss_cfg |= (1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts()
619 rss_cfg = RSS_HASH_IP; in nicvf_set_rss_hash_opts()
625 nicvf_reg_write(nic, NIC_VNIC_RSS_CFG, rss_cfg); in nicvf_set_rss_hash_opts()
Dnicvf_main.c321 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss()
322 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
324 mbx.rss_cfg.tbl_offset = nextq; in nicvf_config_rss()
325 mbx.rss_cfg.tbl_len = min(ind_tbl_len, in nicvf_config_rss()
327 mbx.rss_cfg.msg = mbx.rss_cfg.tbl_offset ? in nicvf_config_rss()
330 for (i = 0; i < mbx.rss_cfg.tbl_len; i++) in nicvf_config_rss()
331 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; in nicvf_config_rss()
335 ind_tbl_len -= mbx.rss_cfg.tbl_len; in nicvf_config_rss()
Dnic.h595 struct rss_cfg_msg rss_cfg; member
Dnic_main.c1037 nic_config_rss(nic, &mbx.rss_cfg); in nic_handle_mbx_intr()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c400 const u8 *indir = hdev->rss_cfg.rss_indirection_tbl; in hclgevf_set_rss_indir_table()
522 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss() local
527 indir[i] = rss_cfg->rss_indirection_tbl[i]; in hclgevf_get_rss()
536 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss() local
541 rss_cfg->rss_indirection_tbl[i] = indir[i]; in hclgevf_set_rss()
550 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_tc_size() local
552 return rss_cfg->rss_size; in hclgevf_get_tc_size()
1393 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_rss_init_hw() local
1396 rss_cfg->rss_size = hdev->rss_size_max; in hclgevf_rss_init_hw()
1400 rss_cfg->rss_indirection_tbl[i] = i % hdev->rss_size_max; in hclgevf_rss_init_hw()
Dhclgevf_main.h129 struct hclgevf_rss_cfg rss_cfg; member
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c826 if (nn->rss_cfg & nfp_rss_flag) in nfp_net_get_rss_hash_opts()
851 u32 new_rss_cfg = nn->rss_cfg; in nfp_net_set_rss_hash_opt()
886 if (new_rss_cfg == nn->rss_cfg) in nfp_net_set_rss_hash_opt()
894 nn->rss_cfg = new_rss_cfg; in nfp_net_set_rss_hash_opt()
896 nn_dbg(nn, "Changed RSS config to 0x%x\n", nn->rss_cfg); in nfp_net_set_rss_hash_opt()
Dnfp_net.h608 u32 rss_cfg; member
Dnfp_net_common.c2617 nn_writel(nn, NFP_NET_CFG_RSS_CTRL, nn->rss_cfg); in nfp_net_set_config_and_enable()
3698 nn->rss_cfg = NFP_NET_CFG_RSS_IPV4_TCP | in nfp_net_rss_init()
/Linux-v4.19/drivers/net/ethernet/brocade/bna/
Dbna_types.h772 struct bna_rss_config rss_cfg; member
Dbna_tx_rx.c329 req->cfg.type = rxf->rss_cfg.hash_type; in bna_bfi_rss_cfg()
330 req->cfg.mask = rxf->rss_cfg.hash_mask; in bna_bfi_rss_cfg()
333 htonl(rxf->rss_cfg.toeplitz_hash_key[i]); in bna_bfi_rss_cfg()
641 rxf->rss_cfg = q_config->rss_config; in bna_rxf_init()