Re: [net-next PATCH] octeontx2-pf: Add TC flower offload support for TCP flags

From: Simon Horman
Date: Wed Mar 06 2024 - 14:48:33 EST


On Tue, Mar 05, 2024 at 11:46:06PM +0530, Sai Krishna wrote:
> This patch adds TC offload support for matching TCP flags
> from TCP header.
>
> Example usage:
> tc qdisc add dev eth0 ingress
>
> TC rule to drop the TCP SYN packets:
> tc filter add dev eth0 ingress protocol ip flower ip_proto tcp tcp_flags
> 0x02/0x3f skip_sw action drop
>
> Signed-off-by: Sai Krishna <saikrishnag@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>