mirror_ubuntu-kernels/include/uapi/linux/tc_act
Victor Nogueira 42f39036cd net/sched: act_mirred: Allow mirred to block
So far the mirred action has dealt with syntax that handles
mirror/redirection for netdev. A matching packet is redirected or mirrored
to a target netdev.

In this patch we enable mirred to mirror to a tc block as well.
IOW, the new syntax looks as follows:
... mirred <ingress | egress> <mirror | redirect> [index INDEX] < <blockid BLOCKID> | <dev <devname>> >

Examples of mirroring or redirecting to a tc block:
$ tc filter add block 22 protocol ip pref 25 \
  flower dst_ip 192.168.0.0/16 action mirred egress mirror blockid 22

$ tc filter add block 22 protocol ip pref 25 \
  flower dst_ip 10.10.10.10/32 action mirred egress redirect blockid 22

Co-developed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Co-developed-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Pedro Tammela <pctammela@mojatatu.com>
Signed-off-by: Victor Nogueira <victor@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-12-26 21:20:09 +00:00
..
tc_bpf.h headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00
tc_connmark.h
tc_csum.h
tc_ct.h net: sched: add helper support in act_ct 2022-11-08 12:15:19 +01:00
tc_ctinfo.h net: sched: act_ctinfo: tidy UAPI definition 2019-06-19 17:11:01 -04:00
tc_defact.h
tc_gact.h
tc_gate.h net: qos: introduce a gate control flow action 2020-05-01 16:08:19 -07:00
tc_ife.h
tc_ipt.h
tc_mirred.h net/sched: act_mirred: Allow mirred to block 2023-12-26 21:20:09 +00:00
tc_mpls.h net/sched: act_mpls: Add action to push MPLS LSE before Ethernet header 2020-10-03 17:28:45 -07:00
tc_nat.h
tc_pedit.h
tc_sample.h
tc_skbedit.h headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00
tc_skbmod.h headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00
tc_tunnel_key.h net/sched: act_tunnel_key: add support for "don't fragment" 2023-03-30 23:24:24 -07:00
tc_vlan.h headers: Remove some left-over license text 2022-09-27 07:48:01 -07:00