John Hurley 0efd1b3a13 net: sched: cls_matchall: implement offload tcf_proto_op
Add the reoffload tcf_proto_op in matchall to generate an offload message
for each filter in the given tcf_proto. Call the specified callback with
this new offload message. The function only returns an error if the
callback rejects adding a 'hardware only' rule.

Ensure matchall flags correctly report if the rule is in hw by keeping a
reference counter for the number of instances of the rule offloaded. Only
update the flag when this counter changes from or to 0.

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>
2018-06-26 23:21:33 +09:00
..
2018-06-12 16:19:22 -07:00
2018-05-26 09:16:44 +02:00
2018-06-12 16:19:22 -07:00
2018-05-26 09:16:44 +02:00
2018-03-27 13:18:09 -04:00
2018-06-22 13:43:27 +09:00
2018-06-12 16:19:22 -07:00
2018-05-04 12:54:38 -04:00
2018-06-22 07:17:42 +09:00
2018-06-12 16:19:22 -07:00
2018-06-22 13:43:27 +09:00
2018-06-22 06:21:34 +09:00
2018-06-24 23:54:18 +09:00
2018-05-28 22:59:54 -04:00
2018-06-05 10:21:18 -04:00