Home
last modified time | relevance | path

Searched refs:vft_res (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/emulex/benet/
Dbe_main.c4029 struct be_resources *vft_res) in be_calculate_vf_res() argument
4064 vft_res->flags |= BIT(IF_CAPS_FLAGS_VALID_SHIFT); in be_calculate_vf_res()
4078 vft_res->flags |= BIT(IF_CAPS_FLAGS_VALID_SHIFT); in be_calculate_vf_res()
4082 vft_res->vf_if_cap_flags = vf_if_cap_flags; in be_calculate_vf_res()
4083 vft_res->max_rx_qs = num_vf_qs; in be_calculate_vf_res()
4084 vft_res->max_rss_qs = num_vf_qs; in be_calculate_vf_res()
4085 vft_res->max_tx_qs = res.max_tx_qs / (num_vfs + 1); in be_calculate_vf_res()
4086 vft_res->max_cq_count = res.max_cq_count / (num_vfs + 1); in be_calculate_vf_res()
4092 vft_res->max_uc_mac = res.max_uc_mac / (num_vfs + 1); in be_calculate_vf_res()
4095 vft_res->max_vlans = res.max_vlans / (num_vfs + 1); in be_calculate_vf_res()
[all …]
Dbe_cmds.c4636 struct be_resources *vft_res) in be_cmd_set_sriov_config() argument
4656 desc.nic_vft.flags = vft_res->flags | BIT(VFT_SHIFT) | in be_cmd_set_sriov_config()
4660 desc.nic_vft.cap_flags = cpu_to_le32(vft_res->vf_if_cap_flags); in be_cmd_set_sriov_config()
4661 desc.nic_vft.rq_count = cpu_to_le16(vft_res->max_rx_qs); in be_cmd_set_sriov_config()
4662 desc.nic_vft.txq_count = cpu_to_le16(vft_res->max_tx_qs); in be_cmd_set_sriov_config()
4663 desc.nic_vft.rssq_count = cpu_to_le16(vft_res->max_rss_qs); in be_cmd_set_sriov_config()
4664 desc.nic_vft.cq_count = cpu_to_le16(vft_res->max_cq_count); in be_cmd_set_sriov_config()
4666 if (vft_res->max_uc_mac) in be_cmd_set_sriov_config()
4668 cpu_to_le16(vft_res->max_uc_mac); in be_cmd_set_sriov_config()
4669 if (vft_res->max_vlans) in be_cmd_set_sriov_config()
[all …]
Dbe_cmds.h2514 struct be_resources *vft_res);