/Linux-v6.6/drivers/net/ethernet/netronome/nfp/ |
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()
|
D | nfp_net_sriov.h | 62 int nfp_app_set_vf_rate(struct net_device *netdev, int vf, int min_tx_rate,
|
/Linux-v6.6/drivers/net/ethernet/intel/ice/ |
D | ice_sriov.c | 1212 ivi->min_tx_rate = vf->min_tx_rate; in ice_get_vf_cfg() 1385 rate += vf->min_tx_rate; in ice_calc_all_vfs_min_tx_rate() 1404 ice_min_tx_rate_oversubscribed(struct ice_vf *vf, int min_tx_rate) in ice_min_tx_rate_oversubscribed() argument 1417 all_vfs_min_tx_rate -= vf->min_tx_rate; in ice_min_tx_rate_oversubscribed() 1419 if (all_vfs_min_tx_rate + min_tx_rate > link_speed_mbps) { in ice_min_tx_rate_oversubscribed() 1421 min_tx_rate, vf->vf_id, in ice_min_tx_rate_oversubscribed() 1422 all_vfs_min_tx_rate + min_tx_rate - link_speed_mbps, in ice_min_tx_rate_oversubscribed() 1438 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, in ice_set_vf_bw() argument 1463 if (min_tx_rate && ice_is_dcb_active(pf)) { in ice_set_vf_bw() 1469 if (ice_min_tx_rate_oversubscribed(vf, min_tx_rate)) { in ice_set_vf_bw() [all …]
|
D | ice_sriov.h | 43 ice_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate, 125 int __always_unused vf_id, int __always_unused min_tx_rate, in ice_set_vf_bw() argument
|
D | ice_lib.h | 141 int ice_set_min_bw_limit(struct ice_vsi *vsi, u64 min_tx_rate);
|
D | ice_vf_lib.c | 364 if (vf->min_tx_rate) { in ice_vf_rebuild_host_tx_rate_cfg() 365 err = ice_set_min_bw_limit(vsi, (u64)vf->min_tx_rate * 1000); in ice_vf_rebuild_host_tx_rate_cfg() 368 vf->min_tx_rate, vf->vf_id, err); in ice_vf_rebuild_host_tx_rate_cfg()
|
D | ice_vf_lib.h | 118 unsigned int min_tx_rate; /* Minimum Tx bandwidth limit in Mbps */ member
|
D | ice_main.c | 8357 ice_set_bw_limit(struct ice_vsi *vsi, u64 max_tx_rate, u64 min_tx_rate) in ice_set_bw_limit() argument 8361 err = ice_set_min_bw_limit(vsi, min_tx_rate); in ice_set_bw_limit() 8401 if (ch->ch_vsi && (ch->max_tx_rate || ch->min_tx_rate)) { in ice_create_q_channel() 8405 ch->min_tx_rate); in ice_create_q_channel() 8636 if (!ch->max_tx_rate && !ch->min_tx_rate) in ice_rebuild_channels() 8640 ch->min_tx_rate); in ice_rebuild_channels() 8643 err, ch->max_tx_rate, ch->min_tx_rate, in ice_rebuild_channels() 8647 ch->max_tx_rate, ch->min_tx_rate, in ice_rebuild_channels() 8688 ch->min_tx_rate = vsi->mqprio_qopt.min_rate[i]; in ice_create_q_channels() 8694 if (ch->min_tx_rate) in ice_create_q_channels() [all …]
|
D | ice_lib.c | 3672 int ice_set_min_bw_limit(struct ice_vsi *vsi, u64 min_tx_rate) in ice_set_min_bw_limit() argument 3687 if (min_tx_rate > (u64)speed) { in ice_set_min_bw_limit() 3689 min_tx_rate, ice_vsi_type_str(vsi->type), vsi->idx, in ice_set_min_bw_limit() 3695 if (min_tx_rate) { in ice_set_min_bw_limit() 3697 ICE_MIN_BW, min_tx_rate); in ice_set_min_bw_limit() 3700 min_tx_rate, ice_vsi_type_str(vsi->type), in ice_set_min_bw_limit() 3706 min_tx_rate, ice_vsi_type_str(vsi->type)); in ice_set_min_bw_limit()
|
D | ice.h | 221 u64 min_tx_rate; member
|
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 198 ivi->min_tx_rate = vf->min_tx_rate; in bnxt_get_vf_config() 289 int bnxt_set_vf_bw(struct net_device *dev, int vf_id, int min_tx_rate, in bnxt_set_vf_bw() argument 310 if (min_tx_rate > pf_link_speed) { in bnxt_set_vf_bw() 312 min_tx_rate, vf_id); in bnxt_set_vf_bw() 315 if (min_tx_rate == vf->min_tx_rate && max_tx_rate == vf->max_tx_rate) in bnxt_set_vf_bw() 323 req->min_bw = cpu_to_le32(min_tx_rate); in bnxt_set_vf_bw() 326 vf->min_tx_rate = min_tx_rate; in bnxt_set_vf_bw() 513 req->min_bw = cpu_to_le32(vf->min_tx_rate); in __bnxt_set_vf_params()
|
/Linux-v6.6/include/linux/ |
D | if_link.h | 27 __u32 min_tx_rate; member
|
/Linux-v6.6/drivers/net/netdevsim/ |
D | netdev.c | 124 nsim_dev->vfconfigs[vf].min_tx_rate = min; in nsim_set_vf_rate() 177 ivi->min_tx_rate = nsim_dev->vfconfigs[vf].min_tx_rate; in nsim_get_vf_config()
|
D | netdevsim.h | 267 u16 min_tx_rate; member
|
D | dev.c | 410 &nsim_dev->vfconfigs[vf_id].min_tx_rate); in nsim_dev_port_debugfs_init() 1184 nsim_dev->vfconfigs[vf_id].min_tx_rate = tx_share; in nsim_leaf_tx_share_set()
|
/Linux-v6.6/drivers/net/ethernet/qlogic/qlcnic/ |
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-v6.6/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_sriov.h | 26 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate,
|
D | ixgbe_sriov.c | 1647 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate, in ixgbe_ndo_set_vf_bw() argument 1666 if (min_tx_rate) in ixgbe_ndo_set_vf_bw() 1848 ivi->min_tx_rate = 0; in ixgbe_ndo_get_vf_config()
|
/Linux-v6.6/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.h | 90 int vf, int min_tx_rate, int max_tx_rate);
|
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-v6.6/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.h | 128 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
|
/Linux-v6.6/include/linux/mlx4/ |
D | cmd.h | 314 int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate,
|
/Linux-v6.6/tools/include/uapi/linux/ |
D | if_link.h | 971 __u32 min_tx_rate; /* Min Bandwidth in Mbps */ member
|
/Linux-v6.6/include/uapi/linux/ |
D | if_link.h | 1056 __u32 min_tx_rate; /* Min Bandwidth in Mbps */ member
|
/Linux-v6.6/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_iov.c | 667 ivi->min_tx_rate = 0; in fm10k_ndo_get_vf_config()
|