Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
A Dhclgevf_main.c739 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_rss_hash_key() local
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()
841 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss() local
909 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_init_rss_tuple_cmd() local
962 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_set_rss_tuple() local
1103 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_get_tc_size() local
1105 return rss_cfg->rss_size; in hclgevf_get_tc_size()
2599 struct hclgevf_rss_cfg *rss_cfg = &hdev->rss_cfg; in hclgevf_rss_init_cfg() local
2635 rss_cfg->rss_indirection_tbl[i] = i % rss_cfg->rss_size; in hclgevf_rss_init_cfg()
[all …]
A Dhclgevf_main.h276 struct hclgevf_rss_cfg rss_cfg; member
/linux/drivers/net/ethernet/huawei/hinic/
A Dhinic_port.c660 u16 out_size = sizeof(rss_cfg); 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()
672 err, rss_cfg.status, out_size); in hinic_rss_get_indir_tbl()
908 u16 out_size = sizeof(rss_cfg); in hinic_rss_cfg()
912 rss_cfg.rss_en = rss_en; in hinic_rss_cfg()
913 rss_cfg.template_id = template_id; in hinic_rss_cfg()
914 rss_cfg.rq_priority_number = 0; in hinic_rss_cfg()
917 &rss_cfg, sizeof(rss_cfg), in hinic_rss_cfg()
918 &rss_cfg, &out_size); in hinic_rss_cfg()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c547 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts() local
560 rss_cfg |= NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts()
562 rss_cfg &= ~NIX_FLOW_KEY_TYPE_VLAN; in otx2_set_rss_hash_opts()
572 rss_cfg &= ~NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts()
575 rss_cfg |= NIX_FLOW_KEY_TYPE_TCP; in otx2_set_rss_hash_opts()
585 rss_cfg &= ~NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts()
588 rss_cfg |= NIX_FLOW_KEY_TYPE_UDP; in otx2_set_rss_hash_opts()
598 rss_cfg &= ~NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts()
601 rss_cfg |= NIX_FLOW_KEY_TYPE_SCTP; in otx2_set_rss_hash_opts()
613 rss_cfg |= NIX_FLOW_KEY_TYPE_VLAN | in otx2_set_rss_hash_opts()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
A 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()
A Diavf_virtchnl.c1360 struct virtchnl_rss_cfg *rss_cfg; in iavf_add_adv_rss_cfg() local
1373 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_add_adv_rss_cfg()
1374 if (!rss_cfg) in iavf_add_adv_rss_cfg()
1382 memcpy(rss_cfg, &rss->cfg_msg, len); in iavf_add_adv_rss_cfg()
1394 (u8 *)rss_cfg, len); in iavf_add_adv_rss_cfg()
1399 kfree(rss_cfg); in iavf_add_adv_rss_cfg()
1411 struct virtchnl_rss_cfg *rss_cfg; in iavf_del_adv_rss_cfg() local
1424 rss_cfg = kzalloc(len, GFP_KERNEL); in iavf_del_adv_rss_cfg()
1425 if (!rss_cfg) in iavf_del_adv_rss_cfg()
1442 (u8 *)rss_cfg, len); in iavf_del_adv_rss_cfg()
[all …]
A Diavf_adv_rss.h88 iavf_fill_adv_rss_cfg_msg(struct virtchnl_rss_cfg *rss_cfg,
/linux/drivers/net/ethernet/cavium/thunder/
A 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()
A 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()
A Dnic.h594 struct rss_cfg_msg rss_cfg; member
A Dnic_main.c1050 nic_config_rss(nic, &mbx.rss_cfg); in nic_handle_mbx_intr()
/linux/drivers/net/ethernet/intel/ice/
A 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()
A Dice_virtchnl_pf.c2574 ice_vc_parse_rss_cfg(struct ice_hw *hw, struct virtchnl_rss_cfg *rss_cfg, in ice_vc_parse_rss_cfg() argument
2594 for (i = 0; i < rss_cfg->proto_hdrs.count; i++) { in ice_vc_parse_rss_cfg()
2596 &rss_cfg->proto_hdrs.proto_hdr[i]; in ice_vc_parse_rss_cfg()
2654 struct virtchnl_rss_cfg *rss_cfg = (struct virtchnl_rss_cfg *)msg; in ice_vc_handle_rss_cfg() local
2679 if (rss_cfg->proto_hdrs.count > VIRTCHNL_MAX_NUM_PROTO_HDRS || in ice_vc_handle_rss_cfg()
2680 rss_cfg->rss_algorithm < VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC || in ice_vc_handle_rss_cfg()
2681 rss_cfg->rss_algorithm > VIRTCHNL_RSS_ALG_XOR_SYMMETRIC) { in ice_vc_handle_rss_cfg()
2694 if (rss_cfg->rss_algorithm == VIRTCHNL_RSS_ALG_R_ASYMMETRIC) { in ice_vc_handle_rss_cfg()
2739 if (!ice_vc_parse_rss_cfg(hw, rss_cfg, &addl_hdrs, in ice_vc_handle_rss_cfg()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_net_ethtool.c903 if (nn->rss_cfg & nfp_rss_flag) in nfp_net_get_rss_hash_opts()
928 u32 new_rss_cfg = nn->rss_cfg; in nfp_net_set_rss_hash_opt()
963 if (new_rss_cfg == nn->rss_cfg) in nfp_net_set_rss_hash_opt()
971 nn->rss_cfg = new_rss_cfg; in nfp_net_set_rss_hash_opt()
973 nn_dbg(nn, "Changed RSS config to 0x%x\n", nn->rss_cfg); in nfp_net_set_rss_hash_opt()
A Dnfp_net.h626 u32 rss_cfg; member
A 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()
/linux/drivers/net/ethernet/brocade/bna/
A Dbna_types.h764 struct bna_rss_config rss_cfg; member
A 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()

Completed in 98 milliseconds