Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c208 struct ifla_vf_info *ivi) in nfp_app_get_vf_config() argument
230 memset(ivi, 0, sizeof(*ivi)); in nfp_app_get_vf_config()
231 ivi->vf = vf; in nfp_app_get_vf_config()
233 put_unaligned_be32(mac_hi, &ivi->mac[0]); in nfp_app_get_vf_config()
234 put_unaligned_be16(mac_lo, &ivi->mac[4]); in nfp_app_get_vf_config()
236 ivi->vlan = FIELD_GET(NFP_NET_VF_CFG_VLAN_VID, vlan_tci); in nfp_app_get_vf_config()
237 ivi->qos = FIELD_GET(NFP_NET_VF_CFG_VLAN_QOS, vlan_tci); in nfp_app_get_vf_config()
239 ivi->spoofchk = FIELD_GET(NFP_NET_VF_CFG_CTRL_SPOOF, flags); in nfp_app_get_vf_config()
240 ivi->trusted = FIELD_GET(NFP_NET_VF_CFG_CTRL_TRUST, flags); in nfp_app_get_vf_config()
241 ivi->linkstate = FIELD_GET(NFP_NET_VF_CFG_CTRL_LINK_STATE, flags); in nfp_app_get_vf_config()
Dnfp_net_sriov.h58 struct ifla_vf_info *ivi);
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dnetdev.c162 nsim_get_vf_config(struct net_device *dev, int vf, struct ifla_vf_info *ivi) in nsim_get_vf_config() argument
170 ivi->vf = vf; in nsim_get_vf_config()
171 ivi->linkstate = nsim_bus_dev->vfconfigs[vf].link_state; in nsim_get_vf_config()
172 ivi->min_tx_rate = nsim_bus_dev->vfconfigs[vf].min_tx_rate; in nsim_get_vf_config()
173 ivi->max_tx_rate = nsim_bus_dev->vfconfigs[vf].max_tx_rate; in nsim_get_vf_config()
174 ivi->vlan = nsim_bus_dev->vfconfigs[vf].vlan; in nsim_get_vf_config()
175 ivi->vlan_proto = nsim_bus_dev->vfconfigs[vf].vlan_proto; in nsim_get_vf_config()
176 ivi->qos = nsim_bus_dev->vfconfigs[vf].qos; in nsim_get_vf_config()
177 memcpy(&ivi->mac, nsim_bus_dev->vfconfigs[vf].vf_mac, ETH_ALEN); in nsim_get_vf_config()
178 ivi->spoofchk = nsim_bus_dev->vfconfigs[vf].spoofchk_enabled; in nsim_get_vf_config()
[all …]
/kernel/linux/linux-5.10/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.h20 struct ifla_vf_info *ivi);
Dsiena_sriov.c1656 struct ifla_vf_info *ivi) in efx_siena_sriov_get_vf_config() argument
1666 ivi->vf = vf_i; in efx_siena_sriov_get_vf_config()
1667 ether_addr_copy(ivi->mac, vf->addr.mac_addr); in efx_siena_sriov_get_vf_config()
1668 ivi->max_tx_rate = 0; in efx_siena_sriov_get_vf_config()
1669 ivi->min_tx_rate = 0; in efx_siena_sriov_get_vf_config()
1671 ivi->vlan = tci & VLAN_VID_MASK; in efx_siena_sriov_get_vf_config()
1672 ivi->qos = (tci >> VLAN_PRIO_SHIFT) & 0x7; in efx_siena_sriov_get_vf_config()
1673 ivi->spoofchk = vf->tx_filter_mode == VF_TX_FILTER_ON; in efx_siena_sriov_get_vf_config()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c653 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c171 struct ifla_vf_info *ivi) in bnxt_get_vf_config() argument
181 ivi->vf = vf_id; in bnxt_get_vf_config()
185 memcpy(&ivi->mac, vf->mac_addr, ETH_ALEN); in bnxt_get_vf_config()
187 memcpy(&ivi->mac, vf->vf_mac_addr, ETH_ALEN); in bnxt_get_vf_config()
188 ivi->max_tx_rate = vf->max_tx_rate; in bnxt_get_vf_config()
189 ivi->min_tx_rate = vf->min_tx_rate; in bnxt_get_vf_config()
190 ivi->vlan = vf->vlan; in bnxt_get_vf_config()
192 ivi->qos = vf->vlan >> VLAN_PRIO_SHIFT; in bnxt_get_vf_config()
194 ivi->qos = 0; in bnxt_get_vf_config()
195 ivi->spoofchk = !!(vf->flags & BNXT_VF_SPOOFCHK); in bnxt_get_vf_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_sriov.c554 struct ifla_vf_info *ivi) in hinic_get_vf_config() argument
560 ivi->vf = HW_VF_ID_TO_OS(vf_id); in hinic_get_vf_config()
561 memcpy(ivi->mac, vfinfo->vf_mac_addr, ETH_ALEN); in hinic_get_vf_config()
562 ivi->vlan = vfinfo->pf_vlan; in hinic_get_vf_config()
563 ivi->qos = vfinfo->pf_qos; in hinic_get_vf_config()
564 ivi->spoofchk = vfinfo->spoofchk; in hinic_get_vf_config()
565 ivi->trusted = vfinfo->trust; in hinic_get_vf_config()
566 ivi->max_tx_rate = vfinfo->max_rate; in hinic_get_vf_config()
567 ivi->min_tx_rate = vfinfo->min_rate; in hinic_get_vf_config()
570 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in hinic_get_vf_config()
[all …]
Dhinic_sriov.h85 int vf, struct ifla_vf_info *ivi);
/kernel/linux/linux-5.10/include/linux/qed/
Dqed_iov_if.h21 struct ifla_vf_info *ivi);
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_virtchnl_pf.h112 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi);
185 struct ifla_vf_info __always_unused *ivi) in ice_get_vf_cfg() argument
Dice_virtchnl_pf.c3824 ice_get_vf_cfg(struct net_device *netdev, int vf_id, struct ifla_vf_info *ivi) in ice_get_vf_cfg() argument
3837 ivi->vf = vf_id; in ice_get_vf_cfg()
3838 ether_addr_copy(ivi->mac, vf->dflt_lan_addr.addr); in ice_get_vf_cfg()
3841 ivi->vlan = vf->port_vlan_info & VLAN_VID_MASK; in ice_get_vf_cfg()
3842 ivi->qos = (vf->port_vlan_info & VLAN_PRIO_MASK) >> VLAN_PRIO_SHIFT; in ice_get_vf_cfg()
3844 ivi->trusted = vf->trusted; in ice_get_vf_cfg()
3845 ivi->spoofchk = vf->spoofchk; in ice_get_vf_cfg()
3847 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in ice_get_vf_cfg()
3849 ivi->linkstate = IFLA_VF_LINK_STATE_ENABLE; in ice_get_vf_cfg()
3851 ivi->linkstate = IFLA_VF_LINK_STATE_DISABLE; in ice_get_vf_cfg()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_sriov.c1839 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()
Dixgbe_sriov.h33 int vf, struct ifla_vf_info *ivi);
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c1994 int vf, struct ifla_vf_info *ivi) in qlcnic_sriov_get_vf_config() argument
2007 memcpy(&ivi->mac, vp->mac, ETH_ALEN); in qlcnic_sriov_get_vf_config()
2008 ivi->vlan = qlcnic_sriov_get_vf_vlan(adapter, vp, vf); in qlcnic_sriov_get_vf_config()
2009 ivi->qos = vp->qos; in qlcnic_sriov_get_vf_config()
2010 ivi->spoofchk = vp->spoofchk; in qlcnic_sriov_get_vf_config()
2012 ivi->max_tx_rate = 0; in qlcnic_sriov_get_vf_config()
2014 ivi->max_tx_rate = vp->max_tx_bw * 100; in qlcnic_sriov_get_vf_config()
2016 ivi->min_tx_rate = 0; in qlcnic_sriov_get_vf_config()
2018 ivi->min_tx_rate = vp->min_tx_bw * 100; in qlcnic_sriov_get_vf_config()
2020 ivi->vf = vf; in qlcnic_sriov_get_vf_config()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c1992 u16 vport, struct ifla_vf_info *ivi) in mlx5_eswitch_get_vport_config() argument
1999 memset(ivi, 0, sizeof(*ivi)); in mlx5_eswitch_get_vport_config()
2000 ivi->vf = vport - 1; in mlx5_eswitch_get_vport_config()
2003 ether_addr_copy(ivi->mac, evport->info.mac); in mlx5_eswitch_get_vport_config()
2004 ivi->linkstate = evport->info.link_state; in mlx5_eswitch_get_vport_config()
2005 ivi->vlan = evport->info.vlan; in mlx5_eswitch_get_vport_config()
2006 ivi->qos = evport->info.qos; in mlx5_eswitch_get_vport_config()
2007 ivi->spoofchk = evport->info.spoofchk; in mlx5_eswitch_get_vport_config()
2008 ivi->trusted = evport->info.trusted; in mlx5_eswitch_get_vport_config()
2009 ivi->min_tx_rate = evport->info.min_rate; in mlx5_eswitch_get_vport_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_virtchnl_pf.h132 int vf_id, struct ifla_vf_info *ivi);
Di40e_virtchnl_pf.c4499 int vf_id, struct ifla_vf_info *ivi) in i40e_ndo_get_vf_config() argument
4525 ivi->vf = vf_id; in i40e_ndo_get_vf_config()
4527 ether_addr_copy(ivi->mac, vf->default_lan_addr.addr); in i40e_ndo_get_vf_config()
4529 ivi->max_tx_rate = vf->tx_rate; in i40e_ndo_get_vf_config()
4530 ivi->min_tx_rate = 0; in i40e_ndo_get_vf_config()
4531 ivi->vlan = le16_to_cpu(vsi->info.pvid) & I40E_VLAN_MASK; in i40e_ndo_get_vf_config()
4532 ivi->qos = (le16_to_cpu(vsi->info.pvid) & I40E_PRIORITY_MASK) >> in i40e_ndo_get_vf_config()
4535 ivi->linkstate = IFLA_VF_LINK_STATE_AUTO; in i40e_ndo_get_vf_config()
4537 ivi->linkstate = IFLA_VF_LINK_STATE_ENABLE; in i40e_ndo_get_vf_config()
4539 ivi->linkstate = IFLA_VF_LINK_STATE_DISABLE; in i40e_ndo_get_vf_config()
[all …]
/kernel/linux/linux-5.10/net/core/
Drtnetlink.c1238 struct ifla_vf_info ivi; in rtnl_fill_vfinfo() local
1242 memset(&ivi, 0, sizeof(ivi)); in rtnl_fill_vfinfo()
1249 ivi.spoofchk = -1; in rtnl_fill_vfinfo()
1250 ivi.rss_query_en = -1; in rtnl_fill_vfinfo()
1251 ivi.trusted = -1; in rtnl_fill_vfinfo()
1255 ivi.linkstate = 0; in rtnl_fill_vfinfo()
1257 ivi.vlan_proto = htons(ETH_P_8021Q); in rtnl_fill_vfinfo()
1258 if (dev->netdev_ops->ndo_get_vf_config(dev, vfs_num, &ivi)) in rtnl_fill_vfinfo()
1275 port_guid.vf = ivi.vf; in rtnl_fill_vfinfo()
1277 memcpy(vf_mac.mac, ivi.mac, sizeof(ivi.mac)); in rtnl_fill_vfinfo()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sriov.c2613 struct ifla_vf_info *ivi) in bnx2x_get_vf_config() argument
2634 ivi->vf = vfidx; in bnx2x_get_vf_config()
2635 ivi->qos = 0; in bnx2x_get_vf_config()
2636 ivi->max_tx_rate = 10000; /* always 10G. TBA take from link struct */ in bnx2x_get_vf_config()
2637 ivi->min_tx_rate = 0; in bnx2x_get_vf_config()
2638 ivi->spoofchk = vf->spoofchk ? 1 : 0; in bnx2x_get_vf_config()
2639 ivi->linkstate = vf->link_cfg; in bnx2x_get_vf_config()
2643 mac_obj->get_n_elements(bp, mac_obj, 1, (u8 *)&ivi->mac, in bnx2x_get_vf_config()
2646 (u8 *)&ivi->vlan, 0, in bnx2x_get_vf_config()
2654 memcpy(&ivi->mac, bulletin->mac, ETH_ALEN); in bnx2x_get_vf_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/ipvlan/
Dipvlan_main.c979 struct in_validator_info *ivi = (struct in_validator_info *)ptr; in ipvlan_addr4_validator_event() local
980 struct net_device *dev = (struct net_device *)ivi->ivi_dev->dev; in ipvlan_addr4_validator_event()
988 if (ipvlan_addr_busy(ipvlan->port, &ivi->ivi_addr, false)) { in ipvlan_addr4_validator_event()
989 NL_SET_ERR_MSG(ivi->extack, in ipvlan_addr4_validator_event()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Dlio_main.c2987 struct ifla_vf_info *ivi) in liquidio_get_vf_config() argument
2996 memset(ivi, 0, sizeof(struct ifla_vf_info)); in liquidio_get_vf_config()
2998 ivi->vf = vfidx; in liquidio_get_vf_config()
3000 ether_addr_copy(&ivi->mac[0], macaddr); in liquidio_get_vf_config()
3001 ivi->vlan = oct->sriov_info.vf_vlantci[vfidx] & VLAN_VID_MASK; in liquidio_get_vf_config()
3002 ivi->qos = oct->sriov_info.vf_vlantci[vfidx] >> VLAN_PRIO_SHIFT; in liquidio_get_vf_config()
3005 ivi->trusted = true; in liquidio_get_vf_config()
3007 ivi->trusted = false; in liquidio_get_vf_config()
3008 ivi->linkstate = oct->sriov_info.vf_linkstate[vfidx]; in liquidio_get_vf_config()
3009 ivi->spoofchk = oct->sriov_info.vf_spoofchk[vfidx]; in liquidio_get_vf_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.c4667 int vf_id, struct ifla_vf_info *ivi) in qed_get_vf_config() argument
4692 ivi->vf = vf_id; in qed_get_vf_config()
4695 ether_addr_copy(ivi->mac, vf_info->forced_mac); in qed_get_vf_config()
4697 ether_addr_copy(ivi->mac, vf_info->mac); in qed_get_vf_config()
4699 ivi->vlan = vf_info->forced_vlan; in qed_get_vf_config()
4700 ivi->spoofchk = qed_iov_spoofchk_get(hwfn, vf_id); in qed_get_vf_config()
4701 ivi->linkstate = vf_info->link_state; in qed_get_vf_config()
4703 ivi->max_tx_rate = tx_rate ? tx_rate : link.speed; in qed_get_vf_config()
4704 ivi->min_tx_rate = qed_iov_get_vf_min_rate(hwfn, vf_id); in qed_get_vf_config()
4705 ivi->trusted = vf_info->is_trusted_request; in qed_get_vf_config()
/kernel/linux/linux-5.10/net/ipv4/
Ddevinet.c478 struct in_validator_info ivi; in __inet_insert_ifa() local
526 ivi.ivi_addr = ifa->ifa_address; in __inet_insert_ifa()
527 ivi.ivi_dev = ifa->ifa_dev; in __inet_insert_ifa()
528 ivi.extack = extack; in __inet_insert_ifa()
530 NETDEV_UP, &ivi); in __inet_insert_ifa()

12