-----Original Message-----
From: Intel-wired-lan <redacted> On Behalf Of
Michal Swiatkowski
Sent: Thursday, February 22, 2024 6:10 PM
To: <redacted>
Cc: <redacted>; Drewek, Wojciech
[off-list ref]; Szycik, Marcin [off-list ref];
netdev@vger.kernel.org; Jagielski, Jedrzej [off-list ref];
Samudrala, Sridhar [off-list ref]; Michal Swiatkowski
[off-list ref]
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 <redacted>
Signed-off-by: Michal Swiatkowski <redacted>
---
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 <redacted>