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>
This commit is contained in:

committed by
David S. Miller

parent
77feb4eed7
commit
fb1b775a24
@@ -3294,6 +3294,9 @@ int tc_setup_flow_action(struct flow_action *flow_action,
|
||||
default:
|
||||
goto err_out;
|
||||
}
|
||||
} else if (is_tcf_skbedit_ptype(act)) {
|
||||
entry->id = FLOW_ACTION_PTYPE;
|
||||
entry->ptype = tcf_skbedit_ptype(act);
|
||||
} else {
|
||||
goto err_out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user