Home
last modified time | relevance | path

Searched full:policers (Results 1 – 24 of 24) sorted by relevance

/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/
Dtc_police_occ.sh4 # Test that policers shared by different tc filters are correctly reference
5 # counted by observing policers' occupancy via devlink-resource.
/linux-6.12.1/net/devlink/
Dtrap.c1804 * devl_trap_policers_register - Register packet trap policers with devlink.
1806 * @policers: Packet trap policers.
1807 * @policers_count: Count of provided packet trap policers.
1813 const struct devlink_trap_policer *policers, in devl_trap_policers_register() argument
1820 const struct devlink_trap_policer *policer = &policers[i]; in devl_trap_policers_register()
1838 devlink_trap_policer_unregister(devlink, &policers[i]); in devl_trap_policers_register()
1844 * devl_trap_policers_unregister - Unregister packet trap policers from devlink.
1846 * @policers: Packet trap policers.
1847 * @policers_count: Count of provided packet trap policers.
1851 const struct devlink_trap_policer *policers, in devl_trap_policers_unregister() argument
[all …]
/linux-6.12.1/Documentation/networking/devlink/
Ddevlink-trap.rst606 Packet Trap Policers
615 devices usually include packet trap policers that are able to police the
619 supported packet trap policers with ``devlink``. The device driver can choose
620 to associate these policers with supported packet trap groups (see
624 Device drivers should allow user space to change the parameters of the policers
625 (e.g., rate, burst size) as well as the association between the policers and
/linux-6.12.1/drivers/net/dsa/sja1105/
Dsja1105_flower.c56 NL_SET_ERR_MSG_MOD(extack, "No more L2 policers free"); in sja1105_setup_bcast_policer()
72 /* Make the broadcast policers of all ports attached to this block in sja1105_setup_bcast_policer()
128 NL_SET_ERR_MSG_MOD(extack, "No more L2 policers free"); in sja1105_setup_tc_policer()
144 /* Make the policers for traffic class @tc of all ports attached to in sja1105_setup_tc_policer()
Dsja1105_main.c999 * In this driver, we shall use policers 0-4 as statically alocated port
1000 * (matchall) policers. So we need to make the SHARINDX for all lookups
1003 * The remaining policers (40) shall be dynamically allocated for flower
1004 * policers, where the key is either vlan_prio or dst_mac ff:ff:ff:ff:ff:ff.
1032 /* Setup shared indices for the matchall policers */ in sja1105_init_l2_policing()
1041 /* Only SJA1110 has multicast policers */ in sja1105_init_l2_policing()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_policer.c85 /* CPU policers are allocated from the first N policers in the global in mlxsw_sp_policer_single_rate_family_init()
178 …_SET_ERR_MSG_MOD(extack, "Only bandwidth policing is currently supported by single rate policers"); in mlxsw_sp_policer_single_rate_params_check()
Dspectrum_trap.h12 size_t policers_count; /* Number of registered policers */
Dspectrum_trap.c1274 dev_err(mlxsw_sp->bus_info->dev, "Exceeded number of supported packet trap policers\n"); in mlxsw_sp_trap_policer_items_arr_init()
1284 /* Initialize policer items array with pre-defined policers. */ in mlxsw_sp_trap_policer_items_arr_init()
1289 * policers. in mlxsw_sp_trap_policer_items_arr_init()
1720 * policers we registered with devlink is in according with the number in mlxsw_sp_trap_policer_item_init()
1721 * of available policers. in mlxsw_sp_trap_policer_item_init()
Dspectrum_span.c818 /* Policers set on SPAN agents must be in the range of in mlxsw_sp_span_policer_id_base_set()
Dspectrum.c3179 dev_err(mlxsw_sp->bus_info->dev, "Failed to initialize policers\n"); in mlxsw_sp_init()
Dreg.h3868 * The QPCR register is used to create policers - that limit
10891 * Base policer id for mirroring policers.
/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot_police.c17 #define POL_IX_PORT 0 /* 0-11 : Port policers */
18 #define POL_IX_QUEUE 32 /* 32-127 : Queue policers */
/linux-6.12.1/drivers/net/ethernet/ti/
Dcpsw_ale.c1503 u32 ale_entries, rev_major, rev_minor, policers; in cpsw_ale_create() local
1566 regmap_field_read(ale->fields[ALE_POLICERS], &policers); in cpsw_ale_create()
1567 if (!policers) in cpsw_ale_create()
1570 policers *= ALE_POLICER_SIZE_MULTIPLIER; in cpsw_ale_create()
1571 ale->params.num_policers = policers; in cpsw_ale_create()
1575 "ALE Table size %ld, Policers %ld\n", ale->params.ale_entries, in cpsw_ale_create()
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_police.c5 /* 0-8 : 9 port policers */
/linux-6.12.1/Documentation/devicetree/bindings/net/
Dti,k3-am654-cpsw-nuss.yaml34 Configurable number of classifier/policers
/linux-6.12.1/drivers/net/ethernet/microchip/sparx5/
Dsparx5_psfp.c14 /* Pool of available service policers */
/linux-6.12.1/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink_trap.sh295 check_err 1 "Failed to dump policers"
/linux-6.12.1/include/net/
Ddevlink.h778 * Describes immutable attributes of packet trap policers that drivers register
1988 const struct devlink_trap_policer *policers,
1992 const struct devlink_trap_policer *policers,
/linux-6.12.1/net/ipv4/
Dtcp_bbr.c681 /* Token-bucket traffic policers are common (see "An Internet-Wide Analysis of
682 * Traffic Policing", SIGCOMM 2016). BBR detects token-bucket policers and
DKconfig678 operate with shallow buffers, deep buffers, bufferbloat, policers, or
/linux-6.12.1/drivers/net/ethernet/freescale/dpaa2/
Ddpni.h57 * DPNI_OPT_HAS_POLICING - Allocate policers for this DPNI. They can be used to
/linux-6.12.1/drivers/net/ethernet/microchip/vcap/
Dvcap_ag_api.h692 * Disable policing from QoS, and port policers. Only the VCAP policer selected
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_debugfs.c2623 /* Ingress policers do not exist on all platforms */ in rvu_dbg_nix_band_prof_ctx_display()
2676 /* Ingress policers do not exist on all platforms */ in rvu_dbg_nix_band_prof_rsrc_display()
Drvu_nix.c5558 /* NIX ingress policers or bandwidth profiles APIs */