Home
last modified time | relevance | path

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

/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c656 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 …]
Dhclgevf_main.h276 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.c544 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/
Diavf_adv_rss.c102 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()
Diavf_virtchnl.c1363 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 …]
Diavf_adv_rss.h88 iavf_fill_adv_rss_cfg_msg(struct virtchnl_rss_cfg *rss_cfg,
/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c563 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()
Dnicvf_main.c340 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()
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.c1972 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()
Dice_virtchnl_pf.c2505 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/
Dnfp_net_ethtool.c902 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()
Dnfp_net.h626 u32 rss_cfg; member
Dnfp_net_common.c2855 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/
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()