> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Michal Swiatkowski
> Sent: Thursday, February 22, 2024 6:10 PM
> To: [email protected]
> Cc: [email protected]; Drewek, Wojciech
> <[email protected]>; Szycik, Marcin <[email protected]>;
> [email protected]; Jagielski, Jedrzej <[email protected]>;
> Samudrala, Sridhar <[email protected]>; Michal Swiatkowski
> <[email protected]>
> Subject: [Intel-wired-lan] [iwl-next v2 2/2] ice: tc: allow ip_proto matching
>
> Add new matching type for ip_proto.
>
> Use it in the same lookup type as for TTL. In hardware it has the same
> protocol ID, but different offset.
>
> Example command to add filter with ip_proto:
> $tc filter add dev eth10 ingress protocol ip flower ip_proto icmp \ skip_sw
> action mirred egress redirect dev eth0
>
> Reviewed-by: Jedrzej Jagielski <[email protected]>
> Signed-off-by: Michal Swiatkowski <[email protected]>
> ---
> drivers/net/ethernet/intel/ice/ice_tc_lib.c | 17 +++++++++++++++--
> drivers/net/ethernet/intel/ice/ice_tc_lib.h | 1 +
> 2 files changed, 16 insertions(+), 2 deletions(-)
>
Tested-by: Sujai Buvaneswaran <[email protected]>