/Linux-v6.1/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_sriov.c | 261 struct ifla_vf_info *ivi) in nfp_app_get_vf_config() argument 282 memset(ivi, 0, sizeof(*ivi)); in nfp_app_get_vf_config() 283 ivi->vf = vf; in nfp_app_get_vf_config() 285 put_unaligned_be32(mac_hi, &ivi->mac[0]); in nfp_app_get_vf_config() 286 put_unaligned_be16(mac_lo, &ivi->mac[4]); in nfp_app_get_vf_config() 288 ivi->vlan = FIELD_GET(NFP_NET_VF_CFG_VLAN_VID, vlan_tag); in nfp_app_get_vf_config() 289 ivi->qos = FIELD_GET(NFP_NET_VF_CFG_VLAN_QOS, vlan_tag); in nfp_app_get_vf_config() 291 ivi->vlan_proto = htons(FIELD_GET(NFP_NET_VF_CFG_VLAN_PROT, vlan_tag)); in nfp_app_get_vf_config() 292 ivi->spoofchk = FIELD_GET(NFP_NET_VF_CFG_CTRL_SPOOF, flags); in nfp_app_get_vf_config() 293 ivi->trusted = FIELD_GET(NFP_NET_VF_CFG_CTRL_TRUST, flags); in nfp_app_get_vf_config() [all …]
|
D | nfp_net_sriov.h | 69 struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/netdevsim/ |
D | netdev.c | 167 nsim_get_vf_config(struct net_device *dev, int vf, struct ifla_vf_info *ivi) in nsim_get_vf_config() argument 175 ivi->vf = vf; in nsim_get_vf_config() 176 ivi->linkstate = nsim_dev->vfconfigs[vf].link_state; in nsim_get_vf_config() 177 ivi->min_tx_rate = nsim_dev->vfconfigs[vf].min_tx_rate; in nsim_get_vf_config() 178 ivi->max_tx_rate = nsim_dev->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config() 179 ivi->vlan = nsim_dev->vfconfigs[vf].vlan; in nsim_get_vf_config() 180 ivi->vlan_proto = nsim_dev->vfconfigs[vf].vlan_proto; in nsim_get_vf_config() 181 ivi->qos = nsim_dev->vfconfigs[vf].qos; in nsim_get_vf_config() 182 memcpy(&ivi->mac, nsim_dev->vfconfigs[vf].vf_mac, ETH_ALEN); in nsim_get_vf_config() 183 ivi->spoofchk = nsim_dev->vfconfigs[vf].spoofchk_enabled; in nsim_get_vf_config() [all …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/siena/ |
D | sriov.h | 59 struct ifla_vf_info *ivi) in efx_sriov_get_vf_config() argument 64 return efx->type->sriov_get_vf_config(efx, vf_i, ivi); in efx_sriov_get_vf_config()
|
D | siena_sriov.c | 1657 struct ifla_vf_info *ivi) in efx_siena_sriov_get_vf_config() argument 1667 ivi->vf = vf_i; in efx_siena_sriov_get_vf_config() 1668 ether_addr_copy(ivi->mac, vf->addr.mac_addr); in efx_siena_sriov_get_vf_config() 1669 ivi->max_tx_rate = 0; in efx_siena_sriov_get_vf_config() 1670 ivi->min_tx_rate = 0; in efx_siena_sriov_get_vf_config() 1672 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config() 1673 ivi->qos = (tci >> VLAN_PRIO_SHIFT) & 0x7; in efx_siena_sriov_get_vf_config() 1674 ivi->spoofchk = vf->tx_filter_mode == VF_TX_FILTER_ON; in efx_siena_sriov_get_vf_config()
|
/Linux-v6.1/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 | 20 struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 653 int vf_idx, struct ifla_vf_info *ivi) in fm10k_ndo_get_vf_config() argument 665 ivi->vf = vf_idx; in fm10k_ndo_get_vf_config() 666 ivi->max_tx_rate = vf_info->rate; in fm10k_ndo_get_vf_config() 667 ivi->min_tx_rate = 0; in fm10k_ndo_get_vf_config() 668 ether_addr_copy(ivi->mac, vf_info->mac); in fm10k_ndo_get_vf_config() 669 ivi->vlan = vf_info->pf_vid; in fm10k_ndo_get_vf_config() 670 ivi->qos = 0; in fm10k_ndo_get_vf_config()
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 180 struct ifla_vf_info *ivi) in bnxt_get_vf_config() argument 190 ivi->vf = vf_id; in bnxt_get_vf_config() 194 memcpy(&ivi->mac, vf->mac_addr, ETH_ALEN); in bnxt_get_vf_config() 196 memcpy(&ivi->mac, vf->vf_mac_addr, ETH_ALEN); in bnxt_get_vf_config() 197 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config() 198 ivi->min_tx_rate = vf->min_tx_rate; in bnxt_get_vf_config() 199 ivi->vlan = vf->vlan; in bnxt_get_vf_config() 201 ivi->qos = vf->vlan >> VLAN_PRIO_SHIFT; in bnxt_get_vf_config() 203 ivi->qos = 0; in bnxt_get_vf_config() 204 ivi->spoofchk = !!(vf->flags & BNXT_VF_SPOOFCHK); in bnxt_get_vf_config() [all …]
|
/Linux-v6.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 556 struct ifla_vf_info *ivi) in hinic_get_vf_config() argument 562 ivi->vf = HW_VF_ID_TO_OS(vf_id); in hinic_get_vf_config() 563 memcpy(ivi->mac, vfinfo->vf_mac_addr, ETH_ALEN); in hinic_get_vf_config() 564 ivi->vlan = vfinfo->pf_vlan; in hinic_get_vf_config() 565 ivi->qos = vfinfo->pf_qos; in hinic_get_vf_config() 566 ivi->spoofchk = vfinfo->spoofchk; in hinic_get_vf_config() 567 ivi->trusted = vfinfo->trust; in hinic_get_vf_config() 568 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config() 569 ivi->min_tx_rate = vfinfo->min_rate; in hinic_get_vf_config() 572 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in hinic_get_vf_config() [all …]
|
D | hinic_sriov.h | 85 int vf, struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.c | 1273 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) in ice_get_vf_cfg() argument 1287 ivi->vf = vf_id; in ice_get_vf_cfg() 1288 ether_addr_copy(ivi->mac, vf->hw_lan_addr.addr); in ice_get_vf_cfg() 1291 ivi->vlan = ice_vf_get_port_vlan_id(vf); in ice_get_vf_cfg() 1292 ivi->qos = ice_vf_get_port_vlan_prio(vf); in ice_get_vf_cfg() 1294 ivi->vlan_proto = cpu_to_be16(ice_vf_get_port_vlan_tpid(vf)); in ice_get_vf_cfg() 1296 ivi->trusted = vf->trusted; in ice_get_vf_cfg() 1297 ivi->spoofchk = vf->spoofchk; in ice_get_vf_cfg() 1299 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in ice_get_vf_cfg() 1301 ivi->linkstate = IFLA_VF_LINK_STATE_ENABLE; in ice_get_vf_cfg() [all …]
|
D | ice_sriov.h | 33 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi); 104 struct ifla_vf_info __always_unused *ivi) in ice_get_vf_cfg() argument
|
/Linux-v6.1/include/linux/qed/ |
D | qed_iov_if.h | 21 struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.c | 1778 u16 vport, struct ifla_vf_info *ivi) in mlx5_eswitch_get_vport_config() argument 1785 memset(ivi, 0, sizeof(*ivi)); in mlx5_eswitch_get_vport_config() 1786 ivi->vf = vport - 1; in mlx5_eswitch_get_vport_config() 1789 ether_addr_copy(ivi->mac, evport->info.mac); in mlx5_eswitch_get_vport_config() 1790 ivi->linkstate = evport->info.link_state; in mlx5_eswitch_get_vport_config() 1791 ivi->vlan = evport->info.vlan; in mlx5_eswitch_get_vport_config() 1792 ivi->qos = evport->info.qos; in mlx5_eswitch_get_vport_config() 1793 ivi->spoofchk = evport->info.spoofchk; in mlx5_eswitch_get_vport_config() 1794 ivi->trusted = evport->info.trusted; in mlx5_eswitch_get_vport_config() 1796 ivi->min_tx_rate = evport->qos.min_rate; in mlx5_eswitch_get_vport_config() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.c | 1839 int vf, struct ifla_vf_info *ivi) in ixgbe_ndo_get_vf_config() argument 1844 ivi->vf = vf; in ixgbe_ndo_get_vf_config() 1845 memcpy(&ivi->mac, adapter->vfinfo[vf].vf_mac_addresses, ETH_ALEN); in ixgbe_ndo_get_vf_config() 1846 ivi->max_tx_rate = adapter->vfinfo[vf].tx_rate; in ixgbe_ndo_get_vf_config() 1847 ivi->min_tx_rate = 0; in ixgbe_ndo_get_vf_config() 1848 ivi->vlan = adapter->vfinfo[vf].pf_vlan; in ixgbe_ndo_get_vf_config() 1849 ivi->qos = adapter->vfinfo[vf].pf_qos; in ixgbe_ndo_get_vf_config() 1850 ivi->spoofchk = adapter->vfinfo[vf].spoofchk_enabled; in ixgbe_ndo_get_vf_config() 1851 ivi->rss_query_en = adapter->vfinfo[vf].rss_query_enabled; in ixgbe_ndo_get_vf_config() 1852 ivi->trusted = adapter->vfinfo[vf].trusted; in ixgbe_ndo_get_vf_config()
|
D | ixgbe_sriov.h | 33 int vf, struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_pf.c | 1992 int vf, struct ifla_vf_info *ivi) in qlcnic_sriov_get_vf_config() argument 2005 memcpy(&ivi->mac, vp->mac, ETH_ALEN); in qlcnic_sriov_get_vf_config() 2006 ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf); in qlcnic_sriov_get_vf_config() 2007 ivi->qos = vp->qos; in qlcnic_sriov_get_vf_config() 2008 ivi->spoofchk = vp->spoofchk; in qlcnic_sriov_get_vf_config() 2010 ivi->max_tx_rate = 0; in qlcnic_sriov_get_vf_config() 2012 ivi->max_tx_rate = vp->max_tx_bw * 100; in qlcnic_sriov_get_vf_config() 2014 ivi->min_tx_rate = 0; in qlcnic_sriov_get_vf_config() 2016 ivi->min_tx_rate = vp->min_tx_bw * 100; in qlcnic_sriov_get_vf_config() 2018 ivi->vf = vf; in qlcnic_sriov_get_vf_config()
|
/Linux-v6.1/net/core/ |
D | rtnetlink.c | 1270 struct ifla_vf_info ivi; in rtnl_fill_vfinfo() local 1274 memset(&ivi, 0, sizeof(ivi)); in rtnl_fill_vfinfo() 1281 ivi.spoofchk = -1; in rtnl_fill_vfinfo() 1282 ivi.rss_query_en = -1; in rtnl_fill_vfinfo() 1283 ivi.trusted = -1; in rtnl_fill_vfinfo() 1287 ivi.linkstate = 0; in rtnl_fill_vfinfo() 1289 ivi.vlan_proto = htons(ETH_P_8021Q); in rtnl_fill_vfinfo() 1290 if (dev->netdev_ops->ndo_get_vf_config(dev, vfs_num, &ivi)) in rtnl_fill_vfinfo() 1307 port_guid.vf = ivi.vf; in rtnl_fill_vfinfo() 1309 memcpy(vf_mac.mac, ivi.mac, sizeof(ivi.mac)); in rtnl_fill_vfinfo() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 132 int vf_id, struct ifla_vf_info *ivi);
|
/Linux-v6.1/drivers/net/ethernet/fungible/funeth/ |
D | funeth_main.c | 1305 struct ifla_vf_info *ivi) in fun_get_vf_config() argument 1316 memset(ivi, 0, sizeof(*ivi)); in fun_get_vf_config() 1317 ivi->vf = vf; in fun_get_vf_config() 1318 ether_addr_copy(ivi->mac, vi->mac); in fun_get_vf_config() 1319 ivi->vlan = vi->vlan; in fun_get_vf_config() 1320 ivi->qos = vi->qos; in fun_get_vf_config() 1321 ivi->vlan_proto = vi->vlan_proto; in fun_get_vf_config() 1322 ivi->max_tx_rate = vi->max_rate; in fun_get_vf_config() 1323 ivi->spoofchk = vi->spoofchk; in fun_get_vf_config()
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sriov.c | 2606 struct ifla_vf_info *ivi) in bnx2x_get_vf_config() argument 2627 ivi->vf = vfidx; in bnx2x_get_vf_config() 2628 ivi->qos = 0; in bnx2x_get_vf_config() 2629 ivi->max_tx_rate = 10000; /* always 10G. TBA take from link struct */ in bnx2x_get_vf_config() 2630 ivi->min_tx_rate = 0; in bnx2x_get_vf_config() 2631 ivi->spoofchk = vf->spoofchk ? 1 : 0; in bnx2x_get_vf_config() 2632 ivi->linkstate = vf->link_cfg; 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() [all …]
|
/Linux-v6.1/drivers/net/ipvlan/ |
D | ipvlan_main.c | 981 struct in_validator_info *ivi = (struct in_validator_info *)ptr; in ipvlan_addr4_validator_event() local 982 struct net_device *dev = (struct net_device *)ivi->ivi_dev->dev; in ipvlan_addr4_validator_event() 990 if (ipvlan_addr_busy(ipvlan->port, &ivi->ivi_addr, false)) { in ipvlan_addr4_validator_event() 991 NL_SET_ERR_MSG(ivi->extack, in ipvlan_addr4_validator_event()
|
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router.c | 1356 struct in_validator_info *ivi = (struct in_validator_info *)ptr; in __prestera_inetaddr_valid_cb() local 1357 struct net_device *dev = ivi->ivi_dev->dev; in __prestera_inetaddr_valid_cb() 1372 if (ipv4_is_multicast(ivi->ivi_addr)) { in __prestera_inetaddr_valid_cb() 1373 NL_SET_ERR_MSG_MOD(ivi->extack, in __prestera_inetaddr_valid_cb() 1379 err = __prestera_inetaddr_event(router->sw, dev, event, ivi->extack); in __prestera_inetaddr_valid_cb()
|
/Linux-v6.1/drivers/net/ethernet/cavium/liquidio/ |
D | lio_main.c | 2980 struct ifla_vf_info *ivi) in liquidio_get_vf_config() argument 2989 memset(ivi, 0, sizeof(struct ifla_vf_info)); in liquidio_get_vf_config() 2991 ivi->vf = vfidx; in liquidio_get_vf_config() 2993 ether_addr_copy(&ivi->mac[0], macaddr); in liquidio_get_vf_config() 2994 ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; in liquidio_get_vf_config() 2995 ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; in liquidio_get_vf_config() 2998 ivi->trusted = true; in liquidio_get_vf_config() 3000 ivi->trusted = false; in liquidio_get_vf_config() 3001 ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; in liquidio_get_vf_config() 3002 ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; in liquidio_get_vf_config() [all …]
|