]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: add tcf_proto_op to offload a rule
authorJohn Hurley <john.hurley@netronome.com>
Mon, 25 Jun 2018 21:30:05 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 14:21:32 +0000 (23:21 +0900)
commite56185c78b500ac4d08768278ad8a25d5b756942
tree809983ccab0ea7662e77602f50780ddcba748774
parent60513bd82c825b659c05957e4f8106ba06f0797f
net: sched: add tcf_proto_op to offload a rule

Create a new tcf_proto_op called 'reoffload' that generates a new offload
message for each node in a tcf_proto. Pointers to the tcf_proto and
whether the offload request is to add or delete the node are included.
Also included is a callback function to send the offload message to and
the option of priv data to go with the cb.

Signed-off-by: John Hurley <john.hurley@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/act_api.h
include/net/sch_generic.h