/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 508 int vf_idx, struct ifla_vf_info *ivi) in fm10k_ndo_get_vf_config() argument 520 ivi->vf = vf_idx; in fm10k_ndo_get_vf_config() 521 ivi->max_tx_rate = vf_info->rate; in fm10k_ndo_get_vf_config() 522 ivi->min_tx_rate = 0; in fm10k_ndo_get_vf_config() 523 ether_addr_copy(ivi->mac, vf_info->mac); in fm10k_ndo_get_vf_config() 524 ivi->vlan = vf_info->pf_vid; in fm10k_ndo_get_vf_config() 525 ivi->qos = 0; in fm10k_ndo_get_vf_config()
|
D | fm10k.h | 519 int vf_idx, struct ifla_vf_info *ivi);
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 81 struct ifla_vf_info *ivi) in bnxt_get_vf_config() argument 91 ivi->vf = vf_id; in bnxt_get_vf_config() 94 memcpy(&ivi->mac, vf->mac_addr, ETH_ALEN); in bnxt_get_vf_config() 95 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config() 96 ivi->min_tx_rate = vf->min_tx_rate; in bnxt_get_vf_config() 97 ivi->vlan = vf->vlan; in bnxt_get_vf_config() 98 ivi->qos = vf->flags & BNXT_VF_QOS; in bnxt_get_vf_config() 99 ivi->spoofchk = vf->flags & BNXT_VF_SPOOFCHK; in bnxt_get_vf_config() 101 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in bnxt_get_vf_config() 103 ivi->linkstate = IFLA_VF_LINK_STATE_ENABLE; in bnxt_get_vf_config() [all …]
|
/drivers/net/ethernet/sfc/ |
D | sriov.c | 52 struct ifla_vf_info *ivi) in efx_sriov_get_vf_config() argument 57 return efx->type->sriov_get_vf_config(efx, vf_i, ivi); in efx_sriov_get_vf_config()
|
D | sriov.h | 23 struct ifla_vf_info *ivi);
|
D | siena_sriov.c | 1658 struct ifla_vf_info *ivi) in efx_siena_sriov_get_vf_config() argument 1668 ivi->vf = vf_i; in efx_siena_sriov_get_vf_config() 1669 ether_addr_copy(ivi->mac, vf->addr.mac_addr); in efx_siena_sriov_get_vf_config() 1670 ivi->max_tx_rate = 0; in efx_siena_sriov_get_vf_config() 1671 ivi->min_tx_rate = 0; in efx_siena_sriov_get_vf_config() 1673 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config() 1674 ivi->qos = (tci >> VLAN_PRIO_SHIFT) & 0x7; in efx_siena_sriov_get_vf_config() 1675 ivi->spoofchk = vf->tx_filter_mode == VF_TX_FILTER_ON; in efx_siena_sriov_get_vf_config()
|
D | net_driver.h | 1341 struct ifla_vf_info *ivi);
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 1515 int vf, struct ifla_vf_info *ivi) in ixgbe_ndo_get_vf_config() argument 1520 ivi->vf = vf; in ixgbe_ndo_get_vf_config() 1521 memcpy(&ivi->mac, adapter->vfinfo[vf].vf_mac_addresses, ETH_ALEN); in ixgbe_ndo_get_vf_config() 1522 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config() 1523 ivi->min_tx_rate = 0; in ixgbe_ndo_get_vf_config() 1524 ivi->vlan = adapter->vfinfo[vf].pf_vlan; in ixgbe_ndo_get_vf_config() 1525 ivi->qos = adapter->vfinfo[vf].pf_qos; in ixgbe_ndo_get_vf_config() 1526 ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled; in ixgbe_ndo_get_vf_config() 1527 ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled; in ixgbe_ndo_get_vf_config() 1528 ivi->trusted = adapter->vfinfo[vf].trusted; in ixgbe_ndo_get_vf_config()
|
D | ixgbe_sriov.h | 54 int vf, struct ifla_vf_info *ivi);
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 2345 int vf_id, struct ifla_vf_info *ivi) in i40e_ndo_get_vf_config() argument 2369 ivi->vf = vf_id; in i40e_ndo_get_vf_config() 2371 ether_addr_copy(ivi->mac, vf->default_lan_addr.addr); in i40e_ndo_get_vf_config() 2373 ivi->max_tx_rate = vf->tx_rate; in i40e_ndo_get_vf_config() 2374 ivi->min_tx_rate = 0; in i40e_ndo_get_vf_config() 2375 ivi->vlan = le16_to_cpu(vsi->info.pvid) & I40E_VLAN_MASK; in i40e_ndo_get_vf_config() 2376 ivi->qos = (le16_to_cpu(vsi->info.pvid) & I40E_PRIORITY_MASK) >> in i40e_ndo_get_vf_config() 2379 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in i40e_ndo_get_vf_config() 2381 ivi->linkstate = IFLA_VF_LINK_STATE_ENABLE; in i40e_ndo_get_vf_config() 2383 ivi->linkstate = IFLA_VF_LINK_STATE_DISABLE; in i40e_ndo_get_vf_config() [all …]
|
D | i40e_virtchnl_pf.h | 127 int vf_id, struct ifla_vf_info *ivi);
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 1996 int vf, struct ifla_vf_info *ivi) in qlcnic_sriov_get_vf_config() argument 2009 memcpy(&ivi->mac, vp->mac, ETH_ALEN); in qlcnic_sriov_get_vf_config() 2010 ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf); in qlcnic_sriov_get_vf_config() 2011 ivi->qos = vp->qos; in qlcnic_sriov_get_vf_config() 2012 ivi->spoofchk = vp->spoofchk; in qlcnic_sriov_get_vf_config() 2014 ivi->max_tx_rate = 0; in qlcnic_sriov_get_vf_config() 2016 ivi->max_tx_rate = vp->max_tx_bw * 100; in qlcnic_sriov_get_vf_config() 2018 ivi->min_tx_rate = 0; in qlcnic_sriov_get_vf_config() 2020 ivi->min_tx_rate = vp->min_tx_bw * 100; in qlcnic_sriov_get_vf_config() 2022 ivi->vf = vf; in qlcnic_sriov_get_vf_config()
|
/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 2607 struct ifla_vf_info *ivi) in bnx2x_get_vf_config() argument 2628 ivi->vf = vfidx; in bnx2x_get_vf_config() 2629 ivi->qos = 0; in bnx2x_get_vf_config() 2630 ivi->max_tx_rate = 10000; /* always 10G. TBA take from link struct */ in bnx2x_get_vf_config() 2631 ivi->min_tx_rate = 0; in bnx2x_get_vf_config() 2632 ivi->spoofchk = 1; /*always enabled */ in bnx2x_get_vf_config() 2636 mac_obj->get_n_elements(bp, mac_obj, 1, (u8 *)&ivi->mac, in bnx2x_get_vf_config() 2639 (u8 *)&ivi->vlan, 0, in bnx2x_get_vf_config() 2647 memcpy(&ivi->mac, bulletin->mac, ETH_ALEN); in bnx2x_get_vf_config() 2650 eth_zero_addr(ivi->mac); in bnx2x_get_vf_config() [all …]
|
D | bnx2x_cmn.h | 491 struct ifla_vf_info *ivi);
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 176 struct ifla_vf_info *ivi); 7875 int vf, struct ifla_vf_info *ivi) in igb_ndo_get_vf_config() argument 7880 ivi->vf = vf; in igb_ndo_get_vf_config() 7881 memcpy(&ivi->mac, adapter->vf_data[vf].vf_mac_addresses, ETH_ALEN); in igb_ndo_get_vf_config() 7882 ivi->max_tx_rate = adapter->vf_data[vf].tx_rate; in igb_ndo_get_vf_config() 7883 ivi->min_tx_rate = 0; in igb_ndo_get_vf_config() 7884 ivi->vlan = adapter->vf_data[vf].pf_vlan; in igb_ndo_get_vf_config() 7885 ivi->qos = adapter->vf_data[vf].pf_qos; in igb_ndo_get_vf_config() 7886 ivi->spoofchk = adapter->vf_data[vf].spoofchk_enabled; in igb_ndo_get_vf_config()
|