octeontx2-pf: TC flower offload support for rxqueue mapping
authorRatheesh Kannoth <rkannoth@marvell.com>
Mon, 19 Jun 2023 06:06:38 +0000 (11:36 +0530)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jun 2023 03:16:20 +0000 (20:16 -0700)
commit365eb32e4b456064aea4db61adc0a65b8a09bc80
treee9af9e1bcc4abac344b0f185b6222db1c5495649
parentf0d952646bcf186d6d1bea6ec89f96b7e57f3b83
octeontx2-pf: TC flower offload support for rxqueue mapping

TC rule support to offload rx queue mapping rules.

Eg:
   tc filter add dev eth2 ingress protocol ip flower \
      dst_ip 192.168.8.100  \
      action skbedit queue_mapping 4 skip_sw
      action mirred ingress redirect dev eth5

Packets destined to 192.168.8.100 will be forwarded to rx
queue 4 of eth5 interface.

   tc filter add dev eth2 ingress protocol ip flower \
      dst_ip 192.168.8.100  \
      action skbedit queue_mapping 9 skip_sw

Packets destined to 192.168.8.100 will be forwarded to rx
queue 4 of eth2 interface.

Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Link: https://lore.kernel.org/r/20230619060638.1032304-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c