net: sched: add ingress mirred action to hardware IR
authorJohn Hurley <john.hurley@netronome.com>
Sun, 4 Aug 2019 15:09:06 +0000 (16:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 21:24:21 +0000 (14:24 -0700)
commit48e584ac583b08a923d4d872596cc7b049e99f12
tree0dabc20244102187c520deda3006f7fe347017b0
parentd7609c96c6da0831e196d970a20dc960bcc4a4d6
net: sched: add ingress mirred action to hardware IR

TC mirred actions (redirect and mirred) can send to egress or ingress of a
device. Currently only egress is used for hw offload rules.

Modify the intermediate representation for hw offload to include mirred
actions that go to ingress. This gives drivers access to such rules and
can decide whether or not to offload them.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
net/sched/cls_api.c