summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorVictor Nogueira <victor@mojatatu.com>2023-12-19 15:16:23 -0300
committerDavid S. Miller <davem@davemloft.net>2023-12-26 21:20:09 +0000
commit42f39036cda808d3de243192a2cf5125f12f3047 (patch)
treeaf37600e5544d163a7f0ec4a7b3a6ee66a8ac762 /io_uring
parent415e38bf1d8d789ee1fcb26bd815d8b95fe4faad (diff)
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>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions