Home
last modified time | relevance | path

Searched refs:ivi (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c508 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()
Dfm10k.h519 int vf_idx, struct ifla_vf_info *ivi);
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c81 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/
Dsriov.c52 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()
Dsriov.h23 struct ifla_vf_info *ivi);
Dsiena_sriov.c1658 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()
Dnet_driver.h1341 struct ifla_vf_info *ivi);
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c1515 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()
Dixgbe_sriov.h54 int vf, struct ifla_vf_info *ivi);
/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.c2345 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 …]
Di40e_virtchnl_pf.h127 int vf_id, struct ifla_vf_info *ivi);
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c1996 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/
Dbnx2x_sriov.c2607 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 …]
Dbnx2x_cmn.h491 struct ifla_vf_info *ivi);
/drivers/net/ethernet/intel/igb/
Digb_main.c176 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()