/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 656 const u8 *indir = hdev->rss_cfg.rss_indirection_tbl; in hclgevf_set_rss_indir_table() 739 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_hash_key() local 762 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key() 766 memcpy(&rss_cfg->rss_hash_key[hash_key_index], in hclgevf_get_rss_hash_key() 777 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss() local 783 switch (rss_cfg->hash_algo) { in hclgevf_get_rss() 798 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss() 807 memcpy(key, rss_cfg->rss_hash_key, in hclgevf_get_rss() 814 indir[i] = rss_cfg->rss_indirection_tbl[i]; in hclgevf_get_rss() 830 *hash_algo = hdev->rss_cfg.hash_algo; in hclgevf_parse_rss_hfunc() [all …]
|
D | hclgevf_main.h | 276 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 | 544 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts() local 557 rss_cfg |= NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts() 559 rss_cfg &= ~NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts() 569 rss_cfg &= ~NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts() 572 rss_cfg |= NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts() 582 rss_cfg &= ~NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts() 585 rss_cfg |= NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts() 595 rss_cfg &= ~NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts() 598 rss_cfg |= NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts() 608 rss_cfg &= ~(NIX_FLOW_KEY_TYPE_ESP | in otx2_set_rss_hash_opts() [all …]
|
/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_virtchnl.c | 1363 struct virtchnl_rss_cfg *rss_cfg; in iavf_add_adv_rss_cfg() local 1376 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_add_adv_rss_cfg() 1377 if (!rss_cfg) in iavf_add_adv_rss_cfg() 1385 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_add_adv_rss_cfg() 1397 (u8 *)rss_cfg, len); in iavf_add_adv_rss_cfg() 1402 kfree(rss_cfg); in iavf_add_adv_rss_cfg() 1414 struct virtchnl_rss_cfg *rss_cfg; in iavf_del_adv_rss_cfg() local 1427 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_del_adv_rss_cfg() 1428 if (!rss_cfg) in iavf_del_adv_rss_cfg() 1436 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_del_adv_rss_cfg() [all …]
|
D | iavf_adv_rss.h | 88 iavf_fill_adv_rss_cfg_msg(struct virtchnl_rss_cfg *rss_cfg,
|
/drivers/net/ethernet/cavium/thunder/ |
D | nicvf_ethtool.c | 563 u64 rss_cfg = nicvf_reg_read(nic, NIC_VNIC_RSS_CFG); in nicvf_set_rss_hash_opts() local 580 rss_cfg &= ~(1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts() 583 rss_cfg |= (1ULL << RSS_HASH_TCP); in nicvf_set_rss_hash_opts() 593 rss_cfg &= ~(1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts() 596 rss_cfg |= (1ULL << RSS_HASH_UDP); in nicvf_set_rss_hash_opts() 606 rss_cfg &= ~(1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts() 609 rss_cfg |= (1ULL << RSS_HASH_L4ETC); in nicvf_set_rss_hash_opts() 617 rss_cfg = RSS_HASH_IP; in nicvf_set_rss_hash_opts() 623 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
|
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 | 1972 struct ice_rss_cfg *r, *rss_cfg; in ice_add_rss_list() local 1981 rss_cfg = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*rss_cfg), in ice_add_rss_list() 1983 if (!rss_cfg) in ice_add_rss_list() 1986 rss_cfg->hashed_flds = prof->segs[prof->segs_cnt - 1].match; in ice_add_rss_list() 1987 rss_cfg->packet_hdr = prof->segs[prof->segs_cnt - 1].hdrs; in ice_add_rss_list() 1988 set_bit(vsi_handle, rss_cfg->vsis); in ice_add_rss_list() 1990 list_add_tail(&rss_cfg->l_entry, &hw->rss_list_head); in ice_add_rss_list()
|
D | ice_virtchnl_pf.c | 2505 ice_vc_parse_rss_cfg(struct ice_hw *hw, struct virtchnl_rss_cfg *rss_cfg, in ice_vc_parse_rss_cfg() argument 2525 for (i = 0; i < rss_cfg->proto_hdrs.count; i++) { in ice_vc_parse_rss_cfg() 2527 &rss_cfg->proto_hdrs.proto_hdr[i]; in ice_vc_parse_rss_cfg() 2585 struct virtchnl_rss_cfg *rss_cfg = (struct virtchnl_rss_cfg *)msg; in ice_vc_handle_rss_cfg() local 2610 if (rss_cfg->proto_hdrs.count > VIRTCHNL_MAX_NUM_PROTO_HDRS || in ice_vc_handle_rss_cfg() 2611 rss_cfg->rss_algorithm < VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC || in ice_vc_handle_rss_cfg() 2612 rss_cfg->rss_algorithm > VIRTCHNL_RSS_ALG_XOR_SYMMETRIC) { in ice_vc_handle_rss_cfg() 2625 if (rss_cfg->rss_algorithm == VIRTCHNL_RSS_ALG_R_ASYMMETRIC) { in ice_vc_handle_rss_cfg() 2670 if (!ice_vc_parse_rss_cfg(hw, rss_cfg, &addl_hdrs, in ice_vc_handle_rss_cfg()
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 902 if (nn->rss_cfg & nfp_rss_flag) in nfp_net_get_rss_hash_opts() 927 u32 new_rss_cfg = nn->rss_cfg; in nfp_net_set_rss_hash_opt() 962 if (new_rss_cfg == nn->rss_cfg) in nfp_net_set_rss_hash_opt() 970 nn->rss_cfg = new_rss_cfg; in nfp_net_set_rss_hash_opt() 972 nn_dbg(nn, "Changed RSS config to 0x%x\n", nn->rss_cfg); in nfp_net_set_rss_hash_opt()
|
D | nfp_net.h | 626 u32 rss_cfg; member
|
D | nfp_net_common.c | 2855 nn_writel(nn, NFP_NET_CFG_RSS_CTRL, nn->rss_cfg); in nfp_net_set_config_and_enable() 3991 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()
|