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

Davide Caratti dcaratti at redhat.com
Wed Apr 9 01:46:05 PDT 2025


hi,

On Wed, Apr 09, 2025 at 01:15:32AM +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.
> 
> Signed-off-by: Lorenzo Bianconi <lorenzo at 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
> ---

for v2:

Reviewed-by: Davide Caratti <dcaratti at redhat.com>




More information about the linux-arm-kernel mailing list