Home
last modified time | relevance | path

Searched full:shapers (Results 1 – 10 of 10) sorted by relevance

/linux/tools/testing/selftests/drivers/net/
H A Dshaper.py47 raise KsftSkipEx(f"{scope} scope shapers not supported by the device")
55 shapers = nl_shaper.get({'ifindex': cfg.ifindex}, dump=True)
58 raise KsftSkipEx("shapers not supported by the device")
61 # Default configuration: no shapers configured.
62 ksft_eq(len(shapers), 0)
69 raise KsftSkipEx("shapers not supported by the device")
82 raise KsftSkipEx("shapers not supported by the device")
85 raise KsftSkipEx("device does not support queue scope shapers with bw_max and metric bps")
116 shapers = nl_shaper.get({'ifindex': cfg.ifindex}, dump=True)
117 ksft_eq(shapers, [{'ifindex': cfg.ifindex,
[all …]
/linux/Documentation/netlink/specs/
H A Dnet_shaper.yaml8 This API allows configuring HW shapers available on the network
11 shapers.
16 Depending on the @scope value, the shapers are attached to specific
21 Shapers can be created with two different operations: the @set
24 group. Only the @group operation can create @node scope shapers.
26 Existing shapers can be deleted/reset via the @delete operation.
61 node shapers; can be nested in either @netdev
62 shapers or other @node shapers, allowing placement
110 scheduling is applied to sibling shapers.
117 The scheduling is applied to all sibling shapers
[all …]
/linux/include/net/
H A Dnet_shaper.h61 * struct net_shaper_ops - Operations on device H/W shapers
91 * Shapers are created implicitly, meaning that @set and @group operations
92 * are called both for existing and new shapers. The driver has to infer
94 * Removal of shapers is explicit and done with a @delete call.
97 * NET_SHAPER_SCOPE_QUEUE shapers.
99 * NET_SHAPER_SCOPE_NODE shapers (the group shaper itself), as well as
100 * NET_SHAPER_SCOPE_QUEUE shapers (leaves).
106 * Nest the @leaves shapers identified under the @node shaper.
107 * All the shapers belong to the device specified by @binding.
/linux/net/shaper/
H A Dshaper.c27 struct xarray shapers; member
321 cur = xa_load(&hierarchy->shapers, index); in net_shaper_lookup()
345 xa_init_flags(&hierarchy->shapers, XA_FLAGS_ALLOC); in net_shaper_hierarchy_setup()
372 cur = xa_load(&hierarchy->shapers, index); in net_shaper_pre_insert()
386 ret = xa_alloc(&hierarchy->shapers, &index, NULL, in net_shaper_pre_insert()
406 prev = xa_store(&hierarchy->shapers, index, cur, GFP_KERNEL); in net_shaper_pre_insert()
417 xa_erase(&hierarchy->shapers, index); in net_shaper_pre_insert()
425 int nr_shapers, const struct net_shaper *shapers) in net_shaper_commit() argument
433 index = net_shaper_handle_to_index(&shapers[i].handle); in net_shaper_commit()
435 cur = xa_load(&hierarchy->shapers, inde in net_shaper_commit()
[all...]
/linux/Documentation/networking/
H A Dnetdevices.rst397 Note that supporting net shapers automatically enables "ops locking".
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_qos.c431 /* Maximum number of shapers that can be served by in sparx5_leak_groups_init()
/linux/tools/include/uapi/linux/
H A Dpkt_sched.h587 TC_MQPRIO_SHAPER_BW_RATE, /* Add new shapers below */
/linux/drivers/net/ethernet/ti/
H A Dcpsw_priv.c962 /* shapers can be set if link speed is known */ in cpsw_set_cbs()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpni.c2078 * @coupled: Committed and excess rate shapers are coupled
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c952 NL_SET_ERR_MSG_MOD(extack, "Cannot create multiple shapers"); in mana_shaper_set()