Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/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.
/kernel/linux/linux-6.6/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.
/kernel/linux/linux-6.6/net/devlink/
Dtrap.c1805 * devl_trap_policers_register - Register packet trap policers with devlink.
1807 * @policers: Packet trap policers.
1808 * @policers_count: Count of provided packet trap policers.
1814 const struct devlink_trap_policer *policers, in devl_trap_policers_register() argument
1821 const struct devlink_trap_policer *policer = &policers[i]; in devl_trap_policers_register()
1839 devlink_trap_policer_unregister(devlink, &policers[i]); in devl_trap_policers_register()
1845 * devl_trap_policers_unregister - Unregister packet trap policers from devlink.
1847 * @policers: Packet trap policers.
1848 * @policers_count: Count of provided packet trap policers.
1852 const struct devlink_trap_policer *policers, in devl_trap_policers_unregister() argument
[all …]
/kernel/linux/linux-5.10/Documentation/networking/devlink/
Ddevlink-trap.rst583 Packet Trap Policers
592 devices usually include packet trap policers that are able to police the
596 supported packet trap policers with ``devlink``. The device driver can choose
597 to associate these policers with supported packet trap groups (see
601 Device drivers should allow user space to change the parameters of the policers
602 (e.g., rate, burst size) as well as the association between the policers and
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_flower.c55 NL_SET_ERR_MSG_MOD(extack, "No more L2 policers free"); in sja1105_setup_bcast_policer()
71 /* Make the broadcast policers of all ports attached to this block in sja1105_setup_bcast_policer()
127 NL_SET_ERR_MSG_MOD(extack, "No more L2 policers free"); in sja1105_setup_tc_policer()
143 /* Make the policers for traffic class @tc of all ports attached to in sja1105_setup_tc_policer()
/kernel/linux/linux-6.6/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.c997 * In this driver, we shall use policers 0-4 as statically alocated port
998 * (matchall) policers. So we need to make the SHARINDX for all lookups
1001 * The remaining policers (40) shall be dynamically allocated for flower
1002 * policers, where the key is either vlan_prio or dst_mac ff:ff:ff:ff:ff:ff.
1030 /* Setup shared indices for the matchall policers */ in sja1105_init_l2_policing()
1039 /* Only SJA1110 has multicast policers */ in sja1105_init_l2_policing()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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.c1096 dev_err(mlxsw_sp->bus_info->dev, "Exceeded number of supported packet trap policers\n"); in mlxsw_sp_trap_policer_items_arr_init()
1106 /* Initialize policer items array with pre-defined policers. */ in mlxsw_sp_trap_policer_items_arr_init()
1111 * policers. in mlxsw_sp_trap_policer_items_arr_init()
1543 * policers we registered with devlink is in according with the number in mlxsw_sp_trap_policer_item_init()
1544 * of available policers. in mlxsw_sp_trap_policer_item_init()
/kernel/linux/linux-5.10/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 */
/kernel/linux/linux-6.6/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 */
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/
Dlan966x_police.c5 /* 0-8 : 9 port policers */
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dti,k3-am654-cpsw-nuss.yaml37 Configurable number of classifier/policers
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/
Dti,k3-am654-cpsw-nuss.yaml34 Configurable number of classifier/policers
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
Dsparx5_psfp.c14 /* Pool of available service policers */
/kernel/linux/linux-5.10/include/net/
Ddevlink.h687 * Describes immutable attributes of packet trap policers that drivers register
1609 const struct devlink_trap_policer *policers,
1613 const struct devlink_trap_policer *policers,
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink_trap.sh270 check_err 1 "Failed to dump policers"
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink_trap.sh295 check_err 1 "Failed to dump policers"
/kernel/linux/linux-6.6/include/net/
Ddevlink.h774 * Describes immutable attributes of packet trap policers that drivers register
1966 const struct devlink_trap_policer *policers,
1970 const struct devlink_trap_policer *policers,
/kernel/linux/linux-5.10/net/core/
Ddevlink.c10127 * devlink_trap_policers_register - Register packet trap policers with devlink.
10129 * @policers: Packet trap policers.
10130 * @policers_count: Count of provided packet trap policers.
10136 const struct devlink_trap_policer *policers, in devlink_trap_policers_register() argument
10143 const struct devlink_trap_policer *policer = &policers[i]; in devlink_trap_policers_register()
10163 devlink_trap_policer_unregister(devlink, &policers[i]); in devlink_trap_policers_register()
10170 * devlink_trap_policers_unregister - Unregister packet trap policers from devlink.
10172 * @policers: Packet trap policers.
10173 * @policers_count: Count of provided packet trap policers.
10177 const struct devlink_trap_policer *policers, in devlink_trap_policers_unregister() argument
[all …]

12