/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3_common/ ! |
D | hclge_comm_rss.c | 36 struct hclge_comm_rss_cfg *rss_cfg) in hclge_comm_rss_init_cfg() argument 43 rss_cfg->rss_size = nic->kinfo.rss_size; in hclge_comm_rss_init_cfg() 48 hclge_comm_init_rss_tuple(ae_dev, &rss_cfg->rss_tuple_sets); in hclge_comm_rss_init_cfg() 50 rss_cfg->rss_algo = rss_algo; in hclge_comm_rss_init_cfg() 57 rss_cfg->rss_indirection_tbl = rss_ind_tbl; in hclge_comm_rss_init_cfg() 58 memcpy(rss_cfg->rss_hash_key, hclge_comm_hash_key, in hclge_comm_rss_init_cfg() 61 hclge_comm_rss_indir_init_cfg(ae_dev, rss_cfg); in hclge_comm_rss_init_cfg() 117 int hclge_comm_set_rss_hash_key(struct hclge_comm_rss_cfg *rss_cfg, in hclge_comm_set_rss_hash_key() argument 124 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key() 135 memcpy(rss_cfg->rss_hash_key, key, HCLGE_COMM_RSS_KEY_SIZE); in hclge_comm_set_rss_hash_key() [all …]
|
D | hclge_comm_rss.h | 99 struct hclge_comm_rss_cfg *rss_cfg); 100 int hclge_comm_get_rss_tuple(struct hclge_comm_rss_cfg *rss_cfg, int flow_type, 102 int hclge_comm_parse_rss_hfunc(struct hclge_comm_rss_cfg *rss_cfg, 104 void hclge_comm_get_rss_hash_info(struct hclge_comm_rss_cfg *rss_cfg, u8 *key, 106 void hclge_comm_get_rss_indir_tbl(struct hclge_comm_rss_cfg *rss_cfg, 110 int hclge_comm_init_rss_tuple_cmd(struct hclge_comm_rss_cfg *rss_cfg, 117 struct hclge_comm_rss_cfg *rss_cfg); 122 struct hclge_comm_rss_cfg *rss_cfg); 127 int hclge_comm_set_rss_hash_key(struct hclge_comm_rss_cfg *rss_cfg, 132 struct hclge_comm_rss_cfg *rss_cfg,
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/drivers/net/ethernet/intel/iavf/ ! |
D | iavf_adv_rss.c | 102 iavf_fill_adv_rss_cfg_msg(struct virtchnl_rss_cfg *rss_cfg, in iavf_fill_adv_rss_cfg_msg() argument 105 struct virtchnl_proto_hdrs *proto_hdrs = &rss_cfg->proto_hdrs; in iavf_fill_adv_rss_cfg_msg() 108 rss_cfg->rss_algorithm = VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC; in iavf_fill_adv_rss_cfg_msg()
|
D | iavf_adv_rss.h | 88 iavf_fill_adv_rss_cfg_msg(struct virtchnl_rss_cfg *rss_cfg,
|
D | iavf_virtchnl.c | 1768 struct virtchnl_rss_cfg *rss_cfg; in iavf_add_adv_rss_cfg() local 1781 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_add_adv_rss_cfg() 1782 if (!rss_cfg) in iavf_add_adv_rss_cfg() 1790 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_add_adv_rss_cfg() 1802 (u8 *)rss_cfg, len); in iavf_add_adv_rss_cfg() 1807 kfree(rss_cfg); in iavf_add_adv_rss_cfg() 1819 struct virtchnl_rss_cfg *rss_cfg; in iavf_del_adv_rss_cfg() local 1832 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_del_adv_rss_cfg() 1833 if (!rss_cfg) in iavf_del_adv_rss_cfg() 1841 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_del_adv_rss_cfg() [all …]
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ ! |
D | otx2_ethtool.c | 613 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts() local 626 rss_cfg |= NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts() 628 rss_cfg &= ~NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts() 638 rss_cfg &= ~NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts() 641 rss_cfg |= NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts() 651 rss_cfg &= ~NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts() 654 rss_cfg |= NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts() 664 rss_cfg &= ~NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts() 667 rss_cfg |= NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts() 677 rss_cfg &= ~(NIX_FLOW_KEY_TYPE_ESP | in otx2_set_rss_hash_opts() [all …]
|
/linux-6.1.9/drivers/net/ethernet/cavium/thunder/ ! |
D | nicvf_ethtool.c | 567 u64 rss_cfg = nicvf_reg_read(nic, NIC_VNIC_RSS_CFG); in nicvf_set_rss_hash_opts() local 584 rss_cfg &= ~(1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts() 587 rss_cfg |= (1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts() 597 rss_cfg &= ~(1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts() 600 rss_cfg |= (1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts() 610 rss_cfg &= ~(1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts() 613 rss_cfg |= (1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts() 621 rss_cfg = RSS_HASH_IP; in nicvf_set_rss_hash_opts() 627 nicvf_reg_write(nic, NIC_VNIC_RSS_CFG, rss_cfg); in nicvf_set_rss_hash_opts()
|
D | nicvf_main.c | 340 mbx.rss_cfg.vf_id = nic->vf_id; in nicvf_config_rss() 341 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss() 343 mbx.rss_cfg.tbl_offset = nextq; in nicvf_config_rss() 344 mbx.rss_cfg.tbl_len = min(ind_tbl_len, in nicvf_config_rss() 346 mbx.rss_cfg.msg = mbx.rss_cfg.tbl_offset ? in nicvf_config_rss() 349 for (i = 0; i < mbx.rss_cfg.tbl_len; i++) in nicvf_config_rss() 350 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; in nicvf_config_rss() 354 ind_tbl_len -= mbx.rss_cfg.tbl_len; in nicvf_config_rss()
|
D | nic.h | 594 struct rss_cfg_msg rss_cfg; member
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/ ! |
D | hclgevf_main.c | 540 struct hclge_comm_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_hash_key() local 563 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key() 567 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key() 578 struct hclge_comm_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss() local 582 hclge_comm_get_rss_hash_info(rss_cfg, key, hfunc); in hclgevf_get_rss() 590 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss() 595 hclge_comm_get_rss_indir_tbl(rss_cfg, indir, in hclgevf_get_rss() 605 struct hclge_comm_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss() local 609 ret = hclge_comm_set_rss_hash_key(rss_cfg, &hdev->hw.hw, key, in hclgevf_set_rss() 617 rss_cfg->rss_indirection_tbl[i] = indir[i]; in hclgevf_set_rss() [all …]
|
D | hclgevf_main.h | 214 struct hclge_comm_rss_cfg rss_cfg; member
|
/linux-6.1.9/drivers/net/ethernet/intel/ice/ ! |
D | ice_flow.c | 2018 struct ice_rss_cfg *r, *rss_cfg; in ice_add_rss_list() local 2027 rss_cfg = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*rss_cfg), in ice_add_rss_list() 2029 if (!rss_cfg) in ice_add_rss_list() 2032 rss_cfg->hashed_flds = prof->segs[prof->segs_cnt - 1].match; in ice_add_rss_list() 2033 rss_cfg->packet_hdr = prof->segs[prof->segs_cnt - 1].hdrs; in ice_add_rss_list() 2034 set_bit(vsi_handle, rss_cfg->vsis); in ice_add_rss_list() 2036 list_add_tail(&rss_cfg->l_entry, &hw->rss_list_head); in ice_add_rss_list()
|
D | ice_virtchnl.c | 697 ice_vc_parse_rss_cfg(struct ice_hw *hw, struct virtchnl_rss_cfg *rss_cfg, in ice_vc_parse_rss_cfg() argument 709 for (i = 0; i < rss_cfg->proto_hdrs.count; i++) { in ice_vc_parse_rss_cfg() 711 &rss_cfg->proto_hdrs.proto_hdr[i]; in ice_vc_parse_rss_cfg() 769 struct virtchnl_rss_cfg *rss_cfg = (struct virtchnl_rss_cfg *)msg; in ice_vc_handle_rss_cfg() local 794 if (rss_cfg->proto_hdrs.count > VIRTCHNL_MAX_NUM_PROTO_HDRS || in ice_vc_handle_rss_cfg() 795 rss_cfg->rss_algorithm < VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC || in ice_vc_handle_rss_cfg() 796 rss_cfg->rss_algorithm > VIRTCHNL_RSS_ALG_XOR_SYMMETRIC) { in ice_vc_handle_rss_cfg() 809 if (!ice_vc_validate_pattern(vf, &rss_cfg->proto_hdrs)) { in ice_vc_handle_rss_cfg() 814 if (rss_cfg->rss_algorithm == VIRTCHNL_RSS_ALG_R_ASYMMETRIC) { in ice_vc_handle_rss_cfg() 858 if (!ice_vc_parse_rss_cfg(hw, rss_cfg, &addl_hdrs, in ice_vc_handle_rss_cfg()
|
/linux-6.1.9/drivers/net/ethernet/fungible/funeth/ ! |
D | funeth_main.c | 211 memcpy(fp->rss_cfg, key, FUN_ETH_RSS_MAX_KEY_SIZE); in fun_config_rss() 212 indir_tab = fp->rss_cfg + FUN_ETH_RSS_MAX_KEY_SIZE; in fun_config_rss() 804 if (fp->rss_cfg) { in fun_up() 1381 if (!fp->rss_cfg) in fun_reset_rss_indir() 1404 if (!fp->rss_cfg) in fun_rss_set_qnum() 1444 fp->rss_cfg = dma_alloc_coherent(&fp->pdev->dev, size, in fun_init_rss() 1446 if (!fp->rss_cfg) in fun_init_rss() 1457 if (fp->rss_cfg) { in fun_free_rss() 1460 fp->rss_cfg, fp->rss_dma_addr); in fun_free_rss() 1461 fp->rss_cfg = NULL; in fun_free_rss()
|
D | funeth.h | 141 void *rss_cfg; member
|
D | funeth_ethtool.c | 985 if (!fp->rss_cfg) in fun_get_rxfh() 1010 if (!fp->rss_cfg) in fun_set_rxfh()
|
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/ ! |
D | hclge_mbx.c | 751 struct hclge_comm_rss_cfg *rss_cfg; in hclge_get_rss_key() local 755 rss_cfg = &hdev->rss_cfg; in hclge_get_rss_key() 761 sizeof(rss_cfg->rss_hash_key)) { in hclge_get_rss_key() 769 &rss_cfg->rss_hash_key[index * HCLGE_RSS_MBX_RESP_LEN], in hclge_get_rss_key()
|
D | hclge_dcb.c | 206 hclge_comm_rss_indir_init_cfg(hdev->ae_dev, &hdev->rss_cfg); in hclge_map_update()
|
D | hclge_main.c | 4829 struct hclge_comm_rss_cfg *rss_cfg = &vport->back->rss_cfg; in hclge_get_rss() local 4831 hclge_comm_get_rss_hash_info(rss_cfg, key, hfunc); in hclge_get_rss() 4833 hclge_comm_get_rss_indir_tbl(rss_cfg, indir, in hclge_get_rss() 4845 struct hclge_comm_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclge_set_rss() local 4848 ret = hclge_comm_set_rss_hash_key(rss_cfg, &hdev->hw.hw, key, hfunc); in hclge_set_rss() 4856 rss_cfg->rss_indirection_tbl[i] = indir[i]; in hclge_set_rss() 4860 rss_cfg->rss_indirection_tbl); in hclge_set_rss() 4871 &hdev->rss_cfg, nfc); in hclge_set_rss_tuple() 4890 ret = hclge_comm_get_rss_tuple(&vport->back->rss_cfg, nfc->flow_type, in hclge_get_rss_tuple() 4954 u16 *rss_indir = hdev->rss_cfg.rss_indirection_tbl; in hclge_rss_init_hw() [all …]
|
D | hclge_main.h | 966 struct hclge_comm_rss_cfg rss_cfg; member
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/ ! |
D | nfp_net_ethtool.c | 1115 if (nn->rss_cfg & nfp_rss_flag) in nfp_net_get_rss_hash_opts() 1140 u32 new_rss_cfg = nn->rss_cfg; in nfp_net_set_rss_hash_opt() 1175 if (new_rss_cfg == nn->rss_cfg) in nfp_net_set_rss_hash_opt() 1183 nn->rss_cfg = new_rss_cfg; in nfp_net_set_rss_hash_opt() 1185 nn_dbg(nn, "Changed RSS config to 0x%x\n", nn->rss_cfg); in nfp_net_set_rss_hash_opt()
|
D | nfp_net.h | 623 u32 rss_cfg; member
|
/linux-6.1.9/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()
|