/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_sriov.c | 148 int min_tx_rate, int max_tx_rate) in nfp_app_set_vf_rate() argument 159 min_tx_rate >= NFP_NET_VF_RATE_MAX) { in nfp_app_set_vf_rate() 169 FIELD_PREP(NFP_NET_VF_CFG_MIN_RATE, min_tx_rate); in nfp_app_set_vf_rate() 302 ivi->min_tx_rate = FIELD_GET(NFP_NET_VF_CFG_MIN_RATE, rate); in nfp_app_get_vf_config() 306 if (ivi->min_tx_rate == NFP_NET_VF_RATE_MAX) in nfp_app_get_vf_config() 307 ivi->min_tx_rate = 0; in nfp_app_get_vf_config()
|
H A D | nfp_net_sriov.h | 62 int nfp_app_set_vf_rate(struct net_device *netdev, int vf, int min_tx_rate,
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_sriov.c | 1421 ivi->min_tx_rate = vf->min_tx_rate; in ice_get_vf_cfg() 1610 rate += vf->min_tx_rate; in ice_calc_all_vfs_min_tx_rate() 1629 ice_min_tx_rate_oversubscribed(struct ice_vf *vf, int min_tx_rate) in ice_min_tx_rate_oversubscribed() argument 1642 all_vfs_min_tx_rate -= vf->min_tx_rate; in ice_min_tx_rate_oversubscribed() 1644 if (all_vfs_min_tx_rate + min_tx_rate > link_speed_mbps) { in ice_min_tx_rate_oversubscribed() 1646 min_tx_rate, vf->vf_id, in ice_min_tx_rate_oversubscribed() 1647 all_vfs_min_tx_rate + min_tx_rate - link_speed_mbps, in ice_min_tx_rate_oversubscribed() 1663 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, in ice_set_vf_bw() argument 1688 if (min_tx_rate && ice_is_dcb_active(pf)) { in ice_set_vf_bw() 1694 if (ice_min_tx_rate_oversubscribed(vf, min_tx_rate)) { in ice_set_vf_bw() [all …]
|
H A D | ice_sriov.h | 44 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 137 int __always_unused vf_id, int __always_unused min_tx_rate, in ice_set_vf_bw() argument
|
H A D | ice_lib.h | 97 int ice_set_min_bw_limit(struct ice_vsi *vsi, u64 min_tx_rate);
|
H A D | ice_vf_lib.h | 127 unsigned int min_tx_rate; /* Minimum Tx bandwidth limit in Mbps */ member
|
H A D | ice_vf_lib.c | 379 if (vf->min_tx_rate) { in ice_vf_rebuild_host_tx_rate_cfg() 380 err = ice_set_min_bw_limit(vsi, (u64)vf->min_tx_rate * 1000); in ice_vf_rebuild_host_tx_rate_cfg() 383 vf->min_tx_rate, vf->vf_id, err); in ice_vf_rebuild_host_tx_rate_cfg()
|
H A D | ice_main.c | 8766 ice_set_bw_limit(struct ice_vsi *vsi, u64 max_tx_rate, u64 min_tx_rate) in ice_set_bw_limit() argument 8770 err = ice_set_min_bw_limit(vsi, min_tx_rate); in ice_set_bw_limit() 8810 if (ch->ch_vsi && (ch->max_tx_rate || ch->min_tx_rate)) { in ice_create_q_channel() 8814 ch->min_tx_rate); in ice_create_q_channel() 9045 if (!ch->max_tx_rate && !ch->min_tx_rate) in ice_rebuild_channels() 9049 ch->min_tx_rate); in ice_rebuild_channels() 9052 err, ch->max_tx_rate, ch->min_tx_rate, in ice_rebuild_channels() 9056 ch->max_tx_rate, ch->min_tx_rate, in ice_rebuild_channels() 9097 ch->min_tx_rate = vsi->mqprio_qopt.min_rate[i]; in ice_create_q_channels() 9103 if (ch->min_tx_rate) in ice_create_q_channels() [all …]
|
H A D | ice_lib.c | 3545 int ice_set_min_bw_limit(struct ice_vsi *vsi, u64 min_tx_rate) in ice_set_min_bw_limit() argument 3560 if (min_tx_rate > (u64)speed) { in ice_set_min_bw_limit() 3562 min_tx_rate, ice_vsi_type_str(vsi->type), vsi->idx, in ice_set_min_bw_limit() 3568 if (min_tx_rate) { in ice_set_min_bw_limit() 3570 ICE_MIN_BW, min_tx_rate); in ice_set_min_bw_limit() 3573 min_tx_rate, ice_vsi_type_str(vsi->type), in ice_set_min_bw_limit() 3579 min_tx_rate, ice_vsi_type_str(vsi->type)); in ice_set_min_bw_limit()
|
H A D | ice.h | 225 u64 min_tx_rate; member
|
/linux/include/linux/ |
H A D | if_link.h | 27 __u32 min_tx_rate; member
|
/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_pf.c | 1850 int min_tx_rate, int max_tx_rate) in qlcnic_sriov_set_vf_tx_rate() argument 1869 if (!min_tx_rate) in qlcnic_sriov_set_vf_tx_rate() 1870 min_tx_rate = QLC_VF_MIN_TX_RATE; in qlcnic_sriov_set_vf_tx_rate() 1875 min_tx_rate, QLC_VF_MAX_TX_RATE); in qlcnic_sriov_set_vf_tx_rate() 1882 if (min_tx_rate && min_tx_rate < QLC_VF_MIN_TX_RATE) { in qlcnic_sriov_set_vf_tx_rate() 1894 nic_info.min_tx_bw = min_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() 1905 vp->min_tx_bw = min_tx_rate / 100; in qlcnic_sriov_set_vf_tx_rate() 1908 min_tx_rate, vp->min_tx_bw, vf); in qlcnic_sriov_set_vf_tx_rate() 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()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_sriov.h | 26 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate,
|
H A D | ixgbe_sriov.c | 1644 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate, in ixgbe_ndo_set_vf_bw() argument 1663 if (min_tx_rate) in ixgbe_ndo_set_vf_bw() 1845 ivi->min_tx_rate = 0; in ixgbe_ndo_get_vf_config()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_sriov.h | 90 int vf, int min_tx_rate, int max_tx_rate);
|
H A D | hinic_sriov.c | 587 ivi->min_tx_rate = vfinfo->min_rate; in hinic_get_vf_config() 857 int vf, int min_tx_rate, int max_tx_rate) in hinic_ndo_set_vf_bw() argument 899 max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw() 903 vf, max_tx_rate, min_tx_rate, in hinic_ndo_set_vf_bw() 911 vf, max_tx_rate, min_tx_rate); in hinic_ndo_set_vf_bw()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_virtchnl_pf.h | 131 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
|
H A D | i40e_virtchnl_pf.c | 4653 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, in i40e_ndo_set_vf_bw() argument 4672 if (min_tx_rate) { in i40e_ndo_set_vf_bw() 4674 min_tx_rate, vf_id); in i40e_ndo_set_vf_bw() 4736 ivi->min_tx_rate = 0; in i40e_ndo_get_vf_config()
|
/linux/drivers/net/netdevsim/ |
H A D | netdev.c | 175 nsim_dev->vfconfigs[vf].min_tx_rate = min; in nsim_set_vf_rate() 228 ivi->min_tx_rate = nsim_dev->vfconfigs[vf].min_tx_rate; in nsim_get_vf_config()
|
H A D | netdevsim.h | 280 u16 min_tx_rate; member
|
H A D | dev.c | 410 &nsim_dev->vfconfigs[vf_id].min_tx_rate); in nsim_dev_port_debugfs_init() 1187 nsim_dev->vfconfigs[vf_id].min_tx_rate = tx_share; in nsim_leaf_tx_share_set()
|
/linux/include/linux/mlx4/ |
H A D | cmd.h | 314 int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate,
|
/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_iov.c | 667 ivi->min_tx_rate = 0; in fm10k_ndo_get_vf_config()
|
/linux/drivers/net/ethernet/sfc/ |
H A D | ef10_sriov.c | 786 ivf->min_tx_rate = 0; in efx_ef10_sriov_get_vf_config()
|
/linux/net/core/ |
H A D | rtnetlink.c | 1531 vf_rate.min_tx_rate = ivi.min_tx_rate; in rtnl_fill_vfinfo() 2622 static int rtnl_set_vf_rate(struct net_device *dev, int vf, int min_tx_rate, in rtnl_set_vf_rate() argument 2629 if (max_tx_rate && max_tx_rate < min_tx_rate) in rtnl_set_vf_rate() 2632 return ops->ndo_set_vf_rate(dev, vf, min_tx_rate, max_tx_rate); in rtnl_set_vf_rate() 2798 ivf.min_tx_rate, ivt->rate); in do_setvfinfo() 2810 ivt->min_tx_rate, ivt->max_tx_rate); in do_setvfinfo()
|