Home
last modified time | relevance | path

Searched full:shaper (Results 1 – 25 of 107) sorted by relevance

12345

/linux-6.14.4/Documentation/netlink/specs/
Dnet_shaper.yaml2 name: net-shaper
12 Each @shaper is identified within the given device, by a @handle,
21 operation, to create and update a single "attached" shaper, and
38 doc: Defines the shaper @id interpretation.
45 doc: The main shaper for the given network device.
49 The shaper is attached to the given device queue,
54 The shaper allows grouping of queues or other
62 doc: Different metric supported by the shaper.
66 doc: Shaper operates on a bits per second basis.
69 doc: Shaper operates on a packets per second basis.
[all …]
/linux-6.14.4/net/shaper/
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->bw_max && in net_shaper_fill_one()
158 nla_put_uint(msg, NET_SHAPER_A_BW_MAX, shaper->bw_max)) || in net_shaper_fill_one()
159 (shaper->burst && in net_shaper_fill_one()
[all …]
DMakefile3 # Makefile for the net shaper infrastructure.
8 obj-y += shaper.o shaper_nl_gen.o
/linux-6.14.4/include/net/
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-6.14.4/include/uapi/linux/
Dnet_shaper.h9 #define NET_SHAPER_FAMILY_NAME "net-shaper"
13 * enum net_shaper_scope - Defines the shaper @id interpretation.
15 * @NET_SHAPER_SCOPE_NETDEV: The main shaper for the given network device.
16 * @NET_SHAPER_SCOPE_QUEUE: The shaper is attached to the given device queue,
18 * @NET_SHAPER_SCOPE_NODE: The shaper allows grouping of queues or other node
35 * enum net_shaper_metric - Different metric supported by the shaper.
36 * @NET_SHAPER_METRIC_BPS: Shaper operates on a bits per second basis.
37 * @NET_SHAPER_METRIC_PPS: Shaper operates on a packets per second basis.
/linux-6.14.4/tools/testing/selftests/drivers/net/
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 = nl_shaper.get({'ifindex': cfg.ifindex,
[all …]
DMakefile14 shaper.py \
/linux-6.14.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_top.h15 * struct traffic_shaper_cfg: traffic shaper configuration
16 * @en : enable/disable traffic shaper
82 * @setup_traffic_shaper : programs traffic shaper control
94 * setup_traffic_shaper() : Setup traffic shaper control
96 * @cfg : traffic shaper configuration
/linux-6.14.4/include/linux/platform_data/
Dlp855x.h109 LP8556_COMBINED1, /* pwm + i2c before the shaper block */
111 LP8556_COMBINED2, /* pwm + i2c after the shaper block */
117 LP8557_COMBINED1, /* pwm + i2c after the shaper block */
118 LP8557_COMBINED2, /* pwm + i2c before the shaper block */
/linux-6.14.4/net/sched/
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()
Dsch_cbs.c3 * net/sched/sch_cbs.c Credit Based Shaper
8 /* Credit Based Shaper (CBS)
11 * This is a simple rate-limiting shaper aimed at TSN applications on
578 MODULE_DESCRIPTION("Credit Based shaper");
/linux-6.14.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_tm.h201 u8 ir_b; /* IR_B parameter of IR shaper */
202 u8 ir_u; /* IR_U parameter of IR shaper */
203 u8 ir_s; /* IR_S parameter of IR shaper */
Dhclge_tm.c26 /* hclge_shaper_para_calc: calculate ir parameter for the shaper
28 * @shaper_level: the shaper level. eg: port, pg, priority, queueset
29 * @ir_para: parameters of IR shaper
899 /* Calc shaper para */ in hclge_tm_pg_shaper_cfg()
1150 /* Need config vport shaper */ in hclge_tm_pri_vnet_base_shaper_cfg()
1477 /* Cfg tm shaper */ in hclge_tm_schd_setup_hw()
1848 "failed to get qset %u shaper, ret = %d\n", qset_id, in hclge_tm_get_qset_shaper()
1923 "failed to get priority shaper(%#x), ret = %d\n", in hclge_tm_get_pri_shaper()
2077 "failed to get pg shaper(%#x), ret = %d\n", in hclge_tm_get_pg_shaper()
2105 "failed to get port shaper, ret = %d\n", ret); in hclge_tm_get_port_shaper()
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/resource/dcn30/
Ddcn30_resource.h88 struct dc_transfer_func **shaper);
94 struct dc_transfer_func **shaper);
/linux-6.14.4/tools/testing/selftests/drivers/net/mlxsw/
Dqos_max_descriptors.sh5 # switch. A shaper is used in $swp2, so the traffic is limited there. Packets
62 # The current TBF qdisc interface does not allow us to configure the shaper to
63 # flat zero. The ASIC shaper is guaranteed to work with a granularity of
Dqos_mc_aware.sh259 # Minimum shaper of 200Mbps on MC TCs should cause about 20% of
261 check_err $(bc <<< "$deg < 15") "Minimum shaper not in effect"
/linux-6.14.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_mode.h369 * @shaper_lut_property: Plane property to set pre-blending shaper LUT
378 * pre-blending shaper LUT as supported by the driver (read-only).
383 * transfer function for pre-blending shaper (before applying 3D LUT)
384 * with or without LUT. There is no shaper ROM, but we can use AMD
410 * conversion. It works as a post-3DLUT 1D LUT. With shaper LUT, they
/linux-6.14.4/drivers/gpu/drm/amd/display/amdgpu_dm/
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()
832 "Invalid Shaper LUT size. Should be %u but got %u.\n", in amdgpu_dm_verify_lut3d_size()
1166 "setting plane %d shaper LUT failed.\n", in amdgpu_dm_plane_set_color_properties()
/linux-6.14.4/tools/testing/selftests/net/forwarding/
Dsch_tbf_core.sh4 # egress port from the switch ($swp2), a shaper is installed. The test verifies
5 # that the rates on the port match the configured shaper.
Dsch_red.sh4 # This test sends one stream of traffic from H1 through a TBF shaper, to a RED
5 # within TBF shaper on $swp3. The two shapers have the same configuration, and
7 # shaper. A second stream is sent from H2 also via $swp3, and used to inject
/linux-6.14.4/drivers/net/ethernet/mscc/
Docelot_police.h14 MSCC_QOS_RATE_MODE_DISABLED, /* Policer/shaper disabled */
/linux-6.14.4/Documentation/networking/device_drivers/ethernet/intel/
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-6.14.4/Documentation/devicetree/bindings/net/dsa/
Dhirschmann,hellcreek.yaml21 Shaper.
/linux-6.14.4/drivers/net/ethernet/freescale/enetc/
DKconfig103 taprio(802.1Qbv) and Credit Based Shaper(802.1Qbu).
/linux-6.14.4/net/
DMakefile82 obj-$(CONFIG_NET_SHAPER) += shaper/

12345