Home
last modified time | relevance | path

Searched refs:shaper (Results 1 – 20 of 20) sorted by relevance

/linux/net/shaper/
H A Dshaper.c163 const struct net_shaper *shaper, in net_shaper_fill_one() argument
174 net_shaper_copy(&cur, shaper); in net_shaper_fill_one()
517 struct net_shaper *shaper) in net_shaper_validate_caps() argument
523 ops->capabilities(binding, shaper->handle.scope, &caps); in net_shaper_validate_caps()
549 if (shaper->handle.scope == NET_SHAPER_SCOPE_QUEUE && in net_shaper_validate_caps()
551 shaper->handle.id >= binding->netdev->real_num_tx_queues) { in net_shaper_validate_caps()
554 shaper->handle.id, in net_shaper_validate_caps()
563 if (shaper->burst || shaper->bw_min || shaper->bw_max) { in net_shaper_validate_caps()
565 shaper->metric; in net_shaper_validate_caps()
575 shaper->metric); in net_shaper_validate_caps()
[all …]
/linux/tools/testing/selftests/drivers/net/
H A Dshaper.py168 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
170 ksft_eq(shaper, {'ifindex': cfg.ifindex,
222 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
224 ksft_eq(shaper, {'ifindex': cfg.ifindex,
228 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
230 ksft_eq(shaper, {'ifindex': cfg.ifindex,
260 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
262 ksft_eq(shaper, {'ifindex': cfg.ifindex,
H A DMakefile23 shaper.py \
/linux/net/sched/
H A Dsch_mqprio.c26 u16 shaper; member
48 if (priv->shaper != TC_MQPRIO_SHAPER_DCB) in mqprio_enable_offload()
56 mqprio.shaper = priv->shaper; in mqprio_enable_offload()
274 priv->shaper = nla_get_u16(tb[TCA_MQPRIO_SHAPER]); in mqprio_parse_nlattr()
278 if (priv->shaper != TC_MQPRIO_SHAPER_BW_RATE) { in mqprio_parse_nlattr()
280 "min_rate accepted only when shaper is in bw_rlimit mode"); in mqprio_parse_nlattr()
307 if (priv->shaper != TC_MQPRIO_SHAPER_BW_RATE) { in mqprio_parse_nlattr()
309 "max_rate accepted only when shaper is in bw_rlimit mode"); in mqprio_parse_nlattr()
594 nla_put_u16(skb, TCA_MQPRIO_SHAPER, priv->shaper)) in mqprio_dump()
[all...]
/linux/drivers/net/ethernet/intel/ice/virt/
H A Dqueues.c622 if (qbw->cfg[i].shaper.peak != 0 && vf->max_tx_rate != 0 && in ice_vc_cfg_q_bw()
623 qbw->cfg[i].shaper.peak > vf->max_tx_rate) { in ice_vc_cfg_q_bw()
630 if (qbw->cfg[i].shaper.committed != 0 && vf->min_tx_rate != 0 && in ice_vc_cfg_q_bw()
631 qbw->cfg[i].shaper.committed < vf->min_tx_rate) { in ice_vc_cfg_q_bw()
654 vf->qs_bw[i].peak = qbw->cfg[i].shaper.peak; in ice_vc_cfg_q_bw()
655 vf->qs_bw[i].committed = qbw->cfg[i].shaper.committed; in ice_vc_cfg_q_bw()
H A Dvirtchnl.c459 cfg->shaper.committed = vsi_ctx->sched.bw_t_info[i].cir_bw.bw; in ice_vc_get_qos_caps()
460 cfg->shaper.peak = vsi_ctx->sched.bw_t_info[i].eir_bw.bw; in ice_vc_get_qos_caps()
/linux/include/net/
H A Dnet_shaper.h98 const struct net_shaper *shaper,
/linux/net/
H A DMakefile78 obj-$(CONFIG_NET_SHAPER) += shaper/
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.c1467 struct dc_transfer_func **shaper) in dcn30_acquire_post_bldn_3dlut() argument
1473 ASSERT(*lut == NULL && *shaper == NULL); in dcn30_acquire_post_bldn_3dlut()
1475 *shaper = NULL; in dcn30_acquire_post_bldn_3dlut()
1480 *shaper = pool->mpc_shaper[i]; in dcn30_acquire_post_bldn_3dlut()
1502 struct dc_transfer_func **shaper) in dcn30_release_post_bldn_3dlut() argument
1508 if (pool->mpc_lut[i] == *lut && pool->mpc_shaper[i] == *shaper) { in dcn30_release_post_bldn_3dlut()
1512 *shaper = NULL; in dcn30_release_post_bldn_3dlut()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_main.c5042 const struct net_shaper *shaper, in iavf_verify_shaper() argument
5048 if (shaper->handle.scope == NET_SHAPER_SCOPE_QUEUE) { in iavf_verify_shaper()
5049 vf_max = adapter->qos_caps->cap[0].shaper.peak; in iavf_verify_shaper()
5050 if (vf_max && shaper->bw_max > vf_max) { in iavf_verify_shaper()
5052 shaper->bw_max, shaper->handle.id, in iavf_verify_shaper()
5062 const struct net_shaper *shaper, in iavf_shaper_set() argument
5066 const struct net_shaper_handle *handle = &shaper->handle; in iavf_shaper_set()
5075 ret = iavf_verify_shaper(binding, shaper, extack); in iavf_shaper_set()
5081 tx_ring->q_shaper.bw_min = div_u64(shaper->bw_min, 1000); in iavf_shaper_set()
5082 tx_ring->q_shaper.bw_max = div_u64(shaper->bw_max, 1000); in iavf_shaper_set()
H A Diavf_virtchnl.c1770 qs_bw_cfg->cfg[inx].shaper.peak = q_shaper->bw_max; in iavf_cfg_queues_bw()
1771 qs_bw_cfg->cfg[inx].shaper.committed = q_shaper->bw_min; in iavf_cfg_queues_bw()
/linux/Documentation/networking/device_drivers/ethernet/intel/
H A Diavf.rst156 The shaper bw_rlimit parameter is optional.
164 queues 16@0 16@16 hw 1 mode channel shaper bw_rlimit min_rate 1Gbit 2Gbit
178 shaper bw_rlimit: for each tc, sets minimum and maximum bandwidth rates.
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1640 struct dc_transfer_func **shaper) in dcn32_acquire_post_bldn_3dlut() argument
1644 ASSERT(*lut == NULL && *shaper == NULL); in dcn32_acquire_post_bldn_3dlut()
1646 *shaper = NULL; in dcn32_acquire_post_bldn_3dlut()
1650 *shaper = pool->mpc_shaper[mpcc_id]; in dcn32_acquire_post_bldn_3dlut()
1661 struct dc_transfer_func **shaper) in dcn32_release_post_bldn_3dlut() argument
1667 if (pool->mpc_lut[i] == *lut && pool->mpc_shaper[i] == *shaper) { in dcn32_release_post_bldn_3dlut()
1671 *shaper = NULL; in dcn32_release_post_bldn_3dlut()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c1108 const struct drm_color_lut *shaper = NULL, *lut3d = NULL; in amdgpu_dm_verify_lut3d_size() local
1114 shaper = __extract_blob_lut(dm_plane_state->shaper_lut, &size); in amdgpu_dm_verify_lut3d_size()
1116 if (shaper && size != exp_size) { in amdgpu_dm_verify_lut3d_size()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c896 const struct net_shaper *shaper, in mana_shaper_set() argument
903 if (shaper->handle.scope != NET_SHAPER_SCOPE_NETDEV) { in mana_shaper_set()
908 if (apc->handle.id && shaper->handle.id != apc->handle.id) { in mana_shaper_set()
913 if (!shaper->bw_max || (shaper->bw_max % 100000000)) { in mana_shaper_set()
918 rate = div_u64(shaper->bw_max, 1000); /* Convert bps to Kbps */ in mana_shaper_set()
928 apc->handle = (err) ? apc->handle : shaper->handle; in mana_shaper_set()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_types.h1412 const struct dc_transfer_func *shaper; member
H A Ddc.h2031 struct dc_transfer_func **shaper);
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_mqprio.c28 } else if (mqprio->shaper != TC_MQPRIO_SHAPER_BW_RATE) { in cxgb4_mqprio_validate()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-qos.c116 if (mqprio->shaper != TC_MQPRIO_SHAPER_BW_RATE) in am65_cpsw_mqprio_verify_shaper()
/linux/drivers/net/netdevsim/
H A Dnetdev.c590 const struct net_shaper *shaper, in nsim_shaper_set() argument