]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: add skbedit of ptype action to hardware IR
authorJohn Hurley <john.hurley@netronome.com>
Sun, 4 Aug 2019 15:09:04 +0000 (16:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 21:24:21 +0000 (14:24 -0700)
commit78d081282ad5f3a9cac9523e8e7272a08f48a38e
tree083b01d1cab4f3242915fe134fdf29e8f60fedf9
parent9769f53bec7fe41f376087663bc766db9aab0cd2
net: sched: add skbedit of ptype action to hardware IR

TC rules can impliment skbedit actions. Currently actions that modify the
skb mark are passed to offloading drivers via the hardware intermediate
representation in the flow_offload API.

Extend this to include skbedit actions that modify the packet type of the
skb. Such actions may be used to set the ptype to HOST when redirecting a
packet to ingress.

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