[PATCH net-next v3] net: airoha: Add matchall filter offload support

Simon Horman horms at kernel.org
Mon Apr 14 08:49:30 PDT 2025


On Thu, Apr 10, 2025 at 05:25:37PM +0200, Lorenzo Bianconi wrote:
> Introduce tc matchall filter offload support in airoha_eth driver.
> Matchall hw filter is used to implement hw rate policing via tc action
> police:
> 
> $tc qdisc add dev eth0 handle ffff: ingress
> $tc filter add dev eth0 parent ffff: matchall action police \
>  rate 100mbit burst 1000k drop
> 
> The current implementation supports just drop/accept as exceed/notexceed
> actions. Moreover, rate and burst are the only supported configuration
> parameters.
> 
> Reviewed-by: Davide Caratti <dcaratti at redhat.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo at kernel.org>
> ---
> Changes in v3:
> - remove duplicated entries configuring REG_PPE_DFT_CPORT0() regs
> - Link to v2: https://lore.kernel.org/r/20250409-airoha-hw-rx-ratelimit-v2-1-694e4fda5c91@kernel.org
> 
> Changes in v2:
> - Validate act police mtu parameter
> - Link to v1: https://lore.kernel.org/r/20250407-airoha-hw-rx-ratelimit-v1-1-917d092d56fd@kernel.org

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the Linux-mediatek mailing list