linux_dsm_epyc7002/drivers/net/ethernet/mellanox/mlxsw
Ido Schimmel 4039504e6a mlxsw: spectrum_span: Allow setting policer on a SPAN agent
When mirroring packets to the CPU port the mirrored packets are trapped
to the CPU. However, unlike other traps, it is not possible to set a
policer on the associated trap group. Instead, the policer needs to be
set on the SPAN agent.

Moreover, the policer ID must be within a specified range: From a
configurable (even) base ID to this base plus the maximum number of SPAN
agents.

While the immediate use case is to set the policer on a SPAN agent that
mirrors to the CPU port, a policer can be set on any SPAN agent.
Therefore, the operation is implemented for all SPAN agent types.

Extend the SPAN agent request API to allow passing the desired policer
ID that should be bound to the SPAN agent. Return an error for
Spectrum-1, as it does not support policer setting on a SPAN agent.

Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-07-14 14:50:49 -07:00
..
cmd.h
core_acl_flex_actions.c mlxsw: spectrum_acl: Support FLOW_ACTION_MANGLE for TCP, UDP ports 2020-06-22 16:32:11 -07:00
core_acl_flex_actions.h mlxsw: spectrum_acl: Support FLOW_ACTION_MANGLE for TCP, UDP ports 2020-06-22 16:32:11 -07:00
core_acl_flex_keys.c
core_acl_flex_keys.h
core_env.c
core_env.h
core_hwmon.c
core_thermal.c mlxsw: core: Use different get_trend() callbacks for different thermal zones 2020-06-07 16:59:43 -07:00
core.c devlink: Add a new devlink port split ability attribute and pass to netlink 2020-07-09 13:15:30 -07:00
core.h mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
emad.h
i2c.c
i2c.h
ib.h
item.h
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile mlxsw: Move ethtool_ops to spectrum_ethtool.c 2020-06-29 17:45:02 -07:00
minimal.c mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
pci_hw.h
pci.c mlxsw: pci: Fix use-after-free in case of failed devlink reload 2020-07-10 14:33:34 -07:00
pci.h
port.h
reg.h mlxsw: reg: add mirroring_pid_base to MOGCR register 2020-07-14 14:50:49 -07:00
resources.h
spectrum1_acl_tcam.c
spectrum1_kvdl.c
spectrum1_mr_tcam.c
spectrum2_acl_tcam.c
spectrum2_kvdl.c
spectrum2_mr_tcam.c mlxsw: spectrum: Rename acl_block to flow_block 2020-04-27 12:43:29 -07:00
spectrum_acl_atcam.c
spectrum_acl_bloom_filter.c
spectrum_acl_ctcam.c
spectrum_acl_erp.c
spectrum_acl_flex_actions.c mlxsw: spectrum_span: Allow setting policer on a SPAN agent 2020-07-14 14:50:49 -07:00
spectrum_acl_flex_actions.h
spectrum_acl_flex_keys.c
spectrum_acl_tcam.c mlxsw: spectrum_flower: Expose a function to get min and max rule priority 2020-05-09 16:02:43 -07:00
spectrum_acl_tcam.h mlxsw: spectrum_flower: Expose a function to get min and max rule priority 2020-05-09 16:02:43 -07:00
spectrum_acl.c mlxsw: spectrum_acl: Support FLOW_ACTION_MANGLE for TCP, UDP ports 2020-06-22 16:32:11 -07:00
spectrum_buffers.c mlxsw: spectrum: Do not rely on machine endianness 2020-06-22 16:29:51 -07:00
spectrum_cnt.c
spectrum_cnt.h
spectrum_dcb.c mlxsw: spectrum_dcb: Rename mlxsw_sp_port_headroom_set() 2020-06-29 17:45:02 -07:00
spectrum_dpipe.c
spectrum_dpipe.h
spectrum_ethtool.c mlxsw: spectrum_ethtool: Add link extended state 2020-06-29 17:45:02 -07:00
spectrum_fid.c
spectrum_flow.c mlxsw: spectrum_flow: Promote binder-type dispatch to spectrum.c 2020-07-13 17:22:22 -07:00
spectrum_flower.c net: qos offload add flow status with dropped count 2020-06-19 12:53:30 -07:00
spectrum_ipip.c
spectrum_ipip.h
spectrum_kvdl.c
spectrum_matchall.c mlxsw: spectrum_span: Allow setting policer on a SPAN agent 2020-07-14 14:50:49 -07:00
spectrum_mr_tcam.c
spectrum_mr_tcam.h
spectrum_mr.c
spectrum_mr.h
spectrum_nve_vxlan.c
spectrum_nve.c
spectrum_nve.h
spectrum_ptp.c
spectrum_ptp.h
spectrum_qdisc.c mlxsw: spectrum_span: Allow passing parameters to SPAN agents 2020-07-14 14:50:49 -07:00
spectrum_router.c mlxsw: spectrum_router: Remove inappropriate usage of WARN_ON() 2020-07-10 14:33:34 -07:00
spectrum_router.h
spectrum_span.c mlxsw: spectrum_span: Allow setting policer on a SPAN agent 2020-07-14 14:50:49 -07:00
spectrum_span.h mlxsw: spectrum_span: Allow setting policer on a SPAN agent 2020-07-14 14:50:49 -07:00
spectrum_switchdev.c
spectrum_switchdev.h
spectrum_trap.c mlxsw: spectrum_trap: Register ACL control traps 2020-06-01 11:49:23 -07:00
spectrum_trap.h mlxsw: spectrum_trap: Do not hard code "thin" policer identifier 2020-05-26 20:33:58 -07:00
spectrum.c mlxsw: spectrum_qdisc: Offload mirroring on RED qevent early_drop 2020-07-13 17:22:22 -07:00
spectrum.h mlxsw: spectrum_qdisc: Offload mirroring on RED qevent early_drop 2020-07-13 17:22:22 -07:00
switchib.c mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
switchx2.c mlxsw: Set port split ability attribute in driver 2020-07-09 13:15:29 -07:00
trap.h mlxsw: spectrum: Add packet traps for BFD packets 2020-05-26 20:33:58 -07:00
txheader.h