Home
last modified time | relevance | path

Searched refs:min_tx_rate (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v6.6/drivers/net/ethernet/netronome/nfp/
Dnfp_net_sriov.c148 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()
Dnfp_net_sriov.h62 int nfp_app_set_vf_rate(struct net_device *netdev, int vf, int min_tx_rate,
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_sriov.c1212 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 …]
Dice_sriov.h43 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
Dice_lib.h141 int ice_set_min_bw_limit(struct ice_vsi *vsi, u64 min_tx_rate);
Dice_vf_lib.c364 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()
Dice_vf_lib.h118 unsigned int min_tx_rate; /* Minimum Tx bandwidth limit in Mbps */ member
Dice_main.c8357 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 …]
Dice_lib.c3672 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()
Dice.h221 u64 min_tx_rate; member
/Linux-v6.6/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c198 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/
Dif_link.h27 __u32 min_tx_rate; member
/Linux-v6.6/drivers/net/netdevsim/
Dnetdev.c124 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()
Dnetdevsim.h267 u16 min_tx_rate; member
Ddev.c410 &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/
Dqlcnic_sriov_pf.c1850 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/
Dixgbe_sriov.h26 int ixgbe_ndo_set_vf_bw(struct net_device *netdev, int vf, int min_tx_rate,
Dixgbe_sriov.c1647 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/
Dhinic_sriov.h90 int vf, int min_tx_rate, int max_tx_rate);
Dhinic_sriov.c587 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/
Di40e_virtchnl_pf.h128 int i40e_ndo_set_vf_bw(struct net_device *netdev, int vf_id, int min_tx_rate,
/Linux-v6.6/include/linux/mlx4/
Dcmd.h314 int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate,
/Linux-v6.6/tools/include/uapi/linux/
Dif_link.h971 __u32 min_tx_rate; /* Min Bandwidth in Mbps */ member
/Linux-v6.6/include/uapi/linux/
Dif_link.h1056 __u32 min_tx_rate; /* Min Bandwidth in Mbps */ member
/Linux-v6.6/drivers/net/ethernet/intel/fm10k/
Dfm10k_iov.c667 ivi->min_tx_rate = 0; in fm10k_ndo_get_vf_config()

12