OSDN Git Service

net: tc_skbedit: Make the skbedit priority offloadable
authorPetr Machata <petrm@mellanox.com>
Thu, 19 Mar 2020 13:47:21 +0000 (15:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:09:19 +0000 (21:09 -0700)
commit2ce124109c0fe0ea03233ae3625583de1f25e89c
treeac920871bd350af54dbe2839e1603acfe4e79290
parentfe93f0b225ea45fe1fd72c991bd53f9e3d69276d
net: tc_skbedit: Make the skbedit priority offloadable

The skbedit action "priority" is used for adjusting SKB priority. Allow
drivers to offload the action by introducing two new skbedit getters and a
new flow action, and initializing appropriately in tc_setup_flow_action().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_offload.h
include/net/tc_act/tc_skbedit.h
net/sched/cls_api.c