/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 636 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 …]
|
D | hclgevf_main.h | 269 struct hclgevf_rss_cfg rss_cfg; member
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 656 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/ |
D | otx2_ethtool.c | 473 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/ |
D | nicvf_ethtool.c | 560 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()
|
D | nicvf_main.c | 341 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()
|
D | nic.h | 594 struct rss_cfg_msg rss_cfg; member
|
D | nic_main.c | 1050 nic_config_rss(nic, &mbx.rss_cfg); in nic_handle_mbx_intr()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_flow.c | 1308 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/ |
D | nfp_net_ethtool.c | 913 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()
|
D | nfp_net.h | 616 u32 rss_cfg; member
|
D | nfp_net_common.c | 2821 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/ |
D | bna_types.h | 764 struct bna_rss_config rss_cfg; member
|
D | bna_tx_rx.c | 321 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()
|