Thread (9 messages) 9 messages, 3 authors, 2024-03-14

RE: [Intel-wired-lan] [iwl-next v2 2/2] ice: tc: allow ip_proto matching

flat view

From: Buvaneswaran, Sujai <hidden>
Date: 2024-03-08 07:40:25
Also in: intel-wired-lan

-----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>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help