]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
octeontx2-pf: Add support for offload tc with skbedit mark action
authorGeetha sowjanya <gakula@marvell.com>
Sat, 20 Apr 2024 09:35:05 +0000 (15:05 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2024 09:14:14 +0000 (10:14 +0100)
commit6a57f091622a1251c2826f7380577049199b80ea
tree041a4d4bf6112e0d24f03222e27422de916d7506
parent80b7aae9e3b8fc3f1678be61ccd81d5b6e6bd6be
octeontx2-pf: Add support for offload tc with skbedit mark action

Support offloading of skbedit mark action.

For example, to mark with 0x0008, with dest ip 60.60.60.2 on eth2
interface:

 # tc qdisc add dev eth2 ingress
 # tc filter add dev eth2 ingress protocol ip flower \
      dst_ip 60.60.60.2 action skbedit mark 0x0008 skip_sw

Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_flows.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h