Home
last modified time | relevance | path

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

12

/linux/net/shaper/
H A Dshaper.c139 const struct net_shaper *shaper, in net_shaper_fill_one() argument
149 net_shaper_fill_handle(msg, &shaper->parent, in net_shaper_fill_one()
151 net_shaper_fill_handle(msg, &shaper->handle, in net_shaper_fill_one()
153 ((shaper->bw_min || shaper->bw_max || shaper->burst) && in net_shaper_fill_one()
154 nla_put_u32(msg, NET_SHAPER_A_METRIC, shaper->metric)) || in net_shaper_fill_one()
155 (shaper->bw_min && in net_shaper_fill_one()
156 nla_put_uint(msg, NET_SHAPER_A_BW_MIN, shaper->bw_min)) || in net_shaper_fill_one()
157 (shaper in net_shaper_fill_one()
445 net_shaper_validate_caps(struct net_shaper_binding * binding,struct nlattr ** tb,const struct genl_info * info,struct net_shaper * shaper) net_shaper_validate_caps() argument
513 net_shaper_parse_info(struct net_shaper_binding * binding,struct nlattr ** tb,const struct genl_info * info,struct net_shaper * shaper,bool * exists) net_shaper_parse_info() argument
567 net_shaper_validate_nesting(struct net_shaper_binding * binding,const struct net_shaper * shaper,struct netlink_ext_ack * extack) net_shaper_validate_nesting() argument
590 net_shaper_parse_leaf(struct net_shaper_binding * binding,const struct nlattr * attr,const struct genl_info * info,const struct net_shaper * node,struct net_shaper * shaper) net_shaper_parse_leaf() argument
628 net_shaper_parse_node(struct net_shaper_binding * binding,struct nlattr ** tb,const struct genl_info * info,struct net_shaper * shaper) net_shaper_parse_node() argument
730 struct net_shaper *shaper; net_shaper_nl_get_doit() local
780 struct net_shaper *shaper; net_shaper_nl_get_dumpit() local
807 struct net_shaper shaper = {}; net_shaper_nl_set_doit() local
855 __net_shaper_delete(struct net_shaper_binding * binding,struct net_shaper * shaper,struct netlink_ext_ack * extack) __net_shaper_delete() argument
1010 net_shaper_pre_del_node(struct net_shaper_binding * binding,const struct net_shaper * shaper,struct netlink_ext_ack * extack) net_shaper_pre_del_node() argument
1072 struct net_shaper *shaper; net_shaper_nl_delete_doit() local
1406 struct net_shaper *shaper; net_shaper_set_real_num_tx_queues() local
[all...]
H A DMakefile3 # Makefile for the net shaper infrastructure.
8 obj-y += shaper.o shaper_nl_gen.o
/linux/tools/testing/selftests/drivers/net/
H A Dshaper.py29 # Each device implementing shaper support must support some
65 # Querying a specific shaper not yet configured must fail.
130 raise KsftSkipEx("netdev shaper not supported by device, skipping delete")
139 raise KsftSkipEx("netdev shaper not supported by the device")
165 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
167 ksft_eq(shaper, {'ifindex': cfg.ifindex,
177 # Deleting all the leaves shaper does not affect the node one
219 shaper = nl_shaper.get({'ifindex': cfg.ifindex,
221 ksft_eq(shaper, {'ifindex': cfg.ifindex,
225 shaper
[all...]
H A DMakefile24 shaper.py \
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.h88 struct dc_transfer_func **shaper);
94 struct dc_transfer_func **shaper);
H A Ddcn30_resource.c1433 struct dc_transfer_func **shaper) in dcn30_acquire_post_bldn_3dlut() argument
1439 ASSERT(*lut == NULL && *shaper == NULL); in dcn30_acquire_post_bldn_3dlut()
1441 *shaper = NULL; in dcn30_acquire_post_bldn_3dlut()
1446 *shaper = pool->mpc_shaper[i]; in dcn30_acquire_post_bldn_3dlut()
1468 struct dc_transfer_func **shaper) in dcn30_release_post_bldn_3dlut() argument
1474 if (pool->mpc_lut[i] == *lut && pool->mpc_shaper[i] == *shaper) { in dcn30_release_post_bldn_3dlut()
1478 *shaper = NULL; in dcn30_release_post_bldn_3dlut()
/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()
595 nla_put_u16(skb, TCA_MQPRIO_SHAPER, priv->shaper)) in mqprio_dump()
[all...]
/linux/Documentation/networking/
H A Dnetdevices.rst214 lock if the driver implements queue management or shaper API.
219 lock if the driver implements queue management or shaper API.
232 lock if the driver implements queue management or shaper API.
240 lock if the driver implements queue management or shaper API.
248 lock if the driver implements queue management or shaper API.
256 lock if the driver implements queue management or shaper API.
297 implements queue management or shaper API.
301 the driver implements queue management or shaper API.
369 All net shaper callbacks are invoked while holding the netdev instance
/linux/include/net/
H A Dnet_shaper.h35 * @parent: Unique identifier for the shaper parent, usually implied
36 * @handle: Unique identifier for this shaper
38 * @bw_min: Minimum guaranteed rate for this shaper
39 * @bw_max: Maximum peak rate allowed for this shaper
40 * @burst: Maximum burst for the peek rate of this shaper
41 * @priority: Scheduling priority for this shaper
42 * @weight: Scheduling weight for this shaper
72 * Each shaper is uniquely identified within the device with a 'handle'
73 * comprising the shaper scope and a scope-specific id.
79 * Nest the @leaves shapers identified under the * @node shaper
[all...]
/linux/net/
H A DMakefile81 obj-$(CONFIG_NET_SHAPER) += shaper/
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dcore_types.h196 struct dc_transfer_func **shaper);
202 struct dc_transfer_func **shaper);
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c108 * degamma TF, shaper TF (before 3D LUT), and blend(dpp.ogam) TF and
761 * If user shaper LUT is set, we assume a linear color space in amdgpu_dm_atomic_shaper_lut()
808 * shaper and 3D LUTs match the hw supported size
813 * newer) and if the user shaper and 3D LUTs match the supported size.
822 const struct drm_color_lut *shaper = NULL, *lut3d = NULL; in amdgpu_dm_verify_lut3d_size() local
826 /* shaper LUT is only available if 3D LUT color caps */ in amdgpu_dm_verify_lut3d_size()
828 shaper = __extract_blob_lut(dm_plane_state->shaper_lut, &size); in amdgpu_dm_verify_lut3d_size()
830 if (shaper && size != exp_size) { in amdgpu_dm_verify_lut3d_size()
1166 "setting plane %d shaper LUT failed.\n", in amdgpu_dm_plane_set_color_properties()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_main.c3082 * After a reset, the shaper parameters of queues need to be replayed again.
5072 const struct net_shaper *shaper, in iavf_verify_shaper() argument
5078 if (shaper->handle.scope == NET_SHAPER_SCOPE_QUEUE) { in iavf_verify_shaper()
5079 vf_max = adapter->qos_caps->cap[0].shaper.peak; in iavf_verify_shaper()
5080 if (vf_max && shaper->bw_max > vf_max) { in iavf_verify_shaper()
5082 shaper->bw_max, shaper->handle.id, in iavf_verify_shaper()
5092 const struct net_shaper *shaper, in iavf_shaper_set() argument
5096 const struct net_shaper_handle *handle = &shaper->handle; in iavf_shaper_set()
5105 ret = iavf_verify_shaper(binding, shaper, extac in iavf_shaper_set()
[all...]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/
H A Ddcn32_resource.c1600 struct dc_transfer_func **shaper) in dcn32_acquire_post_bldn_3dlut() argument
1604 ASSERT(*lut == NULL && *shaper == NULL); in dcn32_acquire_post_bldn_3dlut()
1606 *shaper = NULL; in dcn32_acquire_post_bldn_3dlut()
1610 *shaper = pool->mpc_shaper[mpcc_id]; in dcn32_acquire_post_bldn_3dlut()
1621 struct dc_transfer_func **shaper) in dcn32_release_post_bldn_3dlut() argument
1627 if (pool->mpc_lut[i] == *lut && pool->mpc_shaper[i] == *shaper) { in dcn32_release_post_bldn_3dlut()
1631 *shaper = NULL; in dcn32_release_post_bldn_3dlut()
H A Ddcn32_resource.h87 struct dc_transfer_func **shaper);
93 struct dc_transfer_func **shaper);
/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.
H A Di40e.rst677 The shaper bw_rlimit parameter is optional.
685 queues 16@0 16@16 hw 1 mode channel shaper bw_rlimit min_rate 1Gbit 2Gbit
699 shaper bw_rlimit: for each tc, sets minimum and maximum bandwidth rates.
/linux/drivers/net/ethernet/intel/ice/
H A Dice_virtchnl.c1113 cfg->shaper.committed = vsi_ctx->sched.bw_t_info[i].cir_bw.bw; in ice_vc_get_qos_caps()
1114 cfg->shaper.peak = vsi_ctx->sched.bw_t_info[i].eir_bw.bw; in ice_vc_get_qos_caps()
1866 if (qbw->cfg[i].shaper.peak != 0 && vf->max_tx_rate != 0 && in ice_vc_cfg_q_bw()
1867 qbw->cfg[i].shaper.peak > vf->max_tx_rate) { in ice_vc_cfg_q_bw()
1874 if (qbw->cfg[i].shaper.committed != 0 && vf->min_tx_rate != 0 && in ice_vc_cfg_q_bw()
1875 qbw->cfg[i].shaper.committed < vf->min_tx_rate) { in ice_vc_cfg_q_bw()
1898 vf->qs_bw[i].peak = qbw->cfg[i].shaper.peak; in ice_vc_cfg_q_bw()
1899 vf->qs_bw[i].committed = qbw->cfg[i].shaper.committed; in ice_vc_cfg_q_bw()
/linux/include/linux/avf/
H A Dvirtchnl.h1566 struct virtchnl_shaper_bw shaper; member
1587 struct virtchnl_shaper_bw shaper; member
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c737 const struct net_shaper *shaper, in mana_shaper_set() argument
744 if (shaper->handle.scope != NET_SHAPER_SCOPE_NETDEV) { in mana_shaper_set()
745 NL_SET_ERR_MSG_MOD(extack, "net shaper scope should be netdev"); in mana_shaper_set()
749 if (apc->handle.id && shaper->handle.id != apc->handle.id) { in mana_shaper_set()
754 if (!shaper->bw_max || (shaper->bw_max % 100000000)) { in mana_shaper_set()
759 rate = div_u64(shaper->bw_max, 1000); /* Convert bps to Kbps */ in mana_shaper_set()
769 apc->handle = (err) ? apc->handle : shaper->handle; in mana_shaper_set()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_types.h1307 const struct dc_transfer_func *shaper; member
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/
H A Ddcn401_hwseq.c441 if (mcm_luts.shaper && mcm_luts.lut3d_data.mpc_3dlut_enable) { in dcn401_populate_mcm_luts()
443 if (mcm_luts.shaper->type == TF_TYPE_HWPWL) in dcn401_populate_mcm_luts()
444 m_lut_params.pwl = &mcm_luts.shaper->pwl; in dcn401_populate_mcm_luts()
445 else if (mcm_luts.shaper->type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn401_populate_mcm_luts()
448 mcm_luts.shaper, in dcn401_populate_mcm_luts()
664 /*program shaper and 3dlut in MPC*/ in dcn401_set_output_transfer_func()
/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()
29 netdev_err(dev, "Only bandwidth rate shaper supported\n"); in cxgb4_mqprio_validate()
/linux/Documentation/networking/device_drivers/ethernet/ti/
H A Dcpsw.rst77 - S - shaper configured
/linux/drivers/net/netdevsim/
H A Dnetdev.c581 const struct net_shaper *shaper, in nsim_shaper_set() argument

12